text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
When searching for records on same field Odoo joins multiple queries with OR.
For example:
* Perform a search for customer "John" on field Name
* Odoo displays customers containing "John"
* Search for "Smith" on same field Name
* Odoo displays customers containing "John" OR "Smith"
With this module installed you can ... | OCA/web/web_search_with_and/readme/DESCRIPTION.rst/0 | {
"file_path": "OCA/web/web_search_with_and/readme/DESCRIPTION.rst",
"repo_id": "OCA",
"token_count": 100
} | 89 |
====================
Web Sheet Full Width
====================
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:... | OCA/web/web_sheet_full_width/README.rst/0 | {
"file_path": "OCA/web/web_sheet_full_width/README.rst",
"repo_id": "OCA",
"token_count": 1194
} | 90 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_timeline
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-10-19 08:08+0000\n"
"Last-Translator: Yves Goldberg <admin@ygol.com>\n"
"Language-Team: none\n"
... | OCA/web/web_timeline/i18n/he.po/0 | {
"file_path": "OCA/web/web_timeline/i18n/he.po",
"repo_id": "OCA",
"token_count": 1314
} | 91 |
This module was developed because Odoo optimizes views only for mobile or desktop, but
forgets about tablets.
It will be useful for you if you usually use a tablet.
If you need this module for those reasons, these might interest you too:
- `web_widget_numeric_step`
- OCA's `web_responsive`, or the Odoo EE alternativ... | OCA/web/web_touchscreen/readme/CONTEXT.md/0 | {
"file_path": "OCA/web/web_touchscreen/readme/CONTEXT.md",
"repo_id": "OCA",
"token_count": 95
} | 92 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_tree_duplicate
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-27 11:34+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Te... | OCA/web/web_tree_duplicate/i18n/it.po/0 | {
"file_path": "OCA/web/web_tree_duplicate/i18n/it.po",
"repo_id": "OCA",
"token_count": 375
} | 93 |
# Copyright 2017 ForgeFlow S.L.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "Web Widget Bokeh Chart",
"category": "Hidden",
"summary": "This widget allows to display charts using Bokeh library.",
"author": "ForgeFlow, " "Odoo Community Association (OCA), " "Creu Blanca",
... | OCA/web/web_widget_bokeh_chart/__manifest__.py/0 | {
"file_path": "OCA/web/web_widget_bokeh_chart/__manifest__.py",
"repo_id": "OCA",
"token_count": 423
} | 94 |
/** @odoo-module **/
/* Copyright 2019 Tecnativa - David Vidal
* Copyright 2024 Tecnativa - Carlos Roca
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
import {SelectCreateDialog} from "@web/views/view_dialogs/select_create_dialog";
import {Domain} from "@web/core/domain";
export function findChil... | OCA/web/web_widget_domain_editor_dialog/static/src/js/widget_domain_editor_dialog.esm.js/0 | {
"file_path": "OCA/web/web_widget_domain_editor_dialog/static/src/js/widget_domain_editor_dialog.esm.js",
"repo_id": "OCA",
"token_count": 1393
} | 95 |
/** @odoo-module **/
import {editInput, getFixture} from "@web/../tests/helpers/utils";
import {makeView, setupViewRegistries} from "@web/../tests/views/helpers";
const {QUnit} = window;
let serverData = {};
let target = getFixture();
QUnit.module("web_widget_dropdown_dynamic", (hooks) => {
hooks.beforeEach(() =... | OCA/web/web_widget_dropdown_dynamic/static/tests/web_widget_dropdown_dynamic_tests.esm.js/0 | {
"file_path": "OCA/web/web_widget_dropdown_dynamic/static/tests/web_widget_dropdown_dynamic_tests.esm.js",
"repo_id": "OCA",
"token_count": 3810
} | 96 |
/* global Webcam */
/*
Copyright 2016 Siddharth Bhalgami <siddharth.bhalgami@gmail.com>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
*/
odoo.define("web_widget_image_webcam.webcam_widget", function (require) {
"use strict";
var core = require("web.core");
var rpc = require("web.rpc... | OCA/web/web_widget_image_webcam/static/src/js/webcam_widget.js/0 | {
"file_path": "OCA/web/web_widget_image_webcam/static/src/js/webcam_widget.js",
"repo_id": "OCA",
"token_count": 3137
} | 97 |
To insert a mpld3 chart in a view proceed as follows:
#. You should inherit from abstract class abstract.mpld3.parser::
_name = 'res.partner'
_inherit = ['res.partner', 'abstract.mpld3.parser']
#. Import the required libraries::
import matplotlib.pyplot as plt
#. Declare a json computed field like this... | OCA/web/web_widget_mpld3_chart/readme/USAGE.rst/0 | {
"file_path": "OCA/web/web_widget_mpld3_chart/readme/USAGE.rst",
"repo_id": "OCA",
"token_count": 373
} | 98 |
This widget changes input number field and make it easier to increment the number thanks to 2 buttons (+ and -).
Use JS native logic for input number, so you can use the options ``min``, ``max``, ``step``, ``placeholder``.
Demo available at `Settings > Users & Companies > Users > *Select One* > See 'Credit Limit' fiel... | OCA/web/web_widget_numeric_step/readme/DESCRIPTION.rst/0 | {
"file_path": "OCA/web/web_widget_numeric_step/readme/DESCRIPTION.rst",
"repo_id": "OCA",
"token_count": 82
} | 99 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_open_tab
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-09-20 17:50+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-... | OCA/web/web_widget_open_tab/i18n/es.po/0 | {
"file_path": "OCA/web/web_widget_open_tab/i18n/es.po",
"repo_id": "OCA",
"token_count": 720
} | 100 |
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="ir_model_view" model="ir.ui.view">
<field name="name">ir.model.view.form</field>
<field name="model">ir.model</field>
<field name="inherit_id" ref="base.view_model_form" />
<field name="arch" type="xml">
<xpath ex... | OCA/web/web_widget_open_tab/views/ir_model_views.xml/0 | {
"file_path": "OCA/web/web_widget_open_tab/views/ir_model_views.xml",
"repo_id": "OCA",
"token_count": 234
} | 101 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_x2many_2d_matrix
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-04-22 15:47+0000\n"
"Last-Translator: Bosd <c5e2fd43-d292-4c90-9d1f-74ff3436329a@... | OCA/web/web_widget_x2many_2d_matrix/i18n/nl.po/0 | {
"file_path": "OCA/web/web_widget_x2many_2d_matrix/i18n/nl.po",
"repo_id": "OCA",
"token_count": 442
} | 102 |
$x2many_2d_matrix_max_height: 450px;
.o_form_view .o_field_x2many_2d_matrix {
.table-responsive {
max-height: $x2many_2d_matrix_max_height;
overflow-y: auto;
}
.table {
> thead > tr > th {
white-space: pre-line;
position: sticky;
top: 0;
... | OCA/web/web_widget_x2many_2d_matrix/static/src/components/x2many_2d_matrix_field/x2many_2d_matrix_field.scss/0 | {
"file_path": "OCA/web/web_widget_x2many_2d_matrix/static/src/components/x2many_2d_matrix_field/x2many_2d_matrix_field.scss",
"repo_id": "OCA",
"token_count": 1424
} | 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/assets/javascripts/search.js.coffee/0 | {
"file_path": "SquareSquash/web/app/assets/javascripts/search.js.coffee",
"repo_id": "SquareSquash",
"token_count": 2420
} | 104 |
@import "vars";
body#bugs-index {
#filter {
font-size: 11px;
select, input {
font-size: 11px;
font-weight: normal;
width: auto;
}
}
}
body#bugs-show {
// ----- GLOBAL PORTION
h1 {
border-bottom: 1px solid $gray5;
padding-bottom: 20px;
}
a#watch {
color: $orange... | SquareSquash/web/app/assets/stylesheets/bugs.css.scss/0 | {
"file_path": "SquareSquash/web/app/assets/stylesheets/bugs.css.scss",
"repo_id": "SquareSquash",
"token_count": 1774
} | 105 |
# 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/ldap_authentication_helpers.rb/0 | {
"file_path": "SquareSquash/web/app/controllers/additions/ldap_authentication_helpers.rb",
"repo_id": "SquareSquash",
"token_count": 1459
} | 106 |
# 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/project/memberships_controller.rb/0 | {
"file_path": "SquareSquash/web/app/controllers/project/memberships_controller.rb",
"repo_id": "SquareSquash",
"token_count": 1870
} | 107 |
# 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/comment.rb/0 | {
"file_path": "SquareSquash/web/app/models/comment.rb",
"repo_id": "SquareSquash",
"token_count": 1276
} | 108 |
# 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/project.rb/0 | {
"file_path": "SquareSquash/web/app/models/project.rb",
"repo_id": "SquareSquash",
"token_count": 6442
} | 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 o... | SquareSquash/web/app/views/bugs/show.js.erb/0 | {
"file_path": "SquareSquash/web/app/views/bugs/show.js.erb",
"repo_id": "SquareSquash",
"token_count": 6384
} | 110 |
development:
adapter: postgresql
encoding: utf8
host: localhost
username: squash
password:
database: squash_development
test:
adapter: postgresql
encoding: utf8
host: localhost
username: squash
password:
database: squash_test
production:
adapter: postgresql
encoding: utf8
host: localhost... | SquareSquash/web/config/database.yml/0 | {
"file_path": "SquareSquash/web/config/database.yml",
"repo_id": "SquareSquash",
"token_count": 124
} | 111 |
---
APIHost: YOUR_URL
| SquareSquash/web/config/environments/production/javascript_dogfood.yml/0 | {
"file_path": "SquareSquash/web/config/environments/production/javascript_dogfood.yml",
"repo_id": "SquareSquash",
"token_count": 9
} | 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/config/routes.rb/0 | {
"file_path": "SquareSquash/web/config/routes.rb",
"repo_id": "SquareSquash",
"token_count": 1181
} | 113 |
@import "vars";
ul.autocomplete {
z-index: 99;
position: absolute;
left: 0;
min-width: 200px;
border: 1px solid $gray4;
box-shadow: 0 4px 4px rgba(black, 0.5);
background-color: white;
display: none;
&.shown { display: block; }
li {
padding: 5px 10px;
&.selected { background-color: $blue; ... | SquareSquash/web/lib/assets/stylesheets/autocomplete.css.scss/0 | {
"file_path": "SquareSquash/web/lib/assets/stylesheets/autocomplete.css.scss",
"repo_id": "SquareSquash",
"token_count": 149
} | 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/lib/file_mutex.rb/0 | {
"file_path": "SquareSquash/web/lib/file_mutex.rb",
"repo_id": "SquareSquash",
"token_count": 721
} | 115 |
# 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/workers/comment_notification_mailer.rb/0 | {
"file_path": "SquareSquash/web/lib/workers/comment_notification_mailer.rb",
"repo_id": "SquareSquash",
"token_count": 457
} | 116 |
# 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/additions/ldap_authentication_helpers_spec.rb/0 | {
"file_path": "SquareSquash/web/spec/controllers/additions/ldap_authentication_helpers_spec.rb",
"repo_id": "SquareSquash",
"token_count": 3870
} | 117 |
# 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/spec/controllers/project/memberships_controller_spec.rb/0 | {
"file_path": "SquareSquash/web/spec/controllers/project/memberships_controller_spec.rb",
"repo_id": "SquareSquash",
"token_count": 3794
} | 118 |
# 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/factories/occurrences.rb/0 | {
"file_path": "SquareSquash/web/spec/factories/occurrences.rb",
"repo_id": "SquareSquash",
"token_count": 3941
} | 119 |
# 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/blamer/cache_spec.rb/0 | {
"file_path": "SquareSquash/web/spec/lib/blamer/cache_spec.rb",
"repo_id": "SquareSquash",
"token_count": 2023
} | 120 |
# 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/spec/models/comment_spec.rb/0 | {
"file_path": "SquareSquash/web/spec/models/comment_spec.rb",
"repo_id": "SquareSquash",
"token_count": 2901
} | 121 |
# 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/rails_helper.rb/0 | {
"file_path": "SquareSquash/web/spec/rails_helper.rb",
"repo_id": "SquareSquash",
"token_count": 2105
} | 122 |
/* Flot plugin for plotting error bars.
Copyright (c) 2007-2012 IOLA and Ole Laursen.
Licensed under the MIT license.
Error bars are used to show standard deviation and other statistical
properties in a plot.
* Created by Rui Pereira - rui (dot) pereira (at) gmail (dot) com
This plugin allows you to plot error-ba... | SquareSquash/web/vendor/assets/javascripts/flot/errorbars.js/0 | {
"file_path": "SquareSquash/web/vendor/assets/javascripts/flot/errorbars.js",
"repo_id": "SquareSquash",
"token_count": 6663
} | 123 |
/**
* 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/shAutoloader.js/0 | {
"file_path": "SquareSquash/web/vendor/assets/javascripts/sh/shAutoloader.js",
"repo_id": "SquareSquash",
"token_count": 1139
} | 124 |
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (Wed, 12 Feb 2014 03:42:24 GMT)
*
* @copyright
* Copyright (C) 2004-2013 Alex Gorbat... | SquareSquash/web/vendor/assets/javascripts/sh/shBrushJavaFX.js/0 | {
"file_path": "SquareSquash/web/vendor/assets/javascripts/sh/shBrushJavaFX.js",
"repo_id": "SquareSquash",
"token_count": 830
} | 125 |
/**
* 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/stylesheets/sh/shThemeEclipse.css/0 | {
"file_path": "SquareSquash/web/vendor/assets/stylesheets/sh/shThemeEclipse.css",
"repo_id": "SquareSquash",
"token_count": 1030
} | 126 |
# Bitwarden Licensed Code
All source code under this directory is licensed under the [Bitwarden License Agreement](https://github.com/bitwarden/web/blob/master/LICENSE_BITWARDEN.txt).
| bitwarden/web/bitwarden_license/README.md/0 | {
"file_path": "bitwarden/web/bitwarden_license/README.md",
"repo_id": "bitwarden",
"token_count": 53
} | 127 |
import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { AuthGuard } from "jslib-angular/guards/auth.guard";
import { Permissions } from "jslib-common/enums/permissions";
import { PermissionsGuard } from "src/app/organizations/guards/permissions.guard";
import { Organ... | bitwarden/web/bitwarden_license/src/app/organizations/organizations-routing.module.ts/0 | {
"file_path": "bitwarden/web/bitwarden_license/src/app/organizations/organizations-routing.module.ts",
"repo_id": "bitwarden",
"token_count": 557
} | 128 |
import { Component, Input } from "@angular/core";
import { ProviderUserStatusType } from "jslib-common/enums/providerUserStatusType";
import { ProviderUserBulkConfirmRequest } from "jslib-common/models/request/provider/providerUserBulkConfirmRequest";
import { ProviderUserBulkRequest } from "jslib-common/models/reques... | bitwarden/web/bitwarden_license/src/app/providers/manage/bulk/bulk-confirm.component.ts/0 | {
"file_path": "bitwarden/web/bitwarden_license/src/app/providers/manage/bulk/bulk-confirm.component.ts",
"repo_id": "bitwarden",
"token_count": 446
} | 129 |
import { Component } from "@angular/core";
import { ActivatedRoute } 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 { PlatformUti... | bitwarden/web/bitwarden_license/src/app/providers/settings/account.component.ts/0 | {
"file_path": "bitwarden/web/bitwarden_license/src/app/providers/settings/account.component.ts",
"repo_id": "bitwarden",
"token_count": 768
} | 130 |
#!/bin/bash
# Setup
GROUPNAME="bitwarden"
USERNAME="bitwarden"
LUID=${LOCAL_UID:-0}
LGID=${LOCAL_GID:-0}
# Step down from host root to well-known nobody/nogroup user
if [ $LUID -eq 0 ]
then
LUID=65534
fi
if [ $LGID -eq 0 ]
then
LGID=65534
fi
# Create user and group
groupadd -o -g $LGID $GROUPNAME >/dev/n... | bitwarden/web/entrypoint.sh/0 | {
"file_path": "bitwarden/web/entrypoint.sh",
"repo_id": "bitwarden",
"token_count": 400
} | 131 |
import { Component } from "@angular/core";
import { Router } from "@angular/router";
import { HintComponent as BaseHintComponent } from "jslib-angular/components/hint.component";
import { ApiService } from "jslib-common/abstractions/api.service";
import { I18nService } from "jslib-common/abstractions/i18n.service";
im... | bitwarden/web/src/app/accounts/hint.component.ts/0 | {
"file_path": "bitwarden/web/src/app/accounts/hint.component.ts",
"repo_id": "bitwarden",
"token_count": 285
} | 132 |
import { Component } from "@angular/core";
import { ActivatedRoute, Router } from "@angular/router";
import { first } from "rxjs/operators";
import { SsoComponent as BaseSsoComponent } from "jslib-angular/components/sso.component";
import { ApiService } from "jslib-common/abstractions/api.service";
import { AuthServic... | bitwarden/web/src/app/accounts/sso.component.ts/0 | {
"file_path": "bitwarden/web/src/app/accounts/sso.component.ts",
"repo_id": "bitwarden",
"token_count": 893
} | 133 |
import { Directive, OnInit } from "@angular/core";
import { ActivatedRoute, Router } from "@angular/router";
import { first } from "rxjs/operators";
import { I18nService } from "jslib-common/abstractions/i18n.service";
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
import { Sta... | bitwarden/web/src/app/common/base.accept.component.ts/0 | {
"file_path": "bitwarden/web/src/app/common/base.accept.component.ts",
"repo_id": "bitwarden",
"token_count": 786
} | 134 |
import { Component, OnDestroy, OnInit } from "@angular/core";
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
@Component({
selector: "app-frontend-layout",
templateUrl: "frontend-layout.component.html",
})
export class FrontendLayoutComponent implements OnInit, OnDestroy {
... | bitwarden/web/src/app/layouts/frontend-layout.component.ts/0 | {
"file_path": "bitwarden/web/src/app/layouts/frontend-layout.component.ts",
"repo_id": "bitwarden",
"token_count": 218
} | 135 |
<ng-container *ngIf="show">
<div class="filter-heading">
<button
(click)="toggleCollapse(collectionsGrouping)"
[attr.aria-expanded]="!isCollapsed(collectionsGrouping)"
aria-controls="collection-filters"
title="{{ 'toggleCollapse' | i18n }}"
class="toggle-button"
>
<i
... | bitwarden/web/src/app/modules/vault-filter/components/collection-filter.component.html/0 | {
"file_path": "bitwarden/web/src/app/modules/vault-filter/components/collection-filter.component.html",
"repo_id": "bitwarden",
"token_count": 1258
} | 136 |
import { Component, EventEmitter, Output } from "@angular/core";
import { VaultFilterComponent as BaseVaultFilterComponent } from "jslib-angular/modules/vault-filter/vault-filter.component";
import { VaultFilterService } from "./vault-filter.service";
@Component({
selector: "app-vault-filter",
templateUrl: "vaul... | bitwarden/web/src/app/modules/vault-filter/vault-filter.component.ts/0 | {
"file_path": "bitwarden/web/src/app/modules/vault-filter/vault-filter.component.ts",
"repo_id": "bitwarden",
"token_count": 247
} | 137 |
import { Injectable } from "@angular/core";
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from "@angular/router";
import { I18nService } from "jslib-common/abstractions/i18n.service";
import { OrganizationService } from "jslib-common/abstractions/organization.service";
import { PlatformUt... | bitwarden/web/src/app/organizations/guards/permissions.guard.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/guards/permissions.guard.ts",
"repo_id": "bitwarden",
"token_count": 785
} | 138 |
import { Component, OnInit } from "@angular/core";
import { ActivatedRoute, Router } from "@angular/router";
import { UserNamePipe } from "jslib-angular/pipes/user-name.pipe";
import { ApiService } from "jslib-common/abstractions/api.service";
import { ExportService } from "jslib-common/abstractions/export.service";
i... | bitwarden/web/src/app/organizations/manage/events.component.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/manage/events.component.ts",
"repo_id": "bitwarden",
"token_count": 1470
} | 139 |
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
import { ApiService } from "jslib-common/abstractions/api.service";
import { CollectionService } from "jslib-common/abstractions/collection.service";
import { I18nService } from "jslib-common/abstractions/i18n.service";
import { LogService... | bitwarden/web/src/app/organizations/manage/user-add-edit.component.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/manage/user-add-edit.component.ts",
"repo_id": "bitwarden",
"token_count": 3146
} | 140 |
import { Component } from "@angular/core";
import { I18nService } from "jslib-common/abstractions/i18n.service";
import { PolicyType } from "jslib-common/enums/policyType";
import { Organization } from "jslib-common/models/domain/organization";
import { PolicyRequest } from "jslib-common/models/request/policyRequest";... | bitwarden/web/src/app/organizations/policies/require-sso.component.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/policies/require-sso.component.ts",
"repo_id": "bitwarden",
"token_count": 395
} | 141 |
<div class="card card-org-plans">
<div class="card-body">
<button type="button" class="close" appA11yTitle="{{ 'cancel' | i18n }}" (click)="cancel()">
<span aria-hidden="true">×</span>
</button>
<h2 class="card-body-header">{{ "changeBillingPlan" | i18n }}</h2>
<p class="mb-0">{{ "changeBi... | bitwarden/web/src/app/organizations/settings/change-plan.component.html/0 | {
"file_path": "bitwarden/web/src/app/organizations/settings/change-plan.component.html",
"repo_id": "bitwarden",
"token_count": 276
} | 142 |
import { Component } from "@angular/core";
import { BaseAcceptComponent } from "src/app/common/base.accept.component";
@Component({
selector: "app-accept-family-sponsorship",
templateUrl: "accept-family-sponsorship.component.html",
})
export class AcceptFamilySponsorshipComponent extends BaseAcceptComponent {
f... | bitwarden/web/src/app/organizations/sponsorships/accept-family-sponsorship.component.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/sponsorships/accept-family-sponsorship.component.ts",
"repo_id": "bitwarden",
"token_count": 283
} | 143 |
import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { AuthGuard } from "jslib-angular/guards/auth.guard";
import { LockGuard } from "jslib-angular/guards/lock.guard";
import { UnauthGuard } from "jslib-angular/guards/unauth.guard";
import { AcceptEmergencyComponent... | bitwarden/web/src/app/oss-routing.module.ts/0 | {
"file_path": "bitwarden/web/src/app/oss-routing.module.ts",
"repo_id": "bitwarden",
"token_count": 3752
} | 144 |
import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { AuthGuard } from "jslib-angular/guards/auth.guard";
import { BreachReportComponent } from "./breach-report.component";
import { ExposedPasswordsReportComponent } from "./exposed-passwords-report.component";
impo... | bitwarden/web/src/app/reports/reports-routing.module.ts/0 | {
"file_path": "bitwarden/web/src/app/reports/reports-routing.module.ts",
"repo_id": "bitwarden",
"token_count": 775
} | 145 |
import { Component, NgZone, ViewChild, ViewContainerRef } from "@angular/core";
import { SendComponent as BaseSendComponent } from "jslib-angular/components/send/send.component";
import { ModalService } from "jslib-angular/services/modal.service";
import { BroadcasterService } from "jslib-common/abstractions/broadcast... | bitwarden/web/src/app/send/send.component.ts/0 | {
"file_path": "bitwarden/web/src/app/send/send.component.ts",
"repo_id": "bitwarden",
"token_count": 1132
} | 146 |
import { Component } from "@angular/core";
import { LogService } from "jslib-common/abstractions/log.service";
import { UserVerificationService } from "jslib-common/abstractions/userVerification.service";
import { SecretVerificationRequest } from "jslib-common/models/request/secretVerificationRequest";
import { ApiKey... | bitwarden/web/src/app/settings/api-key.component.ts/0 | {
"file_path": "bitwarden/web/src/app/settings/api-key.component.ts",
"repo_id": "bitwarden",
"token_count": 489
} | 147 |
import { Component, OnInit } from "@angular/core";
import { ApiService } from "jslib-common/abstractions/api.service";
import { I18nService } from "jslib-common/abstractions/i18n.service";
import { LogService } from "jslib-common/abstractions/log.service";
import { PlatformUtilsService } from "jslib-common/abstraction... | bitwarden/web/src/app/settings/domain-rules.component.ts/0 | {
"file_path": "bitwarden/web/src/app/settings/domain-rules.component.ts",
"repo_id": "bitwarden",
"token_count": 967
} | 148 |
import { Component, OnInit } 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 { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
... | bitwarden/web/src/app/settings/payment-method.component.ts/0 | {
"file_path": "bitwarden/web/src/app/settings/payment-method.component.ts",
"repo_id": "bitwarden",
"token_count": 1036
} | 149 |
<div class="container page-content">
<div class="row">
<div class="col-3">
<div class="card">
<div class="card-header">{{ "accountSettings" | i18n }}</div>
<div class="list-group list-group-flush">
<a routerLink="account" class="list-group-item" routerLinkActive="active">
... | bitwarden/web/src/app/settings/settings.component.html/0 | {
"file_path": "bitwarden/web/src/app/settings/settings.component.html",
"repo_id": "bitwarden",
"token_count": 779
} | 150 |
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="2faEmailTitle">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title" id="2faEmailTitle">
{{ "twoStepLogin" | i18n }}
<small>{{ "emailTitle... | bitwarden/web/src/app/settings/two-factor-email.component.html/0 | {
"file_path": "bitwarden/web/src/app/settings/two-factor-email.component.html",
"repo_id": "bitwarden",
"token_count": 2158
} | 151 |
<div class="tabbed-header d-flex">
<h1>
{{ "billingHistory" | i18n }}
</h1>
<button
bitButton
buttonType="secondary"
(click)="load()"
class="tw-ml-auto"
*ngIf="firstLoaded"
[disabled]="loading"
>
<i class="bwi bwi-refresh bwi-fw" [ngClass]="{ 'bwi-spin': loading }" aria-hidden="t... | bitwarden/web/src/app/settings/user-billing-history.component.html/0 | {
"file_path": "bitwarden/web/src/app/settings/user-billing-history.component.html",
"repo_id": "bitwarden",
"token_count": 1735
} | 152 |
<div class="container page-content">
<div class="row">
<div class="col-3">
<div class="card mb-4">
<div class="card-header">{{ "tools" | i18n }}</div>
<div class="list-group list-group-flush">
<a routerLink="generator" class="list-group-item" routerLinkActive="active">
... | bitwarden/web/src/app/tools/tools.component.html/0 | {
"file_path": "bitwarden/web/src/app/tools/tools.component.html",
"repo_id": "bitwarden",
"token_count": 369
} | 153 |
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="moveSelectedToOrgTitle">
<div class="modal-dialog modal-dialog-scrollable" role="document">
<form class="modal-content" #form (ngSubmit)="submit()" [appApiAction]="formPromise">
<div class="modal-header">
<h2 class="modal-title... | bitwarden/web/src/app/vault/bulk-share.component.html/0 | {
"file_path": "bitwarden/web/src/app/vault/bulk-share.component.html",
"repo_id": "bitwarden",
"token_count": 1659
} | 154 |
import { b64Decode, getQsParam } from "./common";
declare let hcaptcha: any;
if (window.location.pathname.includes("mobile")) {
require("./captcha-mobile.scss");
} else {
require("./captcha.scss");
}
document.addEventListener("DOMContentLoaded", () => {
init();
});
(window as any).captchaSuccess = captchaSucc... | bitwarden/web/src/connectors/captcha.ts/0 | {
"file_path": "bitwarden/web/src/connectors/captcha.ts",
"repo_id": "bitwarden",
"token_count": 1190
} | 155 |
declare function escape(s: string): string;
declare function unescape(s: string): string;
| bitwarden/web/src/global.d.ts/0 | {
"file_path": "bitwarden/web/src/global.d.ts",
"repo_id": "bitwarden",
"token_count": 25
} | 156 |
{
"pageTitle": {
"message": "Cofre Web do(a) $APP_NAME$",
"description": "The title of the website in the browser window.",
"placeholders": {
"app_name": {
"content": "$1",
"example": "Bitwarden"
}
}
},
"whatTypeOfItem": {
"message": "Que tipo de item é este?"
},
... | bitwarden/web/src/locales/pt_BR/messages.json/0 | {
"file_path": "bitwarden/web/src/locales/pt_BR/messages.json",
"repo_id": "bitwarden",
"token_count": 62040
} | 157 |
import { ThemeType } from "jslib-common/enums/themeType";
import { GlobalState as BaseGlobalState } from "jslib-common/models/domain/globalState";
export class GlobalState extends BaseGlobalState {
theme?: ThemeType = ThemeType.Light;
rememberEmail = true;
}
| bitwarden/web/src/models/globalState.ts/0 | {
"file_path": "bitwarden/web/src/models/globalState.ts",
"repo_id": "bitwarden",
"token_count": 77
} | 158 |
$dark-icon-themes: "theme_dark";
$primary: #175ddc;
$primary-accent: #1252a3;
$secondary: #ced4da;
$secondary-alt: #1a3b66;
$success: #00a65a;
$info: #555555;
$warning: #bf7e16;
$danger: #dd4b39;
$white: #ffffff;
// Bootstrap Variable Overrides
$theme-colors: (
"primary-accent": $primary-accent,
"secondary-alt":... | bitwarden/web/src/scss/variables.scss/0 | {
"file_path": "bitwarden/web/src/scss/variables.scss",
"repo_id": "bitwarden",
"token_count": 4479
} | 159 |
package com.aitongyi.web.back.conf;
import com.aitongyi.web.cache.conf.CacheConfig;
import com.aitongyi.web.dao.conf.DatabaseConfig;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
import javax.servlet.Filter;
/**
* 项目启动基类
* -- 整个项目的入口
*/
public class WebApplic... | chwshuang/web/back/src/main/java/com/aitongyi/web/back/conf/WebApplicationInitializer.java/0 | {
"file_path": "chwshuang/web/back/src/main/java/com/aitongyi/web/back/conf/WebApplicationInitializer.java",
"repo_id": "chwshuang",
"token_count": 320
} | 160 |
<?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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.a... | chwshuang/web/pom.xml/0 | {
"file_path": "chwshuang/web/pom.xml",
"repo_id": "chwshuang",
"token_count": 5453
} | 161 |
Result of running `go test speed_test.go -test.bench=.* -test.benchmem=true` on my 2.3 GHz Macbook Pro.
2014/08/30 commit 056ab3d12ad9e8120f7818454ee5c27c478e2b3d (minor tweaks)
BenchmarkGocraftWeb_Simple 2000000 788 ns/op 347 B/op 7 allocs/op
BenchmarkGocraftWeb_Route15 1000000 2329 ns/op ... | gocraft/web/BENCHMARK_RESULTS/0 | {
"file_path": "gocraft/web/BENCHMARK_RESULTS",
"repo_id": "gocraft",
"token_count": 3198
} | 162 |
package web
import (
"fmt"
"net/http"
"reflect"
"runtime"
)
type middlewareClosure struct {
appResponseWriter
Request
Routers []*Router
Contexts []reflect.Value
currentMiddlewareIndex int
currentRouterIndex int
currentMiddlewareLen int
RootRouter *Router
Nex... | gocraft/web/router_serve.go/0 | {
"file_path": "gocraft/web/router_serve.go",
"repo_id": "gocraft",
"token_count": 3551
} | 163 |
---
layout: layout-404
permalink: 404.html
---
| modernweb-dev/web/docs/404.md/0 | {
"file_path": "modernweb-dev/web/docs/404.md",
"repo_id": "modernweb-dev",
"token_count": 17
} | 164 |
{
"name": "Modern Web",
"short_name": "@web",
"theme_color": "#e63946",
"background_color": "#1d3557",
"display": "standalone",
"orientation": "portrait",
"Scope": "/",
"start_url": "/",
"icons": [
{
"src": "../_merged_assets/_static/icons/android-chrome-192x192.png",
"sizes": "128x128... | modernweb-dev/web/docs/_assets/webmanifest.json/0 | {
"file_path": "modernweb-dev/web/docs/_assets/webmanifest.json",
"repo_id": "modernweb-dev",
"token_count": 323
} | 165 |
# Building >> Overview ||10
Building for production is important to ensure that the smallest possible payload gets shipped to your users.
| modernweb-dev/web/docs/docs/building/overview.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/building/overview.md",
"repo_id": "modernweb-dev",
"token_count": 27
} | 166 |
# Dev Server >> Plugins >> Overview ||1
Web Dev Server comes with a few plugins out of the box.
See
- [esbuild](./esbuild.md)
- [rollup](./rollup.md)
- [import-maps](./import-maps.md)
- [legacy](./legacy.md)
- [hmr](./hmr.md)
If you have more specific needs it's best to [write your own plugin](../writing-plugins/ov... | modernweb-dev/web/docs/docs/dev-server/plugins/overview.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/dev-server/plugins/overview.md",
"repo_id": "modernweb-dev",
"token_count": 120
} | 167 |
# Test Runner >> Browser Launchers ||5
Browser launchers boot up and control a browser instance to run your tests. By default, tests are run with the locally installed instance of Chrome, controlled via `puppeteer-core`.
| modernweb-dev/web/docs/docs/test-runner/browser-launchers/index.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/test-runner/browser-launchers/index.md",
"repo_id": "modernweb-dev",
"token_count": 50
} | 168 |
# Test Runner >> Reporters >> Overview ||10
You can customize the test reporters using the `reporters` option.
```js
// import the browser launcher you want to use
import { defaultReporter } from '@web/test-runner';
import { myReporter } from 'my-reporter';
export default {
reporters: [
// use the default repo... | modernweb-dev/web/docs/docs/test-runner/reporters/overview.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/test-runner/reporters/overview.md",
"repo_id": "modernweb-dev",
"token_count": 146
} | 169 |
# Dev Server ||30
| modernweb-dev/web/docs/guides/dev-server/index.md/0 | {
"file_path": "modernweb-dev/web/docs/guides/dev-server/index.md",
"repo_id": "modernweb-dev",
"token_count": 6
} | 170 |
# Test Runner >> Dev Server ||60
Web Test Runner is based on Web Dev Server and shares the same configuration.
You can view the dev server documentation to learn how to set this up.
**Guides:**
- [Using plugins](../dev-server/using-plugins.md)
- [Typescript and JSX](../dev-server/typescript-and-jsx.md)
- [Browser s... | modernweb-dev/web/docs/guides/test-runner/dev-server.md/0 | {
"file_path": "modernweb-dev/web/docs/guides/test-runner/dev-server.md",
"repo_id": "modernweb-dev",
"token_count": 204
} | 171 |
import { expect } from '../../../../../node_modules/@esm-bundle/chai/esm/chai.js';
afterEach(() => {
throw new Error('error thrown in afterEach hook');
});
it('true is true', () => {
expect(true).to.equal(true);
});
it('true is really true', () => {
expect(true).to.equal(true);
});
| modernweb-dev/web/integration/test-runner/tests/test-failure/browser-tests/fail-after-each.test.js/0 | {
"file_path": "modernweb-dev/web/integration/test-runner/tests/test-failure/browser-tests/fail-after-each.test.js",
"repo_id": "modernweb-dev",
"token_count": 106
} | 172 |
# @web/config-loader
## 0.3.1
### Patch Changes
- 5b6e1bcd: Drop support for older node runtimes (12 and earlier)
## 0.3.0
### Minor Changes
- c185cbaa: Set minimum node version to 18
## 0.2.2
### Patch Changes
- 640ba85f: added types for main entry point
## 0.2.1
### Patch Changes
- c26d3730: Update TypeSc... | modernweb-dev/web/packages/config-loader/CHANGELOG.md/0 | {
"file_path": "modernweb-dev/web/packages/config-loader/CHANGELOG.md",
"repo_id": "modernweb-dev",
"token_count": 499
} | 173 |
export default { foo: 'bar' };
| modernweb-dev/web/packages/config-loader/test/fixtures/package-cjs/module-in-.js/my-project.config.js/0 | {
"file_path": "modernweb-dev/web/packages/config-loader/test/fixtures/package-cjs/module-in-.js/my-project.config.js",
"repo_id": "modernweb-dev",
"token_count": 10
} | 174 |
console.log('app.js');
| modernweb-dev/web/packages/dev-server-core/demo/basic/app.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/demo/basic/app.js",
"repo_id": "modernweb-dev",
"token_count": 9
} | 175 |
This is a fork of [dom5](https://www.npmjs.com/package/dom5), needed until [issues/3385](https://github.com/Polymer/tools/issues/3385) is resolved.
| modernweb-dev/web/packages/dev-server-core/src/dom5/README.md/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/src/dom5/README.md",
"repo_id": "modernweb-dev",
"token_count": 52
} | 176 |
import { Middleware } from 'koa';
import { Logger } from '../logger/Logger';
import { Plugin } from '../plugins/Plugin';
/**
* Sets up a middleware which allows plugins to resolve the mime type.
*/
export function pluginMimeTypeMiddleware(logger: Logger, plugins: Plugin[]): Middleware {
const mimeTypePlugins = plu... | modernweb-dev/web/packages/dev-server-core/src/middleware/pluginMimeTypeMiddleware.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/src/middleware/pluginMimeTypeMiddleware.ts",
"repo_id": "modernweb-dev",
"token_count": 336
} | 177 |
import { expect } from 'chai';
import { DevServer } from '../../src/server/DevServer.js';
import { createTestServer } from '../helpers.js';
describe('base path middleware', () => {
describe('without a trailing /', () => {
let host: string;
let server: DevServer;
beforeEach(async () => {
({ server,... | modernweb-dev/web/packages/dev-server-core/test/middleware/basePathMiddleware.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/test/middleware/basePathMiddleware.test.ts",
"repo_id": "modernweb-dev",
"token_count": 671
} | 178 |
# Dev server esbuild
Plugin for using [esbuild](https://github.com/evanw/esbuild) in the dev server.
See [our website](https://modern-web.dev/docs/dev-server/plugins/esbuild/) for full documentation.
| modernweb-dev/web/packages/dev-server-esbuild/README.md/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-esbuild/README.md",
"repo_id": "modernweb-dev",
"token_count": 63
} | 179 |
import { parseUserAgent } from './parseUserAgent.js';
import {
TARGET_LATEST_MODERN,
TARGET_LOWEST_ESM_SUPPORT,
Browser,
isLatestModernBrowser,
isLatestSafari,
} from './browser-targets.js';
const cache = new Map<string, undefined | string | string[]>();
function getTargetForUserAgent(target: string, userAg... | modernweb-dev/web/packages/dev-server-esbuild/src/getEsbuildTarget.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-esbuild/src/getEsbuildTarget.ts",
"repo_id": "modernweb-dev",
"token_count": 691
} | 180 |
import { expect } from 'chai';
import { expectIncludes, createTestServer } from '@web/dev-server-core/test-helpers';
import { esbuildPlugin } from '../src/index.js';
describe('esbuildPlugin JSX', function () {
it('transforms .jsx files', async () => {
const { server, host } = await createTestServer({
root... | modernweb-dev/web/packages/dev-server-esbuild/test/jsx.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-esbuild/test/jsx.test.ts",
"repo_id": "modernweb-dev",
"token_count": 996
} | 181 |
export const sharedTemplate = '<p>Shared template</p>';
| modernweb-dev/web/packages/dev-server-hmr/demo/vanilla/sharedTemplate.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-hmr/demo/vanilla/sharedTemplate.js",
"repo_id": "modernweb-dev",
"token_count": 17
} | 182 |
{
"name": "@web/dev-server-import-maps",
"version": "0.2.0",
"publishConfig": {
"access": "public"
},
"description": "Plugin for using import maps in @web/dev-server",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/modernweb-dev/web.git",
"directory": "packages... | modernweb-dev/web/packages/dev-server-import-maps/package.json/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-import-maps/package.json",
"repo_id": "modernweb-dev",
"token_count": 723
} | 183 |
# Dev Server Legacy
Plugin for using the dev server or test runner on legacy browsers, for example on Internet Explorer 11 which does not support modules.
See [our website](https://modern-web.dev/docs/dev-server/plugins/legacy/) for full documentation.
| modernweb-dev/web/packages/dev-server-legacy/README.md/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-legacy/README.md",
"repo_id": "modernweb-dev",
"token_count": 62
} | 184 |
export const modernUserAgents = {
'Chrome 78':
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36',
'Chrome 64':
'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 ',
'Fi... | modernweb-dev/web/packages/dev-server-legacy/test/userAgents.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-legacy/test/userAgents.ts",
"repo_id": "modernweb-dev",
"token_count": 573
} | 185 |
export { RollupNodeResolveOptions, nodeResolve } from '@rollup/plugin-node-resolve';
export { fromRollup } from './fromRollup.js';
export { rollupAdapter } from './rollupAdapter.js';
export { rollupBundlePlugin } from './rollupBundlePlugin.js';
| modernweb-dev/web/packages/dev-server-rollup/src/index.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/src/index.ts",
"repo_id": "modernweb-dev",
"token_count": 79
} | 186 |
<html>
<body>
<script type="module">
import '#internal-a';
</script>
</body>
</html>
| modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/private-imports/index.html/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/private-imports/index.html",
"repo_id": "modernweb-dev",
"token_count": 48
} | 187 |
import { rollupBundlePlugin } from '../../src/rollupBundlePlugin.js';
import path from 'path';
import { createTestServer, fetchText, expectIncludes } from './test-helpers.js';
describe('rollupBundlePlugin', () => {
it('can bundle a single entrypoint', async () => {
const { server, host } = await createTestServer... | modernweb-dev/web/packages/dev-server-rollup/test/node/rollupBundlePlugin.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/test/node/rollupBundlePlugin.test.ts",
"repo_id": "modernweb-dev",
"token_count": 1935
} | 188 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.