text
stringlengths
1
2.83M
id
stringlengths
16
152
metadata
dict
__index_level_0__
int64
0
949
* Joan Sisquella <joan.sisquella@forgeflow.com> * Thiago Mulero <thiago.mulero@forgeflow.com> * David Jimenez <david.jimenez@forgeflow.com> * Jordi Ballester <jordi.ballester@forgefow.com>
OCA/web/web_notify_channel_message/readme/CONTRIBUTORS.rst/0
{ "file_path": "OCA/web/web_notify_channel_message/readme/CONTRIBUTORS.rst", "repo_id": "OCA", "token_count": 77 }
100
Go to pivot view and click on the "Measures" menu, you will see a new option called 'Computed Measure'. You have the follow options to create a 'computed measure': - Measure 1: Used in 'operation formula' as 'm1' - Measure 2: Used in 'operation formula' as 'm2' - Operation: The formula - Sum: m1 + m2 - Sub:...
OCA/web/web_pivot_computed_measure/readme/USAGE.rst/0
{ "file_path": "OCA/web/web_pivot_computed_measure/readme/USAGE.rst", "repo_id": "OCA", "token_count": 306 }
101
=========================== Progressive web application =========================== .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! s...
OCA/web/web_pwa_oca/README.rst/0
{ "file_path": "OCA/web/web_pwa_oca/README.rst", "repo_id": "OCA", "token_count": 2395 }
102
After having installed this module, browsing your odoo on mobile you will be able to install it as a PWA. It is strongly recommended to use this module with a responsive layout, like the one provided by web_responsive. This module is intended to be used by Odoo back-end users (employees). When a Progressive Web App ...
OCA/web/web_pwa_oca/readme/INSTALL.rst/0
{ "file_path": "OCA/web/web_pwa_oca/readme/INSTALL.rst", "repo_id": "OCA", "token_count": 251 }
103
/* Copyright 2020 Tecnativa - Alexandre D. Díaz * License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */ /** * Services workers are a piece of software separated from the user page. * Here can't use 'Odoo Bootstrap', so we can't work with 'require' system. * When the service worker is called to be insta...
OCA/web/web_pwa_oca/static/src/js/worker/pwa.js/0
{ "file_path": "OCA/web/web_pwa_oca/static/src/js/worker/pwa.js", "repo_id": "OCA", "token_count": 656 }
104
Adds a button next to the pager (in trees/kanban views) to refresh the displayed list. .. image:: ./static/description/refresh.png
OCA/web/web_refresher/readme/DESCRIPTION.rst/0
{ "file_path": "OCA/web/web_refresher/readme/DESCRIPTION.rst", "repo_id": "OCA", "token_count": 37 }
105
* Francisco Javier Luna Vázquez <fluna@vauxoo.com> * Tomás Álvarez <tomas@vauxoo.com> * `Komit <https://komit-consulting.com/>`_: * Cuong Nguyen Mtm <cuong.nmtm@komit-consulting.com>
OCA/web/web_remember_tree_column_width/readme/CONTRIBUTORS.rst/0
{ "file_path": "OCA/web/web_remember_tree_column_width/readme/CONTRIBUTORS.rst", "repo_id": "OCA", "token_count": 85 }
106
# Translation of Odoo Server. # This file contains the translation of the following modules: # * web_responsive # msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "PO-Revision-Date: 2021-04-11 18:46+0000\n" "Last-Translator: Yves Le Doeuff <yld@alliasys.fr>\n" "Language-Team: none...
OCA/web/web_responsive/i18n/fr_FR.po/0
{ "file_path": "OCA/web/web_responsive/i18n/fr_FR.po", "repo_id": "OCA", "token_count": 1604 }
107
/** @odoo-module **/ /* Copyright 2023 Onestein - Anjeel Haria * License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */ import {ChatterTopbar} from "@mail/components/chatter_topbar/chatter_topbar"; import {deviceContext} from "@web_responsive/components/ui_context.esm"; import {patch} from "web.utils"; // ...
OCA/web/web_responsive/static/src/components/chatter_topbar/chatter_topbar.esm.js/0
{ "file_path": "OCA/web/web_responsive/static/src/components/chatter_topbar/chatter_topbar.esm.js", "repo_id": "OCA", "token_count": 186 }
108
/* Copyright 2023 Tecnativa - Carlos Roca * License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */ // Many2one li items with wrap .o_field_many2one_selection { ul.ui-autocomplete .dropdown-item.ui-menu-item-wrapper { white-space: initial; } }
OCA/web/web_responsive/static/src/views/form/form_controller.scss/0
{ "file_path": "OCA/web/web_responsive/static/src/views/form/form_controller.scss", "repo_id": "OCA", "token_count": 108 }
109
/** @odoo-module **/ import {patch} from "@web/core/utils/patch"; import {SearchBar} from "@web/search/search_bar/search_bar"; patch(SearchBar.prototype, "web_search_with_and/static/src/js/search_bar.js", { selectItem(item) { if (!item.unselectable) { const {searchItemId, label, operator, valu...
OCA/web/web_search_with_and/static/src/js/search_bar.esm.js/0
{ "file_path": "OCA/web/web_search_with_and/static/src/js/search_bar.esm.js", "repo_id": "OCA", "token_count": 334 }
110
<?xml version="1.0" encoding="UTF-8" ?> <templates xml:space="preserve"> <t t-name="web_select_all_companies.SwitchAllCompanyMenu" t-inherit="web.SwitchCompanyMenu" t-inherit-mode="extension" owl="1" > <xpath expr="//t[@t-key='company.id']" position="before"> ...
OCA/web/web_select_all_companies/static/src/xml/switch_all_company_menu.xml/0
{ "file_path": "OCA/web/web_select_all_companies/static/src/xml/switch_all_company_menu.xml", "repo_id": "OCA", "token_count": 1029 }
111
# Translation of Odoo Server. # This file contains the translation of the following modules: # * web_timeline # 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: non...
OCA/web/web_timeline/i18n/pt.po/0
{ "file_path": "OCA/web/web_timeline/i18n/pt.po", "repo_id": "OCA", "token_count": 1286 }
112
/* Copyright 2018 Onestein * License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */ odoo.define("web_timeline.TimelineCanvas", function (require) { "use strict"; const Widget = require("web.Widget"); /** * Used to draw stuff on upon the timeline view. */ const TimelineCanvas = Wi...
OCA/web/web_timeline/static/src/js/timeline_canvas.js/0
{ "file_path": "OCA/web/web_timeline/static/src/js/timeline_canvas.js", "repo_id": "OCA", "token_count": 3113 }
113
- Enable more mobile UI enhancements for tablets as they seem relevant. - Allow setting per user or per session, with sane defaults. Just in case you happen to use a tablet with a mouse.
OCA/web/web_touchscreen/readme/ROADMAP.md/0
{ "file_path": "OCA/web/web_touchscreen/readme/ROADMAP.md", "repo_id": "OCA", "token_count": 43 }
114
# Translation of Odoo Server. # This file contains the translation of the following modules: # * web_tree_duplicate # msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" "PO-Revision-Date: 2019-09-01 12:52+0000\n" "Last-Translator: 黎伟杰 <674416404@qq.com>\n" "Language-Team: none\n" "La...
OCA/web/web_tree_duplicate/i18n/zh_CN.po/0
{ "file_path": "OCA/web/web_tree_duplicate/i18n/zh_CN.po", "repo_id": "OCA", "token_count": 371 }
115
* Therp BV * Pedro M. Baeza <pedro.baeza@serviciosbaeza.com> * Antonio Espinosa <antonio.espinosa@tecnativa.com> * Sodexis <dev@sodexis.com> * Artem Kostyuk <a.kostyuk@mobilunity.com> * Anand Kansagra <kansagraanand@hotmail.com> * Alexandre Díaz <alexandre.diaz@tecnativa.com> * Dennis Sluijk <d.sluijk@onestein.nl>
OCA/web/web_tree_many2one_clickable/readme/CONTRIBUTORS.rst/0
{ "file_path": "OCA/web/web_tree_many2one_clickable/readme/CONTRIBUTORS.rst", "repo_id": "OCA", "token_count": 149 }
116
* Jordi Ballester Alomar <jordi.ballester@forgeflow.com> * Lois Rilo Antelo <lois.rilo@forgeflow.com> * Artem Kostyuk <a.kostyuk@mobilunity.com> * Christopher Ormaza <chris.ormaza@forgeflow.com> * Enric Tobella <etobella@creublanca.es> * Oriol Miranda Garrido <oriol.miranda@forgeflow.com> * Bernat Puig Font <bernat.pui...
OCA/web/web_widget_bokeh_chart/readme/CONTRIBUTORS.rst/0
{ "file_path": "OCA/web/web_widget_bokeh_chart/readme/CONTRIBUTORS.rst", "repo_id": "OCA", "token_count": 137 }
117
# Copyright 2019 Tecnativa - David Vidal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Web Widget Domain Editor Dialog", "summary": "Recovers the Domain Editor Dialog functionality", "version": "16.0.1.0.0", "category": "Web", "author": "Tecnativa," "Odoo Community ...
OCA/web/web_widget_domain_editor_dialog/__manifest__.py/0
{ "file_path": "OCA/web/web_widget_domain_editor_dialog/__manifest__.py", "repo_id": "OCA", "token_count": 255 }
118
# Translation of Odoo Server. # This file contains the translation of the following modules: # * web_widget_dropdown_dynamic # msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "PO-Revision-Date: 2021-10-13 20:46+0000\n" "Last-Translator: Corneliuus <cornelius@clk-it.de>\n" "Langua...
OCA/web/web_widget_dropdown_dynamic/i18n/de.po/0
{ "file_path": "OCA/web/web_widget_dropdown_dynamic/i18n/de.po", "repo_id": "OCA", "token_count": 310 }
119
# Translation of Odoo Server. # This file contains the translation of the following modules: # * web_widget_image_webcam # msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" "PO-Revision-Date: 2020-08-06 11:59+0000\n" "Last-Translator: claudiagn <claudia.gargallo@qubiq.es>\n" "Langu...
OCA/web/web_widget_image_webcam/i18n/es.po/0
{ "file_path": "OCA/web/web_widget_image_webcam/i18n/es.po", "repo_id": "OCA", "token_count": 663 }
120
====================== Web Widget mpld3 Chart ====================== .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: s...
OCA/web/web_widget_mpld3_chart/README.rst/0
{ "file_path": "OCA/web/web_widget_mpld3_chart/README.rst", "repo_id": "OCA", "token_count": 1808 }
121
# Translation of Odoo Server. # This file contains the translation of the following modules: # * web_widget_open_tab # 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" "Cont...
OCA/web/web_widget_open_tab/i18n/web_widget_open_tab.pot/0
{ "file_path": "OCA/web/web_widget_open_tab/i18n/web_widget_open_tab.pot", "repo_id": "OCA", "token_count": 509 }
122
# Translation of Odoo Server. # This file contains the translation of the following modules: # * web_widget_x2many_2d_matrix # # Translators: # Ahmet Altınışık <aaltinisik@altinkaya.com.tr>, 2015 msgid "" msgstr "" "Project-Id-Version: web (8.0)\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-01-08 21:34+0000\n"...
OCA/web/web_widget_x2many_2d_matrix/i18n/tr.po/0
{ "file_path": "OCA/web/web_widget_x2many_2d_matrix/i18n/tr.po", "repo_id": "OCA", "token_count": 429 }
123
/** @odoo-module **/ import {patch} from "@web/core/utils/patch"; import {BooleanField} from "@web/views/fields/boolean/boolean_field"; patch(BooleanField.prototype, "web_widget_x2many_2d_matrix", { get isReadonly() { if (this.props.record.bypass_readonly) { return false; } ret...
OCA/web/web_widget_x2many_2d_matrix/static/src/views/fields/boolean/boolean_field.esm.js/0
{ "file_path": "OCA/web/web_widget_x2many_2d_matrix/static/src/views/fields/boolean/boolean_field.esm.js", "repo_id": "OCA", "token_count": 156 }
124
Contributing ============ If you would like to contribute code to Squash, thank you! You can do so through GitHub by forking one of the repositories and sending a pull request. However, before your code can be accepted into the project we need you to sign the (super simple) [Individual Contributor License Agreement (C...
SquareSquash/web/CONTRIBUTING.md/0
{ "file_path": "SquareSquash/web/CONTRIBUTING.md", "repo_id": "SquareSquash", "token_count": 135 }
125
@import "vars"; $tab-bg-color: $gray6; body { // bleed the tab background color all the way to the bottom &.tabbed { background-color: $tab-bg-color; } } // in order to get the background colors of the fluid grid to bleed out to the // edge of the page, we have to wrap every "container" element with its own // ...
SquareSquash/web/app/assets/stylesheets/_containers.scss/0
{ "file_path": "SquareSquash/web/app/assets/stylesheets/_containers.scss", "repo_id": "SquareSquash", "token_count": 1039 }
126
@import "vars"; @import "tables"; body#occurrences-show { // color the tabbed portion gray by coloring out the global portion as white #mainbar { background-color: $gray6; } #global-portion { background-color: white; } #occurrence-header { h1 { margin-bottom: 5px; } h4 { margin-top: 0; ma...
SquareSquash/web/app/assets/stylesheets/occurrences.css.scss/0
{ "file_path": "SquareSquash/web/app/assets/stylesheets/occurrences.css.scss", "repo_id": "SquareSquash", "token_count": 744 }
127
# 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/bugs_controller.rb/0
{ "file_path": "SquareSquash/web/app/controllers/bugs_controller.rb", "repo_id": "SquareSquash", "token_count": 6471 }
128
# 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/users_controller.rb/0
{ "file_path": "SquareSquash/web/app/controllers/users_controller.rb", "repo_id": "SquareSquash", "token_count": 1279 }
129
# 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/environment.rb/0
{ "file_path": "SquareSquash/web/app/models/environment.rb", "repo_id": "SquareSquash", "token_count": 1134 }
130
# 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/user.rb/0
{ "file_path": "SquareSquash/web/app/models/user.rb", "repo_id": "SquareSquash", "token_count": 2520 }
131
<%= @comment.user.name %> has commented on this bug: <%= @bug.class_name %> <% if @bug.special_file? %> in <%= @bug.file %> <% else %> in <%= @bug.file %>:<%= @bug.line %> <% end %> <%= @bug.message_template %> His/her comment was: <%= email_quote @comment.body %> More details at <%= project_environment_bug_url @b...
SquareSquash/web/app/views/notification_mailer/comment.text.erb/0
{ "file_path": "SquareSquash/web/app/views/notification_mailer/comment.text.erb", "repo_id": "SquareSquash", "token_count": 208 }
132
// 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/projects/index.js.erb/0
{ "file_path": "SquareSquash/web/app/views/projects/index.js.erb", "repo_id": "SquareSquash", "token_count": 3955 }
133
--- background_runner: Multithread multithread: priority_threshold: 50 pool_size: 20 max_threads: 100 priority: CommentNotificationMailer: 80 DeployFixMarker: 70 DeployNotificationMailer: 80 JiraStatusWorker: 20 ObfuscationMapCreator: 60 ObfuscationMapWorker: 60 OccurrenceNotificati...
SquareSquash/web/config/environments/common/concurrency.yml/0
{ "file_path": "SquareSquash/web/config/environments/common/concurrency.yml", "repo_id": "SquareSquash", "token_count": 899 }
134
--- authentication: password: obfuscated
SquareSquash/web/config/environments/test/jira.yml/0
{ "file_path": "SquareSquash/web/config/environments/test/jira.yml", "repo_id": "SquareSquash", "token_count": 12 }
135
# 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/jdbc_fixes.rb/0
{ "file_path": "SquareSquash/web/config/initializers/jdbc_fixes.rb", "repo_id": "SquareSquash", "token_count": 1038 }
136
--- description: | Notify Squash of an exception or crash. Any parameters in the request JSON that are not `class_name`, `api_key` or `environment` are included as part of the resulting Occurrence record. See the Occurrence class documentation for details on the (many) fields you can pass. As an example, the re...
SquareSquash/web/doc/fdoc/notify-POST.fdoc/0
{ "file_path": "SquareSquash/web/doc/fdoc/notify-POST.fdoc", "repo_id": "SquareSquash", "token_count": 746 }
137
# 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/email_alias_form.js.coffee/0
{ "file_path": "SquareSquash/web/lib/assets/javascripts/email_alias_form.js.coffee", "repo_id": "SquareSquash", "token_count": 1090 }
138
@import "vars"; @import "tables"; table.sortable { @include table; th { &.sortable:hover { cursor: pointer; } &.sorted { background-color: $gray5; } i { margin-left: 5px; float: right; } } }
SquareSquash/web/lib/assets/stylesheets/sortable_table.css.scss/0
{ "file_path": "SquareSquash/web/lib/assets/stylesheets/sortable_table.css.scss", "repo_id": "SquareSquash", "token_count": 104 }
139
# 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/repo_proxy.rb/0
{ "file_path": "SquareSquash/web/lib/repo_proxy.rb", "repo_id": "SquareSquash", "token_count": 602 }
140
# 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/obfuscation_map_creator.rb/0
{ "file_path": "SquareSquash/web/lib/workers/obfuscation_map_creator.rb", "repo_id": "SquareSquash", "token_count": 552 }
141
<!DOCTYPE html> <html> <head> <title>We're sorry, but something went wrong (500)</title> <style type="text/css"> body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border...
SquareSquash/web/public/500.html/0
{ "file_path": "SquareSquash/web/public/500.html", "repo_id": "SquareSquash", "token_count": 276 }
142
# 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/bugs_controller_spec.rb/0
{ "file_path": "SquareSquash/web/spec/controllers/bugs_controller_spec.rb", "repo_id": "SquareSquash", "token_count": 7535 }
143
# 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/users_controller_spec.rb/0
{ "file_path": "SquareSquash/web/spec/controllers/users_controller_spec.rb", "repo_id": "SquareSquash", "token_count": 1671 }
144
# 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/find_in_batches_spec.rb/0
{ "file_path": "SquareSquash/web/spec/lib/find_in_batches_spec.rb", "repo_id": "SquareSquash", "token_count": 1586 }
145
# 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/environment_spec.rb/0
{ "file_path": "SquareSquash/web/spec/models/environment_spec.rb", "repo_id": "SquareSquash", "token_count": 1035 }
146
# 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/support/controller_404_examples.rb/0
{ "file_path": "SquareSquash/web/spec/support/controller_404_examples.rb", "repo_id": "SquareSquash", "token_count": 418 }
147
/* Flot plugin for plotting images. Copyright (c) 2007-2012 IOLA and Ole Laursen. Licensed under the MIT license. The data syntax is [ [ image, x1, y1, x2, y2 ], ... ] where (x1, y1) and (x2, y2) are where you intend the two opposite corners of the image to end up in the plot. Image must be a fully loaded Javascript ...
SquareSquash/web/vendor/assets/javascripts/flot/image.js/0
{ "file_path": "SquareSquash/web/vendor/assets/javascripts/flot/image.js", "repo_id": "SquareSquash", "token_count": 3874 }
148
/** * 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/shBrushCSharp.js/0
{ "file_path": "SquareSquash/web/vendor/assets/javascripts/sh/shBrushCSharp.js", "repo_id": "SquareSquash", "token_count": 981 }
149
/** * 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/shBrushPlain.js/0
{ "file_path": "SquareSquash/web/vendor/assets/javascripts/sh/shBrushPlain.js", "repo_id": "SquareSquash", "token_count": 279 }
150
/*! * Bootstrap v2.2.1 * * Copyright 2012 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world @twitter by @mdo and @fat. */ .clearfix { *zoom: 1; } .clearfix:before, .clearfix:after { display: table; conte...
SquareSquash/web/vendor/assets/stylesheets/bootstrap.css/0
{ "file_path": "SquareSquash/web/vendor/assets/stylesheets/bootstrap.css", "repo_id": "SquareSquash", "token_count": 808 }
151
/** * 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/shThemeMidnight.css/0
{ "file_path": "SquareSquash/web/vendor/assets/stylesheets/sh/shThemeMidnight.css", "repo_id": "SquareSquash", "token_count": 938 }
152
import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; import "bootstrap"; import "jquery"; import "popper.js"; require("src/scss/styles.scss"); require("src/scss/tailwind.css"); import { AppModule } from "./app.module"; if (process.env.NODE_ENV =...
bitwarden/web/bitwarden_license/src/app/main.ts/0
{ "file_path": "bitwarden/web/bitwarden_license/src/app/main.ts", "repo_id": "bitwarden", "token_count": 142 }
153
<app-callout type="tip" title="{{ 'prerequisite' | i18n }}"> {{ "requireSsoPolicyReq" | i18n }} </app-callout> <div class="form-group"> <div class="form-check"> <input class="form-check-input" type="checkbox" id="enabled" [formControl]="enabled" name="Enabled" /> <label cl...
bitwarden/web/bitwarden_license/src/app/policies/maximum-vault-timeout.component.html/0
{ "file_path": "bitwarden/web/bitwarden_license/src/app/policies/maximum-vault-timeout.component.html", "repo_id": "bitwarden", "token_count": 571 }
154
<div class="container page-content"> <div class="row"> <div class="col-3"> <div class="card" *ngIf="provider"> <div class="card-header">{{ "manage" | i18n }}</div> <div class="list-group list-group-flush"> <a routerLink="people" class="list-group-item" ...
bitwarden/web/bitwarden_license/src/app/providers/manage/manage.component.html/0
{ "file_path": "bitwarden/web/bitwarden_license/src/app/providers/manage/manage.component.html", "repo_id": "bitwarden", "token_count": 451 }
155
import { Component } from "@angular/core"; import { BaseAcceptComponent } from "src/app/common/base.accept.component"; @Component({ selector: "app-setup-provider", templateUrl: "setup-provider.component.html", }) export class SetupProviderComponent extends BaseAcceptComponent { failedShortMessage = "inviteAccep...
bitwarden/web/bitwarden_license/src/app/providers/setup/setup-provider.component.ts/0
{ "file_path": "bitwarden/web/bitwarden_license/src/app/providers/setup/setup-provider.component.ts", "repo_id": "bitwarden", "token_count": 192 }
156
const child_process = require("child_process"); const path = require("path"); const images = process.argv.slice(2); images.forEach((img) => { switch (img.split(".").pop()) { case "png": child_process.execSync( `npx @squoosh/cli --oxipng {} --output-dir "${path.dirname(img)}" "${img}"` ); ...
bitwarden/web/scripts/optimize.js/0
{ "file_path": "bitwarden/web/scripts/optimize.js", "repo_id": "bitwarden", "token_count": 352 }
157
import { Component, NgZone } from "@angular/core"; import { ActivatedRoute, Router } from "@angular/router"; import { first } from "rxjs/operators"; import { LoginComponent as BaseLoginComponent } from "jslib-angular/components/login.component"; import { ApiService } from "jslib-common/abstractions/api.service"; impor...
bitwarden/web/src/app/accounts/login.component.ts/0
{ "file_path": "bitwarden/web/src/app/accounts/login.component.ts", "repo_id": "bitwarden", "token_count": 2380 }
158
import { Component, ViewChild, ViewContainerRef } from "@angular/core"; import { ActivatedRoute, Router } from "@angular/router"; import { TwoFactorComponent as BaseTwoFactorComponent } from "jslib-angular/components/two-factor.component"; import { ModalService } from "jslib-angular/services/modal.service"; import { A...
bitwarden/web/src/app/accounts/two-factor.component.ts/0
{ "file_path": "bitwarden/web/src/app/accounts/two-factor.component.ts", "repo_id": "bitwarden", "token_count": 1085 }
159
import { Component, EventEmitter, Input, Output } from "@angular/core"; import { Utils } from "jslib-common/misc/utils"; @Component({ selector: "app-nested-checkbox", templateUrl: "nested-checkbox.component.html", }) export class NestedCheckboxComponent { @Input() parentId: string; @Input() checkboxes: { id: ...
bitwarden/web/src/app/components/nested-checkbox.component.ts/0
{ "file_path": "bitwarden/web/src/app/components/nested-checkbox.component.ts", "repo_id": "bitwarden", "token_count": 303 }
160
import { Component, OnInit } from "@angular/core"; @Component({ selector: "app-user-layout", templateUrl: "user-layout.component.html", }) export class UserLayoutComponent implements OnInit { ngOnInit() { document.body.classList.remove("layout_frontend"); } }
bitwarden/web/src/app/layouts/user-layout.component.ts/0
{ "file_path": "bitwarden/web/src/app/layouts/user-layout.component.ts", "repo_id": "bitwarden", "token_count": 86 }
161
<a class="dropdown-item" href="#" appStopClick (click)="submit(returnUri, true)"> <i class="bwi bwi-fw bwi-link" aria-hidden="true"></i> {{ "linkSso" | i18n }} </a>
bitwarden/web/src/app/modules/vault-filter/components/link-sso.component.html/0
{ "file_path": "bitwarden/web/src/app/modules/vault-filter/components/link-sso.component.html", "repo_id": "bitwarden", "token_count": 72 }
162
<div class="container page-content"> <div class="row"> <div class="col-3"> <div class="groupings"> <div class="content"> <div class="inner-content"> <app-vault-filter #vaultFilter [activeFilter]="activeFilter" (onFilterChange)="applyVau...
bitwarden/web/src/app/modules/vault/modules/individual-vault/individual-vault.component.html/0
{ "file_path": "bitwarden/web/src/app/modules/vault/modules/individual-vault/individual-vault.component.html", "repo_id": "bitwarden", "token_count": 2275 }
163
import { Component, Input, OnInit } from "@angular/core"; import { ApiService } from "jslib-common/abstractions/api.service"; import { CryptoService } from "jslib-common/abstractions/crypto.service"; import { I18nService } from "jslib-common/abstractions/i18n.service"; import { OrganizationUserStatusType } from "jslib...
bitwarden/web/src/app/organizations/manage/bulk/bulk-confirm.component.ts/0
{ "file_path": "bitwarden/web/src/app/organizations/manage/bulk/bulk-confirm.component.ts", "repo_id": "bitwarden", "token_count": 1275 }
164
import { Component, OnInit, ViewChild, ViewContainerRef } from "@angular/core"; import { ActivatedRoute, Router } from "@angular/router"; import { first } from "rxjs/operators"; import { ModalService } from "jslib-angular/services/modal.service"; import { ApiService } from "jslib-common/abstractions/api.service"; impo...
bitwarden/web/src/app/organizations/manage/groups.component.ts/0
{ "file_path": "bitwarden/web/src/app/organizations/manage/groups.component.ts", "repo_id": "bitwarden", "token_count": 2114 }
165
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/src/app/organizations/manage/user-groups.component.ts/0
{ "file_path": "bitwarden/web/src/app/organizations/manage/user-groups.component.ts", "repo_id": "bitwarden", "token_count": 1080 }
166
import { Component } from "@angular/core"; import { FormBuilder } from "@angular/forms"; import { PolicyType } from "jslib-common/enums/policyType"; import { BasePolicy, BasePolicyComponent } from "./base-policy.component"; export class SendOptionsPolicy extends BasePolicy { name = "sendOptions"; description = "...
bitwarden/web/src/app/organizations/policies/send-options.component.ts/0
{ "file_path": "bitwarden/web/src/app/organizations/policies/send-options.component.ts", "repo_id": "bitwarden", "token_count": 205 }
167
<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">&times;</span> </button> <h3 class="card-body-header">{{ "downlo...
bitwarden/web/src/app/organizations/settings/download-license.component.html/0
{ "file_path": "bitwarden/web/src/app/organizations/settings/download-license.component.html", "repo_id": "bitwarden", "token_count": 704 }
168
import { Component } from "@angular/core"; import { ActivatedRoute } from "@angular/router"; 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 { Me...
bitwarden/web/src/app/organizations/tools/exposed-passwords-report.component.ts/0
{ "file_path": "bitwarden/web/src/app/organizations/tools/exposed-passwords-report.component.ts", "repo_id": "bitwarden", "token_count": 701 }
169
import { Component, OnInit } from "@angular/core"; import { I18nService } from "jslib-common/abstractions/i18n.service"; import { ProviderService } from "jslib-common/abstractions/provider.service"; import { Utils } from "jslib-common/misc/utils"; import { Provider } from "jslib-common/models/domain/provider"; @Compo...
bitwarden/web/src/app/providers/providers.component.ts/0
{ "file_path": "bitwarden/web/src/app/providers/providers.component.ts", "repo_id": "bitwarden", "token_count": 302 }
170
import { Component, OnInit } from "@angular/core"; import { ModalService } from "jslib-angular/services/modal.service"; import { CipherService } from "jslib-common/abstractions/cipher.service"; import { MessagingService } from "jslib-common/abstractions/messaging.service"; import { PasswordRepromptService } from "jsli...
bitwarden/web/src/app/reports/reused-passwords-report.component.ts/0
{ "file_path": "bitwarden/web/src/app/reports/reused-passwords-report.component.ts", "repo_id": "bitwarden", "token_count": 866 }
171
import { BasePolicy } from "../organizations/policies/base-policy.component"; export class PolicyListService { private policies: BasePolicy[] = []; addPolicies(policies: BasePolicy[]) { this.policies.push(...policies); } getPolicies(): BasePolicy[] { return this.policies; } }
bitwarden/web/src/app/services/policy-list.service.ts/0
{ "file_path": "bitwarden/web/src/app/services/policy-list.service.ts", "repo_id": "bitwarden", "token_count": 103 }
172
import { Component, OnInit } from "@angular/core"; import { ApiService } from "jslib-common/abstractions/api.service"; import { CryptoService } from "jslib-common/abstractions/crypto.service"; import { I18nService } from "jslib-common/abstractions/i18n.service"; import { LogService } from "jslib-common/abstractions/lo...
bitwarden/web/src/app/settings/change-email.component.ts/0
{ "file_path": "bitwarden/web/src/app/settings/change-email.component.ts", "repo_id": "bitwarden", "token_count": 1338 }
173
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="confirmUserTitle"> <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" id="...
bitwarden/web/src/app/settings/emergency-access-confirm.component.html/0
{ "file_path": "bitwarden/web/src/app/settings/emergency-access-confirm.component.html", "repo_id": "bitwarden", "token_count": 959 }
174
import { Component, OnInit } from "@angular/core"; import { FormControl } from "@angular/forms"; import { I18nService } from "jslib-common/abstractions/i18n.service"; import { MessagingService } from "jslib-common/abstractions/messaging.service"; import { PlatformUtilsService } from "jslib-common/abstractions/platform...
bitwarden/web/src/app/settings/preferences.component.ts/0
{ "file_path": "bitwarden/web/src/app/settings/preferences.component.ts", "repo_id": "bitwarden", "token_count": 1849 }
175
<td> {{ sponsoringOrg.familySponsorshipFriendlyName }} </td> <td>{{ sponsoringOrg.name }}</td> <td> <span [ngClass]="statusClass">{{ statusMessage }}</span> </td> <td class="table-action-right"> <div class="dropdown" appListDropdown> <button *ngIf="!sponsoringOrg.familySponsorshipToDelete" class="...
bitwarden/web/src/app/settings/sponsoring-org-row.component.html/0
{ "file_path": "bitwarden/web/src/app/settings/sponsoring-org-row.component.html", "repo_id": "bitwarden", "token_count": 790 }
176
<div class="tabbed-header"> <h1>{{ "twoStepLogin" | i18n }}</h1> </div> <p *ngIf="!organizationId">{{ "twoStepLoginDesc" | i18n }}</p> <p *ngIf="organizationId">{{ "twoStepLoginOrganizationDesc" | i18n }}</p> <bit-callout type="warning" *ngIf="!organizationId"> <p>{{ "twoStepLoginRecoveryWarning" | i18n }}</p> <b...
bitwarden/web/src/app/settings/two-factor-setup.component.html/0
{ "file_path": "bitwarden/web/src/app/settings/two-factor-setup.component.html", "repo_id": "bitwarden", "token_count": 961 }
177
<app-callout type="info" *ngIf="vaultTimeoutPolicy"> {{ "vaultTimeoutPolicyInEffect" | i18n: vaultTimeoutPolicyHours:vaultTimeoutPolicyMinutes }} </app-callout> <div [formGroup]="form"> <div class="form-group"> <label for="vaultTimeout">{{ "vaultTimeout" | i18n }}</label> <select id="vaultTimeout" ...
bitwarden/web/src/app/settings/vault-timeout-input.component.html/0
{ "file_path": "bitwarden/web/src/app/settings/vault-timeout-input.component.html", "repo_id": "bitwarden", "token_count": 628 }
178
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="cipherAddEditTitle"> <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document"> <form class="modal-content" #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate autoco...
bitwarden/web/src/app/vault/add-edit.component.html/0
{ "file_path": "bitwarden/web/src/app/vault/add-edit.component.html", "repo_id": "bitwarden", "token_count": 20064 }
179
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="collectionsTitle"> <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" id="...
bitwarden/web/src/app/vault/collections.component.html/0
{ "file_path": "bitwarden/web/src/app/vault/collections.component.html", "repo_id": "bitwarden", "token_count": 1277 }
180
html, body { margin: 0; padding: 0; } body { background: #efeff4 url("../images/loading.svg") 0 0 no-repeat; } iframe { display: block; width: 100%; height: 400px; border: none; margin: 0; padding: 0; }
bitwarden/web/src/connectors/duo.scss/0
{ "file_path": "bitwarden/web/src/connectors/duo.scss", "repo_id": "bitwarden", "token_count": 93 }
181
{ "pageTitle": { "message": "$APP_NAME$ Web-Tresor", "description": "The title of the website in the browser window.", "placeholders": { "app_name": { "content": "$1", "example": "Bitwarden" } } }, "whatTypeOfItem": { "message": "Um welche Art von Eintrag handelt es...
bitwarden/web/src/locales/de/messages.json/0
{ "file_path": "bitwarden/web/src/locales/de/messages.json", "repo_id": "bitwarden", "token_count": 64957 }
182
{ "pageTitle": { "message": "Cassaforte web di $APP_NAME$", "description": "The title of the website in the browser window.", "placeholders": { "app_name": { "content": "$1", "example": "Bitwarden" } } }, "whatTypeOfItem": { "message": "Di quale elemento si tratta?"...
bitwarden/web/src/locales/it/messages.json/0
{ "file_path": "bitwarden/web/src/locales/it/messages.json", "repo_id": "bitwarden", "token_count": 60920 }
183
.card { @include themify($themes) { background-color: themed("foregroundColor"); border-color: themed("borderColor"); color: themed("textColor"); } &.text-danger { &.text-danger > .card-body { @include themify($themes) { color: themed("danger"); } } } } .card-header, .m...
bitwarden/web/src/scss/cards.scss/0
{ "file_path": "bitwarden/web/src/scss/cards.scss", "repo_id": "bitwarden", "token_count": 709 }
184
import { I18nService as BaseI18nService } from "jslib-common/services/i18n.service"; export class I18nService extends BaseI18nService { constructor(systemLanguage: string, localesDirectory: string) { super(systemLanguage || "en-US", localesDirectory, async (formattedLocale: string) => { const filePath = ...
bitwarden/web/src/services/i18n.service.ts/0
{ "file_path": "bitwarden/web/src/services/i18n.service.ts", "repo_id": "bitwarden", "token_count": 743 }
185
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <!DOCTYPE html> <html> <head> <title>首页</title> </head> <body> <h1>首页</h1> <h2>登录成功</h2> </body> </html>
chwshuang/web/back/src/main/webapp/WEB-INF/pages/index/index.jsp/0
{ "file_path": "chwshuang/web/back/src/main/webapp/WEB-INF/pages/index/index.jsp", "repo_id": "chwshuang", "token_count": 110 }
186
package com.aitongyi.web.task; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; /** * 自定义定时任务 * Created by admin on 16/8/15. */ @Component public class CustomTask { private static final Logger ...
chwshuang/web/task/src/main/java/com/aitongyi/web/task/CustomTask.java/0
{ "file_path": "chwshuang/web/task/src/main/java/com/aitongyi/web/task/CustomTask.java", "repo_id": "chwshuang", "token_count": 1155 }
187
package web import ( "bytes" "fmt" "github.com/stretchr/testify/assert" "log" "net/http" "strings" "testing" ) func ErrorHandlerWithNoContext(w ResponseWriter, r *Request, err interface{}) { w.WriteHeader(http.StatusInternalServerError) fmt.Fprintf(w, "Contextless Error") } func TestNoErrorHandler(t *testin...
gocraft/web/error_test.go/0
{ "file_path": "gocraft/web/error_test.go", "repo_id": "gocraft", "token_count": 1832 }
188
package web import ( "strings" "testing" ) func TestShowErrorsMiddleware(t *testing.T) { router := New(Context{}) router.Middleware(ShowErrorsMiddleware) router.Get("/action", (*Context).A) router.Get("/boom", (*Context).ErrorAction) // Success: rw, req := newTestRequest("GET", "/action") router.ServeHTTP(r...
gocraft/web/show_errors_middleware_test.go/0
{ "file_path": "gocraft/web/show_errors_middleware_test.go", "repo_id": "gocraft", "token_count": 275 }
189
#!/bin/sh . "$(dirname "$0")/_/husky.sh" npx lint-staged
modernweb-dev/web/.husky/pre-commit/0
{ "file_path": "modernweb-dev/web/.husky/pre-commit", "repo_id": "modernweb-dev", "token_count": 31 }
190
const cache = require('@11ty/eleventy-cache-assets'); const url = `https://opencollective.com/modern-web/members/all.json`; module.exports = async function getSupporters() { const supportersRaw = await cache(url, { duration: '1d', type: 'json', }); const supporters = supportersRaw .filter( su...
modernweb-dev/web/docs/_data/supporters.js/0
{ "file_path": "modernweb-dev/web/docs/_data/supporters.js", "repo_id": "modernweb-dev", "token_count": 259 }
191
# Building >> Rollup Plugin Import Meta Assets ||30 Rollup plugin that detects assets references relative to modules using patterns such as `new URL('./assets/my-img.png', import.meta.url)`. The referenced assets are added to the rollup pipeline, allowing them to be transformed and hash the filenames. ## How it work...
modernweb-dev/web/docs/docs/building/rollup-plugin-import-meta-assets.md/0
{ "file_path": "modernweb-dev/web/docs/docs/building/rollup-plugin-import-meta-assets.md", "repo_id": "modernweb-dev", "token_count": 1385 }
192
# Dev Server >> Writing Plugins >> Hooks ||3 ## Hook: serve The serve hook can be used to serve virtual files from the server. The first plugin to respond with a body is used. It can return a Promise. <details> <summary>Read more</summary> Serve an auto generated `index.html`: ```js const indexHTML = generateIndex...
modernweb-dev/web/docs/docs/dev-server/writing-plugins/hooks.md/0
{ "file_path": "modernweb-dev/web/docs/docs/dev-server/writing-plugins/hooks.md", "repo_id": "modernweb-dev", "token_count": 4073 }
193
# Test Runner >> Browser Launchers >> Sauce Labs ||70 Browser launchers for web test runner to run tests remotely on [Sauce Labs](https://saucelabs.com/). For modern browsers, we recommend using other browser launchers, as they are a lot faster. Sauce Labs is a good option for testing on older browser versions. ## U...
modernweb-dev/web/docs/docs/test-runner/browser-launchers/saucelabs.md/0
{ "file_path": "modernweb-dev/web/docs/docs/test-runner/browser-launchers/saucelabs.md", "repo_id": "modernweb-dev", "token_count": 1729 }
194
# Test Runner >> Test Frameworks >> Mocha ||10 Test framework implementation of [Mocha](https://mochajs.org/). ## Writing JS tests Mocha relies on global variables, in any JS test file `describe` and `it` are available globally and can be used directly: ```js describe('my test', () => { it('foo is bar', () => { ...
modernweb-dev/web/docs/docs/test-runner/test-frameworks/mocha.md/0
{ "file_path": "modernweb-dev/web/docs/docs/test-runner/test-frameworks/mocha.md", "repo_id": "modernweb-dev", "token_count": 637 }
195
# Dev Server >> TypeScript and JSX ||50 ## JSX To use JSX in Web Dev Server and Web Test Runner we recommend the [esbuild plugin](../../docs/dev-server/plugins/esbuild.md). It's great for transforming JSX to JS on the fly. To use the plugin, install it, and add the plugin to your configuration. The `jsx: true` optio...
modernweb-dev/web/docs/guides/dev-server/typescript-and-jsx.md/0
{ "file_path": "modernweb-dev/web/docs/guides/dev-server/typescript-and-jsx.md", "repo_id": "modernweb-dev", "token_count": 980 }
196
# Test Runner >> Testing TypeScript || 70 If you write your source files in TypeScript, you can test directly from sources without compiling using `tsc`. Add `esbuildPlugin({ ts: true })` to your `web-test-runner.config.js` file. This uses esbuild to [transform TS sources on-the-fly](https://esbuild.github.io/api/#tra...
modernweb-dev/web/docs/guides/test-runner/typescript.md/0
{ "file_path": "modernweb-dev/web/docs/guides/test-runner/typescript.md", "repo_id": "modernweb-dev", "token_count": 412 }
197
import { expect } from '../../../../../node_modules/@esm-bundle/chai/esm/chai.js'; describe('basic test', () => { it('works', () => { expect(window.__group__).to.equal('b'); }); });
modernweb-dev/web/integration/test-runner/tests/config-groups/browser-tests/test-runner-html-b.test.js/0
{ "file_path": "modernweb-dev/web/integration/test-runner/tests/config-groups/browser-tests/test-runner-html-b.test.js", "repo_id": "modernweb-dev", "token_count": 75 }
198
it('works', async () => { await new Promise(r => setTimeout(r, 100)); });
modernweb-dev/web/integration/test-runner/tests/many/browser-tests/e.test.js/0
{ "file_path": "modernweb-dev/web/integration/test-runner/tests/many/browser-tests/e.test.js", "repo_id": "modernweb-dev", "token_count": 26 }
199