text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
=============
Web Refresher
=============
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4ef545bbf655053c91d43... | OCA/web/web_refresher/README.rst/0 | {
"file_path": "OCA/web/web_refresher/README.rst",
"repo_id": "OCA",
"token_count": 1105
} | 83 |
/** @odoo-module **/
/* Copyright 2022 Tecnativa - Carlos Roca
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
import {Pager} from "@web/core/pager/pager";
import {Refresher} from "./refresher.esm";
Pager.components = Object.assign({}, Pager.components, {
Refresher,
});
| OCA/web/web_refresher/static/src/js/pager.esm.js/0 | {
"file_path": "OCA/web/web_refresher/static/src/js/pager.esm.js",
"repo_id": "OCA",
"token_count": 112
} | 84 |
/** @odoo-module **/
import {ListRenderer} from "@web/views/list/list_renderer";
import {browser} from "@web/core/browser/browser";
import {patch} from "web.utils";
patch(ListRenderer.prototype, "web_remember_tree_column_width.ListRenderer", {
/**
* @override
*/
computeColumnWidthsFromContent() {
... | OCA/web/web_remember_tree_column_width/static/src/js/list_renderer.esm.js/0 | {
"file_path": "OCA/web/web_remember_tree_column_width/static/src/js/list_renderer.esm.js",
"repo_id": "OCA",
"token_count": 1190
} | 85 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_responsive
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-08-12 11:44+0000\n"
"Last-Translator: Pedro Castro Silva <pedrocs@exo.pt>\n"
"Language-Team: n... | OCA/web/web_responsive/i18n/pt.po/0 | {
"file_path": "OCA/web/web_responsive/i18n/pt.po",
"repo_id": "OCA",
"token_count": 1596
} | 86 |
/* Copyright 2021 ITerra - Sergey Shebanin
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
// Shortcut table ui improvement
.o_shortcut_table {
width: 100%;
white-space: nowrap;
max-width: 400px;
td {
padding: 0 20px;
}
}
| OCA/web/web_responsive/static/src/components/hotkey/hotkey.scss/0 | {
"file_path": "OCA/web/web_responsive/static/src/components/hotkey/hotkey.scss",
"repo_id": "OCA",
"token_count": 115
} | 87 |
# Copyright (C) 2023-TODAY Synconics Technologies Pvt. Ltd. (<http://www.synconics.com>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import models
| OCA/web/web_save_discard_button/__init__.py/0 | {
"file_path": "OCA/web/web_save_discard_button/__init__.py",
"repo_id": "OCA",
"token_count": 65
} | 88 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_select_all_companies
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-10-08 23:01+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Lang... | OCA/web/web_select_all_companies/i18n/es.po/0 | {
"file_path": "OCA/web/web_select_all_companies/i18n/es.po",
"repo_id": "OCA",
"token_count": 394
} | 89 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_send_message_popup
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-03-05 14:40+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Languag... | OCA/web/web_send_message_popup/i18n/it.po/0 | {
"file_path": "OCA/web/web_send_message_popup/i18n/it.po",
"repo_id": "OCA",
"token_count": 303
} | 90 |
============
Web timeline
============
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:83336483b07a21cb0d427e49... | OCA/web/web_timeline/README.rst/0 | {
"file_path": "OCA/web/web_timeline/README.rst",
"repo_id": "OCA",
"token_count": 6488
} | 91 |
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import ir_ui_view
| OCA/web/web_timeline/models/__init__.py/0 | {
"file_path": "OCA/web/web_timeline/models/__init__.py",
"repo_id": "OCA",
"token_count": 55
} | 92 |
$vis-weekend-background-color: #dcdcdc;
$vis-item-content-padding: 0 3px !important;
.oe_timeline_view .vis-timeline {
.vis-grid {
&.vis-saturday,
&.vis-sunday {
background: $vis-weekend-background-color;
}
}
.vis-item {
&.vis-box:hover {
cursor: poi... | OCA/web/web_timeline/static/src/scss/web_timeline.scss/0 | {
"file_path": "OCA/web/web_timeline/static/src/scss/web_timeline.scss",
"repo_id": "OCA",
"token_count": 354
} | 93 |
===========================
Tree View Duplicate Records
===========================
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! s... | OCA/web/web_tree_duplicate/README.rst/0 | {
"file_path": "OCA/web/web_tree_duplicate/README.rst",
"repo_id": "OCA",
"token_count": 1580
} | 94 |
To insert a Bokeh chart in a view proceed as follows:
Using a Char field
~~~~~~~~~~~~~~~~~~
#. Declare a text computed field like this::
bokeh_chart = fields.Text(
string='Bokeh Chart',
compute='_compute_bokeh_chart',
)
#. At the top of the module add the following imports::
from bokeh.... | OCA/web/web_widget_bokeh_chart/readme/USAGE.rst/0 | {
"file_path": "OCA/web/web_widget_bokeh_chart/readme/USAGE.rst",
"repo_id": "OCA",
"token_count": 806
} | 95 |
* `Tecnativa <https://www.tecnativa.com>`_
* David Vidal
* Jairo Llopis
* Carlos Roca
* Darshan Patel <darshan.barcelona@gmail.com>
* Helly kapatel <helly.kapatel@initos.com>
* Carlos Lopez <celm1990@gmail.com>
| OCA/web/web_widget_domain_editor_dialog/readme/CONTRIBUTORS.rst/0 | {
"file_path": "OCA/web/web_widget_domain_editor_dialog/readme/CONTRIBUTORS.rst",
"repo_id": "OCA",
"token_count": 93
} | 96 |
By default, the module works with all `major browsers
<https://github.com/jhuckaby/webcamjs/blob/master/DOCS.md#browser-support>`_.
An important note for **Chrome 47+** users - this module only works with websites delivered over SSL / HTTPS.
Visit this for `more info
<https://github.com/jhuckaby/webcamjs/blob/master/D... | OCA/web/web_widget_image_webcam/readme/CONFIGURE.rst/0 | {
"file_path": "OCA/web/web_widget_image_webcam/readme/CONFIGURE.rst",
"repo_id": "OCA",
"token_count": 216
} | 97 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_mpld3_chart
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"C... | OCA/web/web_widget_mpld3_chart/i18n/web_widget_mpld3_chart.pot/0 | {
"file_path": "OCA/web/web_widget_mpld3_chart/i18n/web_widget_mpld3_chart.pot",
"repo_id": "OCA",
"token_count": 221
} | 98 |
# Copyright 2019 GRAP - Quentin DUPONT
# Copyright 2020 Tecnativa - Alexandre Díaz
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{
"name": "Web Widget Numeric Step",
"category": "web",
"version": "16.0.1.1.3",
"author": "GRAP, Tecnativa, " "Odoo Community Association (OCA)",
"... | OCA/web/web_widget_numeric_step/__manifest__.py/0 | {
"file_path": "OCA/web/web_widget_numeric_step/__manifest__.py",
"repo_id": "OCA",
"token_count": 274
} | 99 |
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2019 GRAP - Quentin DUPONT
Copyright 2020 Tecnativa - Alexandre Díaz
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<template>
<t t-name="web_widget_numeric_step" owl="1">
<div class="d-flex widget_numeric_step">
<div... | OCA/web/web_widget_numeric_step/static/src/numeric_step.xml/0 | {
"file_path": "OCA/web/web_widget_numeric_step/static/src/numeric_step.xml",
"repo_id": "OCA",
"token_count": 1032
} | 100 |
This addon introduces a new widget.
When added to a field in a tree view, the field appears as a button which opens the record in a new tab.
When clicking on the line (but not on the button), the record is opened in the same window (as in native Odoo).
| OCA/web/web_widget_open_tab/readme/DESCRIPTION.rst/0 | {
"file_path": "OCA/web/web_widget_open_tab/readme/DESCRIPTION.rst",
"repo_id": "OCA",
"token_count": 62
} | 101 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_x2many_2d_matrix
#
# Translators:
# Rudolf Schnapka <rs@techno-flex.de>, 2016
msgid ""
msgstr ""
"Project-Id-Version: web (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-01-10 07:31+0000\n"
"PO-Revis... | OCA/web/web_widget_x2many_2d_matrix/i18n/de.po/0 | {
"file_path": "OCA/web/web_widget_x2many_2d_matrix/i18n/de.po",
"repo_id": "OCA",
"token_count": 508
} | 102 |
12.0.1.0.1 (2018-12-07)
~~~~~~~~~~~~~~~~~~~~~~~
* [FIX] Cells are unable to render property.
(`#1126 <https://github.com/OCA/web/issues/1126>`_)
12.0.1.0.0 (2018-11-20)
~~~~~~~~~~~~~~~~~~~~~~~
* [12.0][MIG] web_widget_x2many_2d_matrix
(`#1101 <https://github.com/OCA/web/issues/1101>`_)
| OCA/web/web_widget_x2many_2d_matrix/readme/HISTORY.rst/0 | {
"file_path": "OCA/web/web_widget_x2many_2d_matrix/readme/HISTORY.rst",
"repo_id": "OCA",
"token_count": 136
} | 103 |
@import "vars";
nav {
font-size: $nav-font-size;
z-index: 99;
color: white;
&#expanded-nav {
display: none;
&.shown { display: block; }
&>ul { display: block; }
}
a { text-decoration: none; }
a, i { color: white; }
&>ul {
width: 100%;
display: -webkit-box;
display: -moz-box... | SquareSquash/web/app/assets/stylesheets/_navbar.scss/0 | {
"file_path": "SquareSquash/web/app/assets/stylesheets/_navbar.scss",
"repo_id": "SquareSquash",
"token_count": 2065
} | 104 |
# 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/account/bugs_controller.rb/0 | {
"file_path": "SquareSquash/web/app/controllers/account/bugs_controller.rb",
"repo_id": "SquareSquash",
"token_count": 1273
} | 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/events_controller.rb/0 | {
"file_path": "SquareSquash/web/app/controllers/events_controller.rb",
"repo_id": "SquareSquash",
"token_count": 793
} | 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/mailers/notification_mailer.rb/0 | {
"file_path": "SquareSquash/web/app/mailers/notification_mailer.rb",
"repo_id": "SquareSquash",
"token_count": 4231
} | 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/observers/bug_observer.rb/0 | {
"file_path": "SquareSquash/web/app/models/observers/bug_observer.rb",
"repo_id": "SquareSquash",
"token_count": 1840
} | 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/views/additions/accordion.rb/0 | {
"file_path": "SquareSquash/web/app/views/additions/accordion.rb",
"repo_id": "SquareSquash",
"token_count": 673
} | 109 |
An exception on <%= @bug.environment.project.name %> has reopened this bug,
which was previously marked as fixed and deployed:
<%= project_environment_bug_url @bug.environment.project, @bug.environment, @bug %>
Project: <%= @bug.environment.project.name %>
Environment: <%= @bug.environment.name %>
Revision: ... | SquareSquash/web/app/views/notification_mailer/reopened.text.erb/0 | {
"file_path": "SquareSquash/web/app/views/notification_mailer/reopened.text.erb",
"repo_id": "SquareSquash",
"token_count": 275
} | 110 |
#!/usr/bin/env ruby
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
load Gem.bin_path('bundler', 'bundle')
| SquareSquash/web/bin/bundle/0 | {
"file_path": "SquareSquash/web/bin/bundle",
"repo_id": "SquareSquash",
"token_count": 57
} | 111 |
---
disabled: true
authentication:
strategy: token
token: YOUR_AUTH_TOKEN
api_url: "https://events.pagerduty.com/generic/2010-04-15/create_event.json"
| SquareSquash/web/config/environments/common/pagerduty.yml/0 | {
"file_path": "SquareSquash/web/config/environments/common/pagerduty.yml",
"repo_id": "SquareSquash",
"token_count": 56
} | 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/initializers/active_record_observer_hooks.rb/0 | {
"file_path": "SquareSquash/web/config/initializers/active_record_observer_hooks.rb",
"repo_id": "SquareSquash",
"token_count": 1091
} | 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/config/initializers/secret_token.rb/0 | {
"file_path": "SquareSquash/web/config/initializers/secret_token.rb",
"repo_id": "SquareSquash",
"token_count": 313
} | 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/db/migrate/20130215185809_fix_condition_on_rule_occurrences_set_latest.rb/0 | {
"file_path": "SquareSquash/web/db/migrate/20130215185809_fix_condition_on_rule_occurrences_set_latest.rb",
"repo_id": "SquareSquash",
"token_count": 532
} | 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/assets/javascripts/member_panel.js.coffee/0 | {
"file_path": "SquareSquash/web/lib/assets/javascripts/member_panel.js.coffee",
"repo_id": "SquareSquash",
"token_count": 2626
} | 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/lib/background_runner/sidekiq.rb/0 | {
"file_path": "SquareSquash/web/lib/background_runner/sidekiq.rb",
"repo_id": "SquareSquash",
"token_count": 915
} | 117 |
# 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/pager_duty_notifier.rb/0 | {
"file_path": "SquareSquash/web/lib/workers/pager_duty_notifier.rb",
"repo_id": "SquareSquash",
"token_count": 1191
} | 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/script/mysql_message_templates.rb/0 | {
"file_path": "SquareSquash/web/script/mysql_message_templates.rb",
"repo_id": "SquareSquash",
"token_count": 833
} | 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/controllers/events_controller_spec.rb/0 | {
"file_path": "SquareSquash/web/spec/controllers/events_controller_spec.rb",
"repo_id": "SquareSquash",
"token_count": 1772
} | 120 |
# 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/service/pager_duty_spec.rb/0 | {
"file_path": "SquareSquash/web/spec/lib/service/pager_duty_spec.rb",
"repo_id": "SquareSquash",
"token_count": 1420
} | 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/models/occurrence_spec.rb/0 | {
"file_path": "SquareSquash/web/spec/models/occurrence_spec.rb",
"repo_id": "SquareSquash",
"token_count": 42539
} | 122 |
/* Flot plugin for stacking data sets rather than overlyaing them.
Copyright (c) 2007-2012 IOLA and Ole Laursen.
Licensed under the MIT license.
The plugin assumes the data is sorted on x (or y if stacking horizontally).
For line charts, it is assumed that if a line has an undefined gap (from a
null point), then the ... | SquareSquash/web/vendor/assets/javascripts/flot/stack.js/0 | {
"file_path": "SquareSquash/web/vendor/assets/javascripts/flot/stack.js",
"repo_id": "SquareSquash",
"token_count": 3946
} | 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/shBrushDiff.js/0 | {
"file_path": "SquareSquash/web/vendor/assets/javascripts/sh/shBrushDiff.js",
"repo_id": "SquareSquash",
"token_count": 467
} | 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/shBrushScala.js/0 | {
"file_path": "SquareSquash/web/vendor/assets/javascripts/sh/shBrushScala.js",
"repo_id": "SquareSquash",
"token_count": 711
} | 125 |
# How to Contribute
Contributions of all kinds are welcome!
Please visit our [Community Forums](https://community.bitwarden.com/) for general community discussion and the development roadmap.
Here is how you can get involved:
- **Request a new feature:** Go to the [Feature Requests category](https://community.bitwa... | bitwarden/web/CONTRIBUTING.md/0 | {
"file_path": "bitwarden/web/CONTRIBUTING.md",
"repo_id": "bitwarden",
"token_count": 636
} | 126 |
import { Component, Input } from "@angular/core";
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
/** For use in the SSO Config Form only - will be deprecated by the Component Library */
@Component({
selector: "app-input-text-readonly",
templateUrl: "input-text-readonly.com... | bitwarden/web/bitwarden_license/src/app/organizations/components/input-text-readonly.component.ts/0 | {
"file_path": "bitwarden/web/bitwarden_license/src/app/organizations/components/input-text-readonly.component.ts",
"repo_id": "bitwarden",
"token_count": 226
} | 127 |
import { Component, OnInit, ViewChild, ViewContainerRef } from "@angular/core";
import { ActivatedRoute } from "@angular/router";
import { first } from "rxjs/operators";
import { ModalService } from "jslib-angular/services/modal.service";
import { ValidationService } from "jslib-angular/services/validation.service";
i... | bitwarden/web/bitwarden_license/src/app/providers/clients/clients.component.ts/0 | {
"file_path": "bitwarden/web/bitwarden_license/src/app/providers/clients/clients.component.ts",
"repo_id": "bitwarden",
"token_count": 2175
} | 128 |
import { Component, EventEmitter, Input, OnInit, 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 } f... | bitwarden/web/bitwarden_license/src/app/providers/manage/user-add-edit.component.ts/0 | {
"file_path": "bitwarden/web/bitwarden_license/src/app/providers/manage/user-add-edit.component.ts",
"repo_id": "bitwarden",
"token_count": 1436
} | 129 |
{
"urls": {},
"stripeKey": "pk_test_KPoCfZXu7mznb9uSCPZ2JpTD",
"braintreeKey": "sandbox_r72q8jq6_9pnxkwm75f87sdc2",
"paypal": {
"businessId": "AD3LAUZSNVPJY",
"buttonAction": "https://www.sandbox.paypal.com/cgi-bin/webscr"
},
"dev": {
"port": 8080,
"allowedHosts": "auto"
}
}
| bitwarden/web/config/base.json/0 | {
"file_path": "bitwarden/web/config/base.json",
"repo_id": "bitwarden",
"token_count": 165
} | 130 |
import { StateService as BaseStateService } from "jslib-common/abstractions/state.service";
import { StorageOptions } from "jslib-common/models/domain/storageOptions";
import { Account } from "src/models/account";
export abstract class StateService extends BaseStateService<Account> {
getRememberEmail: (options?: St... | bitwarden/web/src/abstractions/state.service.ts/0 | {
"file_path": "bitwarden/web/src/abstractions/state.service.ts",
"repo_id": "bitwarden",
"token_count": 119
} | 131 |
<div class="layout" [ngClass]="['layout', layout]">
<!-- TEAMS 1 Header -->
<header
class="header"
*ngIf="
layout === 'default' ||
layout === 'teams' ||
layout === 'teams1' ||
layout === 'teams2' ||
layout === 'enterprise' ||
layout === 'enterprise1' ||
layout === '... | bitwarden/web/src/app/accounts/register.component.html/0 | {
"file_path": "bitwarden/web/src/app/accounts/register.component.html",
"repo_id": "bitwarden",
"token_count": 7991
} | 132 |
<div class="mt-5 d-flex justify-content-center">
<div>
<img class="mb-4 logo logo-themed" alt="Bitwarden" />
<p class="text-center">
<i
class="bwi bwi-spinner bwi-spin bwi-2x text-muted"
title="{{ 'loading' | i18n }}"
aria-hidden="true"
></i>
<span class="sr-only">{{ ... | bitwarden/web/src/app/accounts/verify-email-token.component.html/0 | {
"file_path": "bitwarden/web/src/app/accounts/verify-email-token.component.html",
"repo_id": "bitwarden",
"token_count": 183
} | 133 |
<div class="progress">
<div
class="progress-bar {{ color }}"
role="progressbar"
[ngStyle]="{ width: scoreWidth + '%' }"
attr.aria-valuenow="{{ scoreWidth }}"
aria-valuemin="0"
aria-valuemax="100"
>
<ng-container *ngIf="showText && text">
{{ text }}
</ng-container>
</div>
</di... | bitwarden/web/src/app/components/password-strength.component.html/0 | {
"file_path": "bitwarden/web/src/app/components/password-strength.component.html",
"repo_id": "bitwarden",
"token_count": 146
} | 134 |
import { ScrollingModule } from "@angular/cdk/scrolling";
import { NgModule } from "@angular/core";
import { SharedModule } from "../../shared.module";
import { EntityUsersComponent } from "./entity-users.component";
@NgModule({
imports: [SharedModule, ScrollingModule],
declarations: [EntityUsersComponent],
ex... | bitwarden/web/src/app/modules/organizations/manage/organization-manage.module.ts/0 | {
"file_path": "bitwarden/web/src/app/modules/organizations/manage/organization-manage.module.ts",
"repo_id": "bitwarden",
"token_count": 109
} | 135 |
import { Component, Input } from "@angular/core";
import { ModalService } from "jslib-angular/services/modal.service";
import { ApiService } from "jslib-common/abstractions/api.service";
import { I18nService } from "jslib-common/abstractions/i18n.service";
import { LogService } from "jslib-common/abstractions/log.serv... | bitwarden/web/src/app/modules/vault-filter/components/organization-options.component.ts/0 | {
"file_path": "bitwarden/web/src/app/modules/vault-filter/components/organization-options.component.ts",
"repo_id": "bitwarden",
"token_count": 1449
} | 136 |
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
import { I18nService } from "jslib-common/abstractions/i18n.service";
@Component({
selector: "app-org-badge",
templateUrl: "organization-name-badge.component.html",
})
export class OrganizationNameBadgeComponent implements OnInit {
... | bitwarden/web/src/app/modules/vault/modules/organization-badge/organization-name-badge.component.ts/0 | {
"file_path": "bitwarden/web/src/app/modules/vault/modules/organization-badge/organization-name-badge.component.ts",
"repo_id": "bitwarden",
"token_count": 751
} | 137 |
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="collectionAddEditTitle">
<div class="modal-dialog modal-dialog-scrollable" role="document">
<form
class="modal-content"
#form
(ngSubmit)="submit()"
[appApiAction]="formPromise"
ngNativeValidate
>
<div ... | bitwarden/web/src/app/organizations/manage/collection-add-edit.component.html/0 | {
"file_path": "bitwarden/web/src/app/organizations/manage/collection-add-edit.component.html",
"repo_id": "bitwarden",
"token_count": 3390
} | 138 |
<div class="page-header d-flex">
<h1>{{ "policies" | i18n }}</h1>
</div>
<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>
<table class="table table... | bitwarden/web/src/app/organizations/manage/policies.component.html/0 | {
"file_path": "bitwarden/web/src/app/organizations/manage/policies.component.html",
"repo_id": "bitwarden",
"token_count": 369
} | 139 |
<app-callout type="info" *ngIf="showKeyConnectorInfo">
{{ "keyConnectorPolicyRestriction" | i18n }}
</app-callout>
<div [formGroup]="data">
<div class="form-group">
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
id="enabled"
[formControl]="enabled... | bitwarden/web/src/app/organizations/policies/master-password.component.html/0 | {
"file_path": "bitwarden/web/src/app/organizations/policies/master-password.component.html",
"repo_id": "bitwarden",
"token_count": 990
} | 140 |
import { Permissions } from "jslib-common/enums/permissions";
import { Organization } from "jslib-common/models/domain/organization";
const permissions = {
manage: [
Permissions.CreateNewCollections,
Permissions.EditAnyCollection,
Permissions.DeleteAnyCollection,
Permissions.EditAssignedCollections,
... | bitwarden/web/src/app/organizations/services/navigation-permissions.service.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/services/navigation-permissions.service.ts",
"repo_id": "bitwarden",
"token_count": 490
} | 141 |
import { Component, OnInit } 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 { Pla... | bitwarden/web/src/app/organizations/settings/organization-billing.component.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/settings/organization-billing.component.ts",
"repo_id": "bitwarden",
"token_count": 1551
} | 142 |
import { Component } from "@angular/core";
import { ActivatedRoute } from "@angular/router";
import { MessagingService } from "jslib-common/abstractions/messaging.service";
import { OrganizationService } from "jslib-common/abstractions/organization.service";
import { Organization } from "jslib-common/models/domain/org... | bitwarden/web/src/app/organizations/tools/tools.component.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/tools/tools.component.ts",
"repo_id": "bitwarden",
"token_count": 374
} | 143 |
import { Component, OnInit } from "@angular/core";
import { ModalService } from "jslib-angular/services/modal.service";
import { AuditService } from "jslib-common/abstractions/audit.service";
import { CipherService } from "jslib-common/abstractions/cipher.service";
import { MessagingService } from "jslib-common/abstra... | bitwarden/web/src/app/reports/exposed-passwords-report.component.ts/0 | {
"file_path": "bitwarden/web/src/app/reports/exposed-passwords-report.component.ts",
"repo_id": "bitwarden",
"token_count": 857
} | 144 |
<form #form (ngSubmit)="load()" [appApiAction]="formPromise" class="container" ngNativeValidate>
<div class="row justify-content-center mt-5">
<div class="col-12">
<h1 class="lead text-center mb-4">Bitwarden Send</h1>
</div>
<div class="col-12 text-center" *ngIf="creatorIdentifier != null">
<p... | bitwarden/web/src/app/send/access.component.html/0 | {
"file_path": "bitwarden/web/src/app/send/access.component.html",
"repo_id": "bitwarden",
"token_count": 3019
} | 145 |
<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">{{ "addCre... | bitwarden/web/src/app/settings/add-credit.component.html/0 | {
"file_path": "bitwarden/web/src/app/settings/add-credit.component.html",
"repo_id": "bitwarden",
"token_count": 1504
} | 146 |
<div class="container page-content">
<div class="row">
<div class="col-12">
<div class="page-header">
<h1>{{ "newOrganization" | i18n }}</h1>
</div>
<p>{{ "newOrganizationDesc" | i18n }}</p>
<app-organization-plans></app-organization-plans>
</div>
</div>
</div>
| bitwarden/web/src/app/settings/create-organization.component.html/0 | {
"file_path": "bitwarden/web/src/app/settings/create-organization.component.html",
"repo_id": "bitwarden",
"token_count": 143
} | 147 |
import { Component, OnInit, ViewChild, ViewContainerRef } from "@angular/core";
import { ActivatedRoute, Router } from "@angular/router";
import { ModalService } from "jslib-angular/services/modal.service";
import { ApiService } from "jslib-common/abstractions/api.service";
import { CipherService } from "jslib-common/... | bitwarden/web/src/app/settings/emergency-access-view.component.ts/0 | {
"file_path": "bitwarden/web/src/app/settings/emergency-access-view.component.ts",
"repo_id": "bitwarden",
"token_count": 1194
} | 148 |
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="purgeVaultTitle">
<div class="modal-dialog modal-dialog-scrollable" role="document">
<form
class="modal-content"
#form
(ngSubmit)="submit()"
[appApiAction]="formPromise"
ngNativeValidate
>
<div class="... | bitwarden/web/src/app/settings/purge-vault.component.html/0 | {
"file_path": "bitwarden/web/src/app/settings/purge-vault.component.html",
"repo_id": "bitwarden",
"token_count": 698
} | 149 |
<div class="row">
<div class="col-6">
<div class="form-group">
<label for="addressCountry">{{ "country" | i18n }}</label>
<select
id="addressCountry"
class="form-control"
[(ngModel)]="taxInfo.country"
required
name="addressCountry"
autocomplete="country"... | bitwarden/web/src/app/settings/tax-info.component.html/0 | {
"file_path": "bitwarden/web/src/app/settings/tax-info.component.html",
"repo_id": "bitwarden",
"token_count": 6511
} | 150 |
import { Component, NgZone } 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/two-factor-webauthn.component.ts/0 | {
"file_path": "bitwarden/web/src/app/settings/two-factor-webauthn.component.ts",
"repo_id": "bitwarden",
"token_count": 2096
} | 151 |
import { Component } from "@angular/core";
import { FormBuilder } from "@angular/forms";
import { ExportComponent as BaseExportComponent } from "jslib-angular/components/export.component";
import { CryptoService } from "jslib-common/abstractions/crypto.service";
import { EventService } from "jslib-common/abstractions/... | bitwarden/web/src/app/tools/export.component.ts/0 | {
"file_path": "bitwarden/web/src/app/tools/export.component.ts",
"repo_id": "bitwarden",
"token_count": 552
} | 152 |
import { Component, Input, ViewChild, ViewContainerRef } from "@angular/core";
import { ModalService } from "jslib-angular/services/modal.service";
import { I18nService } from "jslib-common/abstractions/i18n.service";
import { PasswordRepromptService } from "jslib-common/abstractions/passwordReprompt.service";
import ... | bitwarden/web/src/app/vault/bulk-actions.component.ts/0 | {
"file_path": "bitwarden/web/src/app/vault/bulk-actions.component.ts",
"repo_id": "bitwarden",
"token_count": 1994
} | 153 |
import { Component, OnDestroy } from "@angular/core";
import { ShareComponent as BaseShareComponent } from "jslib-angular/components/share.component";
import { CipherService } from "jslib-common/abstractions/cipher.service";
import { CollectionService } from "jslib-common/abstractions/collection.service";
import { I18... | bitwarden/web/src/app/vault/share.component.ts/0 | {
"file_path": "bitwarden/web/src/app/vault/share.component.ts",
"repo_id": "bitwarden",
"token_count": 512
} | 154 |
<!DOCTYPE html>
<html class="theme_light">
<head>
<meta charset="utf-8" />
<title>Bitwarden WebAuthn Connector</title>
</head>
<body class="layout_frontend">
<div class="container">
<div class="row justify-content-center mt-5">
<div class="col-5">
<img src="../images/logo-dark... | bitwarden/web/src/connectors/webauthn-fallback.html/0 | {
"file_path": "bitwarden/web/src/connectors/webauthn-fallback.html",
"repo_id": "bitwarden",
"token_count": 702
} | 155 |
{
"pageTitle": {
"message": "$APP_NAME$ Reta Volbo",
"description": "The title of the website in the browser window.",
"placeholders": {
"app_name": {
"content": "$1",
"example": "Bitwarden"
}
}
},
"whatTypeOfItem": {
"message": "Kia speco de ero estas ĉi tio?"
},... | bitwarden/web/src/locales/eo/messages.json/0 | {
"file_path": "bitwarden/web/src/locales/eo/messages.json",
"repo_id": "bitwarden",
"token_count": 58861
} | 156 |
{
"pageTitle": {
"message": "$APP_NAME$ 웹 보관함",
"description": "The title of the website in the browser window.",
"placeholders": {
"app_name": {
"content": "$1",
"example": "Bitwarden"
}
}
},
"whatTypeOfItem": {
"message": "항목의 유형이 무엇입니까?"
},
"name": {
"mes... | bitwarden/web/src/locales/ko/messages.json/0 | {
"file_path": "bitwarden/web/src/locales/ko/messages.json",
"repo_id": "bitwarden",
"token_count": 87719
} | 157 |
{
"pageTitle": {
"message": "$APP_NAME$ web kasası",
"description": "The title of the website in the browser window.",
"placeholders": {
"app_name": {
"content": "$1",
"example": "Bitwarden"
}
}
},
"whatTypeOfItem": {
"message": "Bu kaydın türü nedir?"
},
"name"... | bitwarden/web/src/locales/tr/messages.json/0 | {
"file_path": "bitwarden/web/src/locales/tr/messages.json",
"repo_id": "bitwarden",
"token_count": 65314
} | 158 |
.navbar {
padding-left: 0;
padding-right: 0;
@include themify($themes) {
background-color: themed("navBackground");
}
&.nav-background-alt {
@include themify($themes) {
background-color: themed("navBackgroundAlt");
}
}
.nav-item {
> .nav-link {
@include themify($themes) {
... | bitwarden/web/src/scss/navigation.scss/0 | {
"file_path": "bitwarden/web/src/scss/navigation.scss",
"repo_id": "bitwarden",
"token_count": 904
} | 159 |
import { Injectable } from "@angular/core";
import Swal, { SweetAlertIcon } from "sweetalert2";
import { I18nService } from "jslib-common/abstractions/i18n.service";
import { LogService } from "jslib-common/abstractions/log.service";
import { MessagingService } from "jslib-common/abstractions/messaging.service";
impor... | bitwarden/web/src/services/webPlatformUtils.service.ts/0 | {
"file_path": "bitwarden/web/src/services/webPlatformUtils.service.ts",
"repo_id": "bitwarden",
"token_count": 3938
} | 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">
<parent>
<artifactId>web</artifactId>
... | chwshuang/web/cache/pom.xml/0 | {
"file_path": "chwshuang/web/cache/pom.xml",
"repo_id": "chwshuang",
"token_count": 563
} | 161 |
package web
import (
"fmt"
"net/http"
"testing"
)
func MyNotFoundHandler(rw ResponseWriter, r *Request) {
rw.WriteHeader(http.StatusNotFound)
fmt.Fprintf(rw, "My Not Found")
}
func (c *Context) HandlerWithContext(rw ResponseWriter, r *Request) {
rw.WriteHeader(http.StatusNotFound)
fmt.Fprintf(rw, "My Not Foun... | gocraft/web/not_found_test.go/0 | {
"file_path": "gocraft/web/not_found_test.go",
"repo_id": "gocraft",
"token_count": 485
} | 162 |
package web
import (
"fmt"
"net/http"
"net/http/httptest"
"runtime"
"strings"
"testing"
)
//
// This file will contain helpers and general things the rest of the suite needs
//
type nullPanicReporter struct{}
func (l nullPanicReporter) Panic(url string, err interface{}, stack string) {
// no op
}
func init()... | gocraft/web/web_test.go/0 | {
"file_path": "gocraft/web/web_test.go",
"repo_id": "gocraft",
"token_count": 1059
} | 163 |
<p align="center">
<img
width="60%"
src="./assets/logo.png"
alt="Modern Web"
/>
</p>
<p align="center">
<a href="https://github.com/modernweb-dev/web/actions"
><img
src="https://img.shields.io/github/actions/workflow/status/modernweb-dev/web/release.yml?branch=master&label=workflow&style=fl... | modernweb-dev/web/README.md/0 | {
"file_path": "modernweb-dev/web/README.md",
"repo_id": "modernweb-dev",
"token_count": 1427
} | 164 |
# Dev Server >> Node API ||6
The Dev Server has a node API to start the server programmatically.
## startDevServer
The `startDevServer` function will start the dev server with all the default options, identical to using the `web-dev-server` or `wds` command. It returns a dev server instance.
```js
import { startDev... | modernweb-dev/web/docs/docs/dev-server/node-api.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/dev-server/node-api.md",
"repo_id": "modernweb-dev",
"token_count": 1470
} | 165 |
# Storybook Builder >> Configuration ||2
`@web/storybook-builder` aims at compatibility with standard Storybook features, e.g. configuration of preview (`.storybook/preview.js`), official addons, etc.
You can follow the [official Storybook docs](https://storybook.js.org/) for the general setup and configuration option... | modernweb-dev/web/docs/docs/storybook-builder/configuration.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/storybook-builder/configuration.md",
"repo_id": "modernweb-dev",
"token_count": 1327
} | 166 |
# Test Runner >> Commands ||6
Commands for executing code server-side during your tests in the browser. To control the browser page, access the file system, or execute NodeJS libraries.
Built-in commands can change the viewport, emulate media queries or set the user agent. You can create custom commands to implement ... | modernweb-dev/web/docs/docs/test-runner/commands.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/test-runner/commands.md",
"repo_id": "modernweb-dev",
"token_count": 6439
} | 167 |
# Test Runner >> Writing Tests >> HTML Tests ||20
HTML files are loaded in the browser as is, and are not processed by a test framework. This way you have full control over the test environment. Depending on which test framework you're using, the way you run your tests can be a little different.
With mocha, you need ... | modernweb-dev/web/docs/docs/test-runner/writing-tests/html-tests.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/test-runner/writing-tests/html-tests.md",
"repo_id": "modernweb-dev",
"token_count": 688
} | 168 |
# Going Buildless >> Getting Started ||5
At Modern Web, it is our goal to help developers discover buildless workflows, by working closely with the browser rather than lots of complex tooling and abstractions. In this section, we've gathered several tips, tricks, and alternatives to help you discover the browsers nati... | modernweb-dev/web/docs/guides/going-buildless/getting-started.md/0 | {
"file_path": "modernweb-dev/web/docs/guides/going-buildless/getting-started.md",
"repo_id": "modernweb-dev",
"token_count": 325
} | 169 |
import { BrowserLauncher, TestRunnerCoreConfig } from '@web/test-runner-core';
import { runBasicTest } from './tests/basic/runBasicTest.js';
import { runConfigGroupsTest } from './tests/config-groups/runConfigGroupsTest.js';
import { runParallelTest } from './tests/parallel/runParallelTest.js';
import { runTestFailureT... | modernweb-dev/web/integration/test-runner/index.ts/0 | {
"file_path": "modernweb-dev/web/integration/test-runner/index.ts",
"repo_id": "modernweb-dev",
"token_count": 471
} | 170 |
import { expect } from '../../../../../node_modules/@esm-bundle/chai/esm/chai.js';
it('can run a test with focus d', async () => {
const input = document.createElement('input');
document.body.appendChild(input);
let firedEvent = false;
input.addEventListener('focus', () => {
firedEvent = true;
});
inp... | modernweb-dev/web/integration/test-runner/tests/focus/browser-tests/focus-d.test.js/0 | {
"file_path": "modernweb-dev/web/integration/test-runner/tests/focus/browser-tests/focus-d.test.js",
"repo_id": "modernweb-dev",
"token_count": 154
} | 171 |
import { throwErrorC } from './fail-stack-trace-c.js';
export function throwErrorB() {
return throwErrorC();
}
| modernweb-dev/web/integration/test-runner/tests/test-failure/browser-tests/fail-stack-trace-b.js/0 | {
"file_path": "modernweb-dev/web/integration/test-runner/tests/test-failure/browser-tests/fail-stack-trace-b.js",
"repo_id": "modernweb-dev",
"token_count": 38
} | 172 |
export { deserialize } from './deserialize.js';
export { browserScript } from './browserScript.js';
export {
MapBrowserUrl,
parseStackTrace,
StackLocation,
MapStackLocation,
} from './parseStackTrace.js';
| modernweb-dev/web/packages/browser-logs/src/index.ts/0 | {
"file_path": "modernweb-dev/web/packages/browser-logs/src/index.ts",
"repo_id": "modernweb-dev",
"token_count": 69
} | 173 |
const path = require('path');
const { fileExists } = require('./utils');
const ConfigLoaderError = require('./ConfigLoaderError.js');
const importOrRequireConfig = require('./importOrRequireConfig');
const EXTENSIONS = ['.mjs', '.cjs', '.js'];
/**
* @param {string} name
* @param {string} [customPath]
* @param {str... | modernweb-dev/web/packages/config-loader/src/index.js/0 | {
"file_path": "modernweb-dev/web/packages/config-loader/src/index.js",
"repo_id": "modernweb-dev",
"token_count": 360
} | 174 |
const path = require('path');
const { expect } = require('chai');
const { readConfig } = require('../src/index');
const configName = 'my-project.config';
const packageCjsPath = path.resolve(__dirname, 'fixtures', 'package-cjs');
const packageMjsPath = path.resolve(__dirname, 'fixtures', 'package-mjs');
async function... | modernweb-dev/web/packages/config-loader/test/index.test.js/0 | {
"file_path": "modernweb-dev/web/packages/config-loader/test/index.test.js",
"repo_id": "modernweb-dev",
"token_count": 1936
} | 175 |
import logoPath from './logo.png';
const img = document.createElement('img');
img.src = logoPath;
document.body.appendChild(img);
| modernweb-dev/web/packages/dev-server-core/demo/import-asset/app.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/demo/import-asset/app.js",
"repo_id": "modernweb-dev",
"token_count": 42
} | 176 |
export class PluginError extends Error {}
| modernweb-dev/web/packages/dev-server-core/src/logger/PluginError.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/src/logger/PluginError.ts",
"repo_id": "modernweb-dev",
"token_count": 8
} | 177 |
import Koa from 'koa';
import { ListenOptions, Server, Socket } from 'net';
import chokidar from 'chokidar';
import { promisify } from 'util';
import { DevServerCoreConfig } from './DevServerCoreConfig.js';
import { createServer } from './createServer.js';
import { Logger } from '../logger/Logger.js';
import { WebSock... | modernweb-dev/web/packages/dev-server-core/src/server/DevServer.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/src/server/DevServer.ts",
"repo_id": "modernweb-dev",
"token_count": 1172
} | 178 |
import { message } from 'my-module';
import './src/local-module.js';
console.log(message);
| modernweb-dev/web/packages/dev-server-core/test/fixtures/basic/src/app.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/test/fixtures/basic/src/app.js",
"repo_id": "modernweb-dev",
"token_count": 31
} | 179 |
import { expect } from 'chai';
import { parseDynamicImport } from '../../src/plugins/parseDynamicImport.js';
describe('parseDynamicImport', () => {
function testParseDynamicImport(specifier: string) {
const code = `import(${specifier})`;
return parseDynamicImport(code, 7, 7 + specifier.length);
}
it('wo... | modernweb-dev/web/packages/dev-server-core/test/plugins/parseDynamicImport.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/test/plugins/parseDynamicImport.test.ts",
"repo_id": "modernweb-dev",
"token_count": 2113
} | 180 |
const { esbuildPlugin } = require('@web/dev-server-esbuild');
module.exports = {
open: true,
// rootDir: '../..',
nodeResolve: true,
appIndex: 'index.html',
plugins: [esbuildPlugin({ ts: true })],
};
| modernweb-dev/web/packages/dev-server-esbuild/demo/ts/web-dev-server.config.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-esbuild/demo/ts/web-dev-server.config.js",
"repo_id": "modernweb-dev",
"token_count": 78
} | 181 |
import path from 'path';
import { fileURLToPath } from 'url';
import { hmrPlugin } from '../../index.mjs';
export default {
rootDir: '../..',
open: 'packages/dev-server-hmr/demo/lit-html/index.html',
nodeResolve: true,
plugins: [hmrPlugin()],
};
| modernweb-dev/web/packages/dev-server-hmr/demo/lit-html/server.config.mjs/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-hmr/demo/lit-html/server.config.mjs",
"repo_id": "modernweb-dev",
"token_count": 94
} | 182 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.