text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
/** @odoo-module **/
import {CharField} from "@web/views/fields/char/char_field";
import {loadBundle} from "@web/core/assets";
import {registry} from "@web/core/registry";
const {onWillStart, markup, onMounted, onPatched, useRef} = owl;
export default class BokehChartWidget extends CharField {
setup() {
t... | OCA/web/web_widget_bokeh_chart/static/src/js/web_widget_bokeh_chart.esm.js/0 | {
"file_path": "OCA/web/web_widget_bokeh_chart/static/src/js/web_widget_bokeh_chart.esm.js",
"repo_id": "OCA",
"token_count": 901
} | 93 |
This module enables full options in datepicker used in date fields :
- Choose today's date in one click
- Two buttons enabled : choosing today and closing datepicker with selected date
.. figure:: ../static/description/change.png
Clearing field doesn't work because there is a left 'todo' in Odoo core code
here : http... | OCA/web/web_widget_datepicker_fulloptions/readme/DESCRIPTION.rst/0 | {
"file_path": "OCA/web/web_widget_datepicker_fulloptions/readme/DESCRIPTION.rst",
"repo_id": "OCA",
"token_count": 121
} | 94 |
* This module uses the library `mpld3 <https://github.com/mpld3/mpld3>`__
which is under the open-source BSD 3-clause "New" or "Revised" License.
Copyright (c) 2013, Jake Vanderplas
* This module uses the library `BeautifulSoup 4 <https://pypi.org/project/beautifulsoup4/>`__
which is under the open-source MIT Lic... | OCA/web/web_widget_mpld3_chart/readme/CREDITS.rst/0 | {
"file_path": "OCA/web/web_widget_mpld3_chart/readme/CREDITS.rst",
"repo_id": "OCA",
"token_count": 130
} | 95 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_numeric_step
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-27 11:33+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Langua... | OCA/web/web_widget_numeric_step/i18n/it.po/0 | {
"file_path": "OCA/web/web_widget_numeric_step/i18n/it.po",
"repo_id": "OCA",
"token_count": 462
} | 96 |
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_users_tree" model="ir.ui.view">
<field name="model">res.users</field>
<field name="inherit_id" ref="base.view_users_tree" />
<field name="arch" type="xml">
<field name="name" position="before">
<field... | OCA/web/web_widget_open_tab/demo/res_users_view.xml/0 | {
"file_path": "OCA/web/web_widget_open_tab/demo/res_users_view.xml",
"repo_id": "OCA",
"token_count": 200
} | 97 |
You need to install the python plotly library::
pip3 install plotly==5.4.0
| OCA/web/web_widget_plotly_chart/readme/INSTALL.rst/0 | {
"file_path": "OCA/web/web_widget_plotly_chart/readme/INSTALL.rst",
"repo_id": "OCA",
"token_count": 26
} | 98 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_x2many_2d_matrix
#
# Translators:
# Ana-Maria Olujić <ana-maria.olujic@slobodni-programi.hr>, 2016
msgid ""
msgstr ""
"Project-Id-Version: web (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-25 00... | OCA/web/web_widget_x2many_2d_matrix/i18n/hr.po/0 | {
"file_path": "OCA/web/web_widget_x2many_2d_matrix/i18n/hr.po",
"repo_id": "OCA",
"token_count": 551
} | 99 |
# 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/app/assets/javascripts/flash.js.coffee/0 | {
"file_path": "SquareSquash/web/app/assets/javascripts/flash.js.coffee",
"repo_id": "SquareSquash",
"token_count": 658
} | 100 |
// ----- SIZES
$base-font-size: 12px;
$nav-font-size: 14px;
$control-font-size: 14px;
$h1-size: 36px;
$h2-size: 30px;
$h3-size: 24px;
$h4-size: 18px;
$h5-size: 14px;
$h6-size: 12px;
$radius-size: 4px;
$nav-height: 50px;
// ----- COLORS
$gray6: #eaeaea;
$gray5: #dfdfdf;
$gray4: #b3b3b3;
$gray3: #727272;
$gray2: #43... | SquareSquash/web/app/assets/stylesheets/_vars.scss/0 | {
"file_path": "SquareSquash/web/app/assets/stylesheets/_vars.scss",
"repo_id": "SquareSquash",
"token_count": 900
} | 101 |
# 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/app/controllers/additions/authentication_helpers.rb/0 | {
"file_path": "SquareSquash/web/app/controllers/additions/authentication_helpers.rb",
"repo_id": "SquareSquash",
"token_count": 1159
} | 102 |
# 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/app/controllers/notification_thresholds_controller.rb/0 | {
"file_path": "SquareSquash/web/app/controllers/notification_thresholds_controller.rb",
"repo_id": "SquareSquash",
"token_count": 1856
} | 103 |
# 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/app/models/additions/password_authentication.rb/0 | {
"file_path": "SquareSquash/web/app/models/additions/password_authentication.rb",
"repo_id": "SquareSquash",
"token_count": 989
} | 104 |
# encoding: utf-8
# 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 applic... | SquareSquash/web/app/views/bugs/index.html.rb/0 | {
"file_path": "SquareSquash/web/app/views/bugs/index.html.rb",
"repo_id": "SquareSquash",
"token_count": 2322
} | 105 |
# encoding: utf-8
# 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 applic... | SquareSquash/web/app/views/occurrences/show.html.rb/0 | {
"file_path": "SquareSquash/web/app/views/occurrences/show.html.rb",
"repo_id": "SquareSquash",
"token_count": 7380
} | 106 |
---
default_url_options:
host: "localhost:3000"
protocol: http
| SquareSquash/web/config/environments/development/mailer.yml/0 | {
"file_path": "SquareSquash/web/config/environments/development/mailer.yml",
"repo_id": "SquareSquash",
"token_count": 23
} | 107 |
# Be sure to restart your server when you modify this file.
Rails.application.config.action_dispatch.cookies_serializer = :marshal
| SquareSquash/web/config/initializers/cookies_serializer.rb/0 | {
"file_path": "SquareSquash/web/config/initializers/cookies_serializer.rb",
"repo_id": "SquareSquash",
"token_count": 38
} | 108 |
class AddHostedFilenameToSourceMaps < ActiveRecord::Migration
def up
add_column :source_maps, :filename, :string, limit: 255
say "Updating existing source maps"
SourceMap.reset_column_information
SourceMap.find_each(batch_size: 50) do |map|
map.update_attribute :filename, map.map.filename
e... | SquareSquash/web/db/migrate/20151126022941_add_hosted_filename_to_source_maps.rb/0 | {
"file_path": "SquareSquash/web/db/migrate/20151126022941_add_hosted_filename_to_source_maps.rb",
"repo_id": "SquareSquash",
"token_count": 174
} | 109 |
# 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/lib/assets/javascripts/buttons.js.coffee/0 | {
"file_path": "SquareSquash/web/lib/assets/javascripts/buttons.js.coffee",
"repo_id": "SquareSquash",
"token_count": 581
} | 110 |
# 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/lib/assets/javascripts/utilities.js.coffee/0 | {
"file_path": "SquareSquash/web/lib/assets/javascripts/utilities.js.coffee",
"repo_id": "SquareSquash",
"token_count": 2473
} | 111 |
# 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/lib/blamer/cache.rb/0 | {
"file_path": "SquareSquash/web/lib/blamer/cache.rb",
"repo_id": "SquareSquash",
"token_count": 1335
} | 112 |
# 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/controllers/account/memberships_controller_spec.rb/0 | {
"file_path": "SquareSquash/web/spec/controllers/account/memberships_controller_spec.rb",
"repo_id": "SquareSquash",
"token_count": 724
} | 113 |
# 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/controllers/notification_thresholds_controller_spec.rb/0 | {
"file_path": "SquareSquash/web/spec/controllers/notification_thresholds_controller_spec.rb",
"repo_id": "SquareSquash",
"token_count": 1686
} | 114 |
# 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/mailers/notification_mailer_spec.rb/0 | {
"file_path": "SquareSquash/web/spec/mailers/notification_mailer_spec.rb",
"repo_id": "SquareSquash",
"token_count": 721
} | 115 |
/* Flot plugin for plotting textual data or categories.
Copyright (c) 2007-2012 IOLA and Ole Laursen.
Licensed under the MIT license.
Consider a dataset like [["February", 34], ["March", 20], ...]. This plugin
allows you to plot such a dataset directly.
To enable it, you must specify mode: "categories" on the axis w... | SquareSquash/web/vendor/assets/javascripts/flot/categories.js/0 | {
"file_path": "SquareSquash/web/vendor/assets/javascripts/flot/categories.js",
"repo_id": "SquareSquash",
"token_count": 2733
} | 116 |
/*!
* jQuery Cookie Plugin
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2011, Klaus Hartl
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/GPL-2.0
*/
(function($) {
$.cookie = function(key, value, ... | SquareSquash/web/vendor/assets/javascripts/jquery-cookie.js/0 | {
"file_path": "SquareSquash/web/vendor/assets/javascripts/jquery-cookie.js",
"repo_id": "SquareSquash",
"token_count": 822
} | 117 |
/**
* 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/shBrushHaxe.js/0 | {
"file_path": "SquareSquash/web/vendor/assets/javascripts/sh/shBrushHaxe.js",
"repo_id": "SquareSquash",
"token_count": 1051
} | 118 |
/**
* 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/shBrushVb.js/0 | {
"file_path": "SquareSquash/web/vendor/assets/javascripts/sh/shBrushVb.js",
"repo_id": "SquareSquash",
"token_count": 824
} | 119 |
{
"root": true,
"env": {
"browser": true
},
"extends": ["./jslib/shared/eslintrc.json"],
"rules": {
"import/order": [
"error",
{
"alphabetize": {
"order": "asc"
},
"newlines-between": "always",
"pathGroups": [
{
"pattern": "js... | bitwarden/web/.eslintrc.json/0 | {
"file_path": "bitwarden/web/.eslintrc.json",
"repo_id": "bitwarden",
"token_count": 356
} | 120 |
import { Component, Input } from "@angular/core";
import { SelectOptions } from "jslib-angular/interfaces/selectOptions";
import { BaseCvaComponent } from "./base-cva.component";
/** For use in the SSO Config Form only - will be deprecated by the Component Library */
@Component({
selector: "app-select",
template... | bitwarden/web/bitwarden_license/src/app/organizations/components/select.component.ts/0 | {
"file_path": "bitwarden/web/bitwarden_license/src/app/organizations/components/select.component.ts",
"repo_id": "bitwarden",
"token_count": 126
} | 121 |
import { Injectable } from "@angular/core";
import { ActivatedRouteSnapshot, CanActivate, Router } from "@angular/router";
import { I18nService } from "jslib-common/abstractions/i18n.service";
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
import { ProviderService } from "jslib... | bitwarden/web/bitwarden_license/src/app/providers/guards/provider.guard.ts/0 | {
"file_path": "bitwarden/web/bitwarden_license/src/app/providers/guards/provider.guard.ts",
"repo_id": "bitwarden",
"token_count": 370
} | 122 |
import { CommonModule } from "@angular/common";
import { ComponentFactoryResolver, NgModule } from "@angular/core";
import { FormsModule } from "@angular/forms";
import { JslibModule } from "jslib-angular/jslib.module";
import { ModalService } from "jslib-angular/services/modal.service";
import { OssModule } from "sr... | bitwarden/web/bitwarden_license/src/app/providers/providers.module.ts/0 | {
"file_path": "bitwarden/web/bitwarden_license/src/app/providers/providers.module.ts",
"repo_id": "bitwarden",
"token_count": 711
} | 123 |
{
"dev": {
"proxyApi": "http://localhost:4001",
"proxyIdentity": "http://localhost:33657",
"proxyEvents": "http://localhost:46274",
"proxyNotifications": "http://localhost:61841",
"port": 8081
}
}
| bitwarden/web/config/selfhosted.json/0 | {
"file_path": "bitwarden/web/config/selfhosted.json",
"repo_id": "bitwarden",
"token_count": 89
} | 124 |
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate autocomplete="off">
<div class="row justify-content-md-center mt-5">
<div class="col-5">
<p class="lead text-center mb-4">{{ "setMasterPassword" | i18n }}</p>
<div class="card d-block">
<div class="card-body text-c... | bitwarden/web/src/app/accounts/set-password.component.html/0 | {
"file_path": "bitwarden/web/src/app/accounts/set-password.component.html",
"repo_id": "bitwarden",
"token_count": 2605
} | 125 |
<router-outlet></router-outlet>
| bitwarden/web/src/app/app.component.html/0 | {
"file_path": "bitwarden/web/src/app/app.component.html",
"repo_id": "bitwarden",
"token_count": 14
} | 126 |
<div class="container footer text-muted">
<div class="row">
<div class="col">© {{ year }} Bitwarden Inc.</div>
<div class="col text-center"></div>
<div class="col text-right">
{{ "versionNumber" | i18n: version }}
</div>
</div>
</div>
| bitwarden/web/src/app/layouts/footer.component.html/0 | {
"file_path": "bitwarden/web/src/app/layouts/footer.component.html",
"repo_id": "bitwarden",
"token_count": 106
} | 127 |
import { Pipe, PipeTransform } from "@angular/core";
import { Organization } from "jslib-common/models/domain/organization";
@Pipe({
name: "orgNameFromId",
pure: true,
})
export class GetOrgNameFromIdPipe implements PipeTransform {
transform(value: string, organizations: Organization[]) {
const orgName = or... | bitwarden/web/src/app/modules/pipes/get-organization-name.pipe.ts/0 | {
"file_path": "bitwarden/web/src/app/modules/pipes/get-organization-name.pipe.ts",
"repo_id": "bitwarden",
"token_count": 124
} | 128 |
import { Component } from "@angular/core";
import { TypeFilterComponent as BaseTypeFilterComponent } from "jslib-angular/modules/vault-filter/components/type-filter.component";
@Component({
selector: "app-type-filter",
templateUrl: "type-filter.component.html",
})
export class TypeFilterComponent extends BaseType... | bitwarden/web/src/app/modules/vault-filter/components/type-filter.component.ts/0 | {
"file_path": "bitwarden/web/src/app/modules/vault-filter/components/type-filter.component.ts",
"repo_id": "bitwarden",
"token_count": 90
} | 129 |
import { NgModule } from "@angular/core";
import { VaultModule } from "../../vault.module";
import { OrganizationVaultRoutingModule } from "./organization-vault-routing.module";
import { OrganizationVaultComponent } from "./organization-vault.component";
@NgModule({
imports: [VaultModule, OrganizationVaultRoutingM... | bitwarden/web/src/app/modules/vault/modules/organization-vault/organization-vault.module.ts/0 | {
"file_path": "bitwarden/web/src/app/modules/vault/modules/organization-vault/organization-vault.module.ts",
"repo_id": "bitwarden",
"token_count": 127
} | 130 |
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="eventLogsTitle">
<div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title" id="eventLogsTitle">
{{ "eventLogs" | i18n }}... | bitwarden/web/src/app/organizations/manage/entity-events.component.html/0 | {
"file_path": "bitwarden/web/src/app/organizations/manage/entity-events.component.html",
"repo_id": "bitwarden",
"token_count": 2411
} | 131 |
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="resetPasswordTitle">
<div class="modal-dialog" role="document">
<form class="modal-content" #form (ngSubmit)="submit()" [appApiAction]="formPromise">
<div class="modal-header">
<h2 class="modal-title" id="resetPasswordTitle">
... | bitwarden/web/src/app/organizations/manage/reset-password.component.html/0 | {
"file_path": "bitwarden/web/src/app/organizations/manage/reset-password.component.html",
"repo_id": "bitwarden",
"token_count": 2080
} | 132 |
<app-callout type="warning">
{{ "personalOwnershipExemption" | i18n }}
</app-callout>
<div class="form-group">
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
id="enabled"
[formControl]="enabled"
name="Enabled"
/>
<label class="form-check-label" fo... | bitwarden/web/src/app/organizations/policies/personal-ownership.component.html/0 | {
"file_path": "bitwarden/web/src/app/organizations/policies/personal-ownership.component.html",
"repo_id": "bitwarden",
"token_count": 175
} | 133 |
import { Component, EventEmitter, Input, Output } 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 "jsl... | bitwarden/web/src/app/organizations/settings/adjust-subscription.component.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/settings/adjust-subscription.component.ts",
"repo_id": "bitwarden",
"token_count": 771
} | 134 |
import { Component } from "@angular/core";
import { ActivatedRoute } from "@angular/router";
import { OrganizationService } from "jslib-common/abstractions/organization.service";
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
@Component({
selector: "app-org-settings",
temp... | bitwarden/web/src/app/organizations/settings/settings.component.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/settings/settings.component.ts",
"repo_id": "bitwarden",
"token_count": 285
} | 135 |
import { Component } from "@angular/core";
import { ApiService } from "jslib-common/abstractions/api.service";
import { CipherService } from "jslib-common/abstractions/cipher.service";
import { CryptoService } from "jslib-common/abstractions/crypto.service";
import { I18nService } from "jslib-common/abstractions/i18n.... | bitwarden/web/src/app/organizations/vault/attachments.component.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/vault/attachments.component.ts",
"repo_id": "bitwarden",
"token_count": 881
} | 136 |
import { Component, Input, OnInit } from "@angular/core";
import { DomSanitizer } from "@angular/platform-browser";
import { MessagingService } from "jslib-common/abstractions/messaging.service";
import { StateService } from "jslib-common/abstractions/state.service";
export enum ReportTypes {
"exposedPasswords" = "... | bitwarden/web/src/app/reports/report-card.component.ts/0 | {
"file_path": "bitwarden/web/src/app/reports/report-card.component.ts",
"repo_id": "bitwarden",
"token_count": 4769
} | 137 |
<div class="row" [formGroup]="datesForm">
<div class="col-6 form-group">
<label for="deletionDate">{{ "deletionDate" | i18n }}</label>
<ng-template #deletionDateCustom>
<ng-container [ngSwitch]="browserPath">
<ng-container *ngSwitchCase="'firefox'">
<div class="d-flex justify-content-a... | bitwarden/web/src/app/send/efflux-dates.component.html/0 | {
"file_path": "bitwarden/web/src/app/send/efflux-dates.component.html",
"repo_id": "bitwarden",
"token_count": 3424
} | 138 |
<form #form class="card" (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate>
<div class="card-body">
<button type="button" class="close" appA11yTitle="{{ 'cancel' | i18n }}" (click)="cancel()">
<span aria-hidden="true">×</span>
</button>
<h3 class="card-body-header">{{ (add ? ... | bitwarden/web/src/app/settings/adjust-storage.component.html/0 | {
"file_path": "bitwarden/web/src/app/settings/adjust-storage.component.html",
"repo_id": "bitwarden",
"token_count": 740
} | 139 |
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="deleteAccountTitle">
<div class="modal-dialog modal-dialog-scrollable" role="document">
<form
class="modal-content"
#form
(ngSubmit)="submit()"
[appApiAction]="formPromise"
ngNativeValidate
>
<div clas... | bitwarden/web/src/app/settings/delete-account.component.html/0 | {
"file_path": "bitwarden/web/src/app/settings/delete-account.component.html",
"repo_id": "bitwarden",
"token_count": 672
} | 140 |
<ng-container *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>
</ng-container>
<ng-container *ngIf="createOrganization && selfHosted">
<p>{{ "uploadLicenseFileOrg" | i18n }}</p>... | bitwarden/web/src/app/settings/organization-plans.component.html/0 | {
"file_path": "bitwarden/web/src/app/settings/organization-plans.component.html",
"repo_id": "bitwarden",
"token_count": 7210
} | 141 |
import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { ChangePasswordComponent } from "./change-password.component";
import { SecurityKeysComponent } from "./security-keys.component";
import { SecurityComponent } from "./security.component";
import { TwoFactorSetupCo... | bitwarden/web/src/app/settings/security-routing.module.ts/0 | {
"file_path": "bitwarden/web/src/app/settings/security-routing.module.ts",
"repo_id": "bitwarden",
"token_count": 409
} | 142 |
import { Directive, EventEmitter, Output } 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-comm... | bitwarden/web/src/app/settings/two-factor-base.component.ts/0 | {
"file_path": "bitwarden/web/src/app/settings/two-factor-base.component.ts",
"repo_id": "bitwarden",
"token_count": 1030
} | 143 |
import { Component } from "@angular/core";
import { ApiService } from "jslib-common/abstractions/api.service";
import { CipherService } from "jslib-common/abstractions/cipher.service";
import { CryptoService } from "jslib-common/abstractions/crypto.service";
import { FolderService } from "jslib-common/abstractions/fol... | bitwarden/web/src/app/settings/update-key.component.ts/0 | {
"file_path": "bitwarden/web/src/app/settings/update-key.component.ts",
"repo_id": "bitwarden",
"token_count": 1365
} | 144 |
import { Component, OnInit } from "@angular/core";
import { Router } from "@angular/router";
import * as JSZip from "jszip";
import Swal, { SweetAlertIcon } from "sweetalert2";
import { I18nService } from "jslib-common/abstractions/i18n.service";
import { ImportService } from "jslib-common/abstractions/import.service"... | bitwarden/web/src/app/tools/import.component.ts/0 | {
"file_path": "bitwarden/web/src/app/tools/import.component.ts",
"repo_id": "bitwarden",
"token_count": 2685
} | 145 |
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
import { CipherService } from "jslib-common/abstractions/cipher.service";
import { FolderService } from "jslib-common/abstractions/folder.service";
import { I18nService } from "jslib-common/abstractions/i18n.service";
import { PlatformUtil... | bitwarden/web/src/app/vault/bulk-move.component.ts/0 | {
"file_path": "bitwarden/web/src/app/vault/bulk-move.component.ts",
"repo_id": "bitwarden",
"token_count": 453
} | 146 |
@import "../scss/styles.scss";
| bitwarden/web/src/connectors/captcha-mobile.scss/0 | {
"file_path": "bitwarden/web/src/connectors/captcha-mobile.scss",
"repo_id": "bitwarden",
"token_count": 13
} | 147 |
@import "../scss/styles.scss";
body {
min-width: 0px !important;
}
| bitwarden/web/src/connectors/webauthn.scss/0 | {
"file_path": "bitwarden/web/src/connectors/webauthn.scss",
"repo_id": "bitwarden",
"token_count": 30
} | 148 |
{
"pageTitle": {
"message": "$APP_NAME$ Webkluis",
"description": "The title of the website in the browser window.",
"placeholders": {
"app_name": {
"content": "$1",
"example": "Bitwarden"
}
}
},
"whatTypeOfItem": {
"message": "Van welke categorie is dit item?"
},... | bitwarden/web/src/locales/nl/messages.json/0 | {
"file_path": "bitwarden/web/src/locales/nl/messages.json",
"repo_id": "bitwarden",
"token_count": 61283
} | 149 |
{
"pageTitle": {
"message": "$APP_NAME$ 網頁版密碼庫",
"description": "The title of the website in the browser window.",
"placeholders": {
"app_name": {
"content": "$1",
"example": "Bitwarden"
}
}
},
"whatTypeOfItem": {
"message": "這是什麼類型的項目?"
},
"name": {
"messag... | bitwarden/web/src/locales/zh_TW/messages.json/0 | {
"file_path": "bitwarden/web/src/locales/zh_TW/messages.json",
"repo_id": "bitwarden",
"token_count": 75211
} | 150 |
.table {
@include themify($themes) {
color: themed("textColor");
}
td {
vertical-align: middle;
@include themify($themes) {
color: themed("textColor");
}
& > a {
&:not(.badge) {
@include themify($themes) {
color: themed("tableLinkColor");
}
&:hov... | bitwarden/web/src/scss/tables.scss/0 | {
"file_path": "bitwarden/web/src/scss/tables.scss",
"repo_id": "bitwarden",
"token_count": 1147
} | 151 |
{
"extends": "./jslib/shared/tsconfig",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"tldjs": ["jslib/common/src/misc/tldjs.noop"],
"jslib-common/*": ["jslib/common/src/*"],
"jslib-angular/*": ["jslib/angular/src/*"],
"@bitwarden/components": ["jslib/components/src"],
"src/*... | bitwarden/web/tsconfig.json/0 | {
"file_path": "bitwarden/web/tsconfig.json",
"repo_id": "bitwarden",
"token_count": 295
} | 152 |
package com.aitongyi.web.back.conf;
//import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
... | chwshuang/web/back/src/main/java/com/aitongyi/web/back/conf/MvcConfig.java/0 | {
"file_path": "chwshuang/web/back/src/main/java/com/aitongyi/web/back/conf/MvcConfig.java",
"repo_id": "chwshuang",
"token_count": 769
} | 153 |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>web</artifactId>
... | chwshuang/web/dao/pom.xml/0 | {
"file_path": "chwshuang/web/dao/pom.xml",
"repo_id": "chwshuang",
"token_count": 358
} | 154 |
package web
import (
"net/http"
"reflect"
)
// Request wraps net/http's Request and gocraf/web specific fields. In particular, PathParams is used to access
// captures params in your URL. A Request is sent to handlers on each request.
type Request struct {
*http.Request
// PathParams exists if you have wildcards... | gocraft/web/request.go/0 | {
"file_path": "gocraft/web/request.go",
"repo_id": "gocraft",
"token_count": 352
} | 155 |
---
title: HTML
eleventyNavigation:
key: HTML
# parent: Going Buildless
order: 20
---
<dfn>HTML</dfn> stands for <q>HyperText Markup Language</q>, <q>HyperText</q> being text documents containing interactive links to other such documents, and <q>Markup</q> meaning a syntax for applying semantics (such as those l... | modernweb-dev/web/docs-drafts/faqs/html.md/0 | {
"file_path": "modernweb-dev/web/docs-drafts/faqs/html.md",
"repo_id": "modernweb-dev",
"token_count": 1183
} | 156 |
---
eleventyNavigation:
key: Family
---
# About Modern Web
> Our goal is to provide developers with the guides and tools they need to build for the modern web. We aim to work closely with the browser and avoid complex abstractions.
Modern browsers are a powerful platform for building websites and applications. We ... | modernweb-dev/web/docs/discover/about.md/0 | {
"file_path": "modernweb-dev/web/docs/discover/about.md",
"repo_id": "modernweb-dev",
"token_count": 265
} | 157 |
# Dev Server >> Plugins >> Import Maps ||5
Plugin for resolving imports using [Import maps](https://github.com/WICG/import-maps).
Import Maps can be used to resolve imports in your code as an alternative to the `--node-resolve` flag, or to mock modules.
## Import Maps
> Description from the original proposal readme... | modernweb-dev/web/docs/docs/dev-server/plugins/import-maps.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/dev-server/plugins/import-maps.md",
"repo_id": "modernweb-dev",
"token_count": 1659
} | 158 |
---
eleventyNavigation:
key: Storybook Builder >> Overview
title: Overview
parent: Storybook Builder
order: 1
---
# Web Storybook Builder
`@web/storybook-builder` is a [Storybook builder](https://storybook.js.org/docs/web-components/builders/overview) powered by [`@web/dev-server`](../dev-server/overview.md).... | modernweb-dev/web/docs/docs/storybook-builder/overview.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/storybook-builder/overview.md",
"repo_id": "modernweb-dev",
"token_count": 313
} | 159 |
# Test Runner >> Reporters >> Dot ||40
Mocha-style dot reporter for Web Test Runner
## Example
```js
import { dotReporter } from '@web/test-runner';
export default {
nodeResolve: true,
reporters: [dotReporter()],
};
```
| modernweb-dev/web/docs/docs/test-runner/reporters/dot.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/test-runner/reporters/dot.md",
"repo_id": "modernweb-dev",
"token_count": 77
} | 160 |
# Test Runner >> Browsers ||30
Browser launchers are responsible for opening and controlling the actual browser.
By default, the test runner will look for a globally installed Chrome on your computer.
## Testing with Puppeteer
You can run tests with puppeteer, which will download a local instance of Chromium instea... | modernweb-dev/web/docs/guides/test-runner/browsers.md/0 | {
"file_path": "modernweb-dev/web/docs/guides/test-runner/browsers.md",
"repo_id": "modernweb-dev",
"token_count": 695
} | 161 |
setTimeout(() => {
window.location.reload();
}, 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-reload.test.js/0 | {
"file_path": "modernweb-dev/web/integration/test-runner/tests/location-change/browser-tests/fail-location-reload.test.js",
"repo_id": "modernweb-dev",
"token_count": 57
} | 162 |
foo' | modernweb-dev/web/integration/test-runner/tests/test-failure/browser-tests/fail-syntax-error-dependency.js/0 | {
"file_path": "modernweb-dev/web/integration/test-runner/tests/test-failure/browser-tests/fail-syntax-error-dependency.js",
"repo_id": "modernweb-dev",
"token_count": 2
} | 163 |
import { expect } from 'chai';
import puppeteer, { Browser, Page } from 'puppeteer';
import fs from 'fs';
import path from 'path';
import { deserialize } from '../src/deserialize.js';
const serializeScript = fs.readFileSync(require.resolve('../dist/serialize.js'), 'utf-8');
const defaultOptions = { browserRootDir: __... | modernweb-dev/web/packages/browser-logs/test/serialize-deserialize.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/browser-logs/test/serialize-deserialize.test.ts",
"repo_id": "modernweb-dev",
"token_count": 7348
} | 164 |
module.exports = { foo: 'bar' };
| modernweb-dev/web/packages/config-loader/test/fixtures/package-cjs/commonjs-in-.js/my-project.config.js/0 | {
"file_path": "modernweb-dev/web/packages/config-loader/test/fixtures/package-cjs/commonjs-in-.js/my-project.config.js",
"repo_id": "modernweb-dev",
"token_count": 13
} | 165 |
# @web/dev-server-core
## 0.7.1
### Patch Changes
- 649edc2b: Add option to modify chokidar watchOptions with @web/dev-server
## 0.7.0
### Minor Changes
- c185cbaa: Set minimum node version to 18
### Patch Changes
- Updated dependencies [c185cbaa]
- @web/parse5-utils@2.1.0
## 0.6.3
### Patch Changes
- 2749... | modernweb-dev/web/packages/dev-server-core/CHANGELOG.md/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/CHANGELOG.md",
"repo_id": "modernweb-dev",
"token_count": 2777
} | 166 |
import { Middleware } from 'koa';
/**
* Returns 304 response for cacheable requests if etag matches
*/
export function etagCacheMiddleware(): Middleware {
return async (ctx, next) => {
await next();
if (!ctx.body || ctx.status === 304) {
return;
}
if (!['GET', 'HEAD'].includes(ctx.method)) ... | modernweb-dev/web/packages/dev-server-core/src/middleware/etagCacheMiddleware.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/src/middleware/etagCacheMiddleware.ts",
"repo_id": "modernweb-dev",
"token_count": 332
} | 167 |
import Koa from 'koa';
import path from 'path';
import { FSWatcher } from 'chokidar';
import httpServer, { IncomingMessage, ServerResponse } from 'http';
import http2Server from 'http2';
import fs from 'fs';
import net, { Server, Socket, ListenOptions } from 'net';
import { DevServerCoreConfig } from './DevServerCoreC... | modernweb-dev/web/packages/dev-server-core/src/server/createServer.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/src/server/createServer.ts",
"repo_id": "modernweb-dev",
"token_count": 1593
} | 168 |
<html>
<head>
<title>My app 2</title>
</head>
<body>
<p>Hello world 2</p>
</body>
</html>
| modernweb-dev/web/packages/dev-server-core/test/fixtures/basic/src/index.html/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/test/fixtures/basic/src/index.html",
"repo_id": "modernweb-dev",
"token_count": 54
} | 169 |
import { expect } from 'chai';
import { createTestServer } from '../helpers.js';
import { webSocketScript } from '../../src/web-sockets/webSocketsPlugin.js';
describe('webSocketsPlugin', () => {
it('injects an event stream script if a plugin has inject set and event stream is enabled', async () => {
const { ser... | modernweb-dev/web/packages/dev-server-core/test/web-sockets/webSocketsPlugin.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/test/web-sockets/webSocketsPlugin.test.ts",
"repo_id": "modernweb-dev",
"token_count": 975
} | 170 |
import {
Context,
Plugin,
PluginSyntaxError,
Logger,
DevServerCoreConfig,
getRequestFilePath,
} from '@web/dev-server-core';
import type { TransformOptions, BuildFailure } from 'esbuild';
import { Loader, Message, transform } from 'esbuild';
import { promisify } from 'util';
import path from 'path';
import ... | modernweb-dev/web/packages/dev-server-esbuild/src/EsbuildPlugin.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-esbuild/src/EsbuildPlugin.ts",
"repo_id": "modernweb-dev",
"token_count": 2491
} | 171 |
{
"compilerOptions": {
"target": "es2022",
"useDefineForClassFields": true
}
}
| modernweb-dev/web/packages/dev-server-esbuild/test/fixture/tsconfig.json/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-esbuild/test/fixture/tsconfig.json",
"repo_id": "modernweb-dev",
"token_count": 41
} | 172 |
import { sharedTemplate } from './sharedTemplate.js';
const renderedComponents = new Set();
export class MyComponent extends HTMLElement {
static styles = `
h1 { color: hotpink; }
p { color: olivegreen; }
`;
static template = `
<h1>Foo</h1>
<p>Bar</p>
`;
constructor() {
super();
th... | modernweb-dev/web/packages/dev-server-hmr/demo/vanilla/component.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-hmr/demo/vanilla/component.js",
"repo_id": "modernweb-dev",
"token_count": 384
} | 173 |
# Dev server import maps
Plugin for resolving imports using [Import maps](https://github.com/WICG/import-maps).
Import Maps can be used to resolve imports in your code as an alternative to the `--node-resolve` flag, or to mock modules.
See [our website](https://modern-web.dev/docs/dev-server/plugins/import-maps/) fo... | modernweb-dev/web/packages/dev-server-import-maps/README.md/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-import-maps/README.md",
"repo_id": "modernweb-dev",
"token_count": 94
} | 174 |
import { fetchText, expectIncludes, virtualFilesPlugin } from '@web/dev-server-core/test-helpers';
import { createTestServer } from '@web/dev-server-core/test-helpers';
import { expect } from 'chai';
import { spy } from 'hanbi';
import path from 'path';
import { importMapsPlugin } from '../src/importMapsPlugin.js';
im... | modernweb-dev/web/packages/dev-server-import-maps/test/resolving.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-import-maps/test/resolving.test.ts",
"repo_id": "modernweb-dev",
"token_count": 5613
} | 175 |
import { Plugin, Logger, getRequestFilePath, isInlineScriptRequest } from '@web/dev-server-core';
import { GeneratedFile, PolyfillsConfig } from '@web/polyfills-loader';
import path from 'path';
import { isLegacyBrowser } from './isLegacyBrowser.js';
import { babelTransform, es5Config, systemJsConfig } from './babelTra... | modernweb-dev/web/packages/dev-server-legacy/src/legacyPlugin.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-legacy/src/legacyPlugin.ts",
"repo_id": "modernweb-dev",
"token_count": 1927
} | 176 |
import path from 'path';
import {
DevServerCoreConfig,
FSWatcher,
Plugin as WdsPlugin,
Context,
ResolveOptions,
} from '@web/dev-server-core';
import {
PluginContext,
MinimalPluginContext,
TransformPluginContext,
CustomPluginOptions,
ModuleInfo,
} from 'rollup';
export function createRollupPluginCo... | modernweb-dev/web/packages/dev-server-rollup/src/createRollupPluginContextAdapter.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/src/createRollupPluginContextAdapter.ts",
"repo_id": "modernweb-dev",
"token_count": 1351
} | 177 |
import c from './foo/c.js';
export default `b ${c}`;
| modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/bundle-basic/src/b.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/bundle-basic/src/b.js",
"repo_id": "modernweb-dev",
"token_count": 23
} | 178 |
.foo {
color: blue;
}
.bar {
color: red;
}
| modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/postcss/my-styles.css/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/postcss/my-styles.css",
"repo_id": "modernweb-dev",
"token_count": 25
} | 179 |
import path from 'path';
import rollupNodeResolve from '@rollup/plugin-node-resolve';
import rollupCommonjs from '@rollup/plugin-commonjs';
import { createTestServer, fetchText, expectIncludes } from '../test-helpers.js';
import { fromRollup } from '../../../src/index.js';
import { expect } from 'chai';
const nodeRes... | modernweb-dev/web/packages/dev-server-rollup/test/node/plugins/node-resolve.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/test/node/plugins/node-resolve.test.ts",
"repo_id": "modernweb-dev",
"token_count": 2233
} | 180 |
import commandLineArgs from 'command-line-args';
export function readCommandLineArgs() {
return commandLineArgs([
{
name: 'config-dir',
alias: 'c',
type: String,
defaultValue: './.storybook',
},
{
name: 'output-dir',
alias: 'o',
type: String,
defaultValue: ... | modernweb-dev/web/packages/dev-server-storybook/src/build/readCommandLineArgs.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-storybook/src/build/readCommandLineArgs.ts",
"repo_id": "modernweb-dev",
"token_count": 153
} | 181 |
<html>
<head> </head>
<body>
<img width="100" src="/demo/logo.png" />
<h1>Static demo</h1>
<p>A demo using https.</p>
<div id="test"></div>
<script type="module" src="/demo/http2/module.js"></script>
<script type="module">
import '/demo/http2/module.js';
window.__tests = {
... | modernweb-dev/web/packages/dev-server/demo/http2/index.html/0 | {
"file_path": "modernweb-dev/web/packages/dev-server/demo/http2/index.html",
"repo_id": "modernweb-dev",
"token_count": 316
} | 182 |
export class DevServerStartError extends Error {}
| modernweb-dev/web/packages/dev-server/src/DevServerStartError.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server/src/DevServerStartError.ts",
"repo_id": "modernweb-dev",
"token_count": 10
} | 183 |
import puppeteer from 'puppeteer';
import path from 'path';
import { fileURLToPath } from 'url';
import { startDevServer } from '../index.mjs';
const dirname = path.dirname(fileURLToPath(import.meta.url));
const testCases = [
{
name: 'base-path',
tests: ['moduleLoaded'],
},
{
name: 'index-rewrite',... | modernweb-dev/web/packages/dev-server/test/integration.test.mjs/0 | {
"file_path": "modernweb-dev/web/packages/dev-server/test/integration.test.mjs",
"repo_id": "modernweb-dev",
"token_count": 912
} | 184 |
// @ts-nocheck
import fs from 'node:fs';
import { createRequire } from 'node:module';
import path from 'node:path';
const require = createRequire(import.meta.url);
export function mockRollupPlugin(
{ interceptor } = {
interceptor: '',
},
) {
return {
name: 'rollup-plugin-msw',
writeBundle(opts) {
... | modernweb-dev/web/packages/mocks/rollup-plugin.js/0 | {
"file_path": "modernweb-dev/web/packages/mocks/rollup-plugin.js",
"repo_id": "modernweb-dev",
"token_count": 410
} | 185 |
{
"name": "@web/parse5-utils",
"version": "2.1.0",
"publishConfig": {
"access": "public"
},
"description": "Utils for using parse5",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/modernweb-dev/web.git",
"directory": "packages/parse5-utils"
},
"author": "mo... | modernweb-dev/web/packages/parse5-utils/package.json/0 | {
"file_path": "modernweb-dev/web/packages/parse5-utils/package.json",
"repo_id": "modernweb-dev",
"token_count": 548
} | 186 |
import { expect } from 'chai';
import fs from 'fs';
import path from 'path';
import { PolyfillsLoaderConfig } from '../src/types.js';
import { createPolyfillsLoader } from '../src/createPolyfillsLoader.js';
import { noModuleSupportTest, fileTypes } from '../src/utils.js';
const updateSnapshots = process.argv.includes(... | modernweb-dev/web/packages/polyfills-loader/test/createPolyfillsLoader.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/polyfills-loader/test/createPolyfillsLoader.test.ts",
"repo_id": "modernweb-dev",
"token_count": 4518
} | 187 |
# Rollup Plugin Copy
A Rollup plugin which copies asset files while retaining the relative folder structure.
See [our website](https://modern-web.dev/docs/building/rollup-plugin-copy/) for full documentation.
| modernweb-dev/web/packages/rollup-plugin-copy/README.md/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-copy/README.md",
"repo_id": "modernweb-dev",
"token_count": 53
} | 188 |
const path = require('path');
const { expect } = require('chai');
const { patternsToFiles } = require('../src/patternsToFiles.js');
describe('patternsToFiles', () => {
it('works with a string', async () => {
const files = await patternsToFiles('*.svg', path.resolve(__dirname, './fixture/'));
expect(files.le... | modernweb-dev/web/packages/rollup-plugin-copy/test/patternsToFiles.test.js/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-copy/test/patternsToFiles.test.js",
"repo_id": "modernweb-dev",
"token_count": 378
} | 189 |
console.log('lazy-1.js');
| modernweb-dev/web/packages/rollup-plugin-html/demo/spa/src/lazy-1.js/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/demo/spa/src/lazy-1.js",
"repo_id": "modernweb-dev",
"token_count": 12
} | 190 |
import { InputOption } from 'rollup';
import { InputHTMLOptions, RollupPluginHTMLOptions } from '../RollupPluginHTMLOptions.js';
import { createError } from '../utils.js';
export function normalizeInputOptions(
pluginOptions: RollupPluginHTMLOptions,
rollupInput?: InputOption,
): InputHTMLOptions[] {
if (pluginO... | modernweb-dev/web/packages/rollup-plugin-html/src/input/normalizeInputOptions.ts/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/src/input/normalizeInputOptions.ts",
"repo_id": "modernweb-dev",
"token_count": 448
} | 191 |
:root {
color: x;
}
| modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/assets/foo/x.css/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/assets/foo/x.css",
"repo_id": "modernweb-dev",
"token_count": 12
} | 192 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.