text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_ir_actions_act_multi
#
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"
... | OCA/web/web_ir_actions_act_multi/i18n/web_ir_actions_act_multi.pot/0 | {
"file_path": "OCA/web/web_ir_actions_act_multi/i18n/web_ir_actions_act_multi.pot",
"repo_id": "OCA",
"token_count": 1269
} | 80 |
* Holger Brunn <hbrunn@therp.nl>
* Zakaria Makrelouf (ACSONE SA/NV) <z.makrelouf@gmail.com>
* Benjamin Willig (ACSONE SA/NV) <benjamin.willig@acsone.eu>
* Ioan Galan (Studio73) <ioan@studio73.es>
* Abraham Anes (Studio73) <abraham@studio73.es>
* Miguel Gandia (Studio73) <miguel@studio73.es>
* `DynApps NV <https://www.d... | OCA/web/web_ir_actions_act_window_message/readme/CONTRIBUTORS.rst/0 | {
"file_path": "OCA/web/web_ir_actions_act_window_message/readme/CONTRIBUTORS.rst",
"repo_id": "OCA",
"token_count": 160
} | 81 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_ir_actions_act_window_page
#
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... | OCA/web/web_ir_actions_act_window_page/i18n/web_ir_actions_act_window_page.pot/0 | {
"file_path": "OCA/web/web_ir_actions_act_window_page/i18n/web_ir_actions_act_window_page.pot",
"repo_id": "OCA",
"token_count": 616
} | 82 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_m2x_options
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-03 03:50+0000\n"
"PO-Rev... | OCA/web/web_m2x_options/i18n/fi.po/0 | {
"file_path": "OCA/web/web_m2x_options/i18n/fi.po",
"repo_id": "OCA",
"token_count": 1359
} | 83 |
This modules modifies "many2one" and "many2manytags" form widgets so as to add some new display
control options.
Options provided includes possibility to remove "Create..." and/or "Create and
Edit..." entries from many2one drop down. You can also change default number of
proposition appearing in the drop-down. Or prev... | OCA/web/web_m2x_options/readme/DESCRIPTION.rst/0 | {
"file_path": "OCA/web/web_m2x_options/readme/DESCRIPTION.rst",
"repo_id": "OCA",
"token_count": 121
} | 84 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_notify
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-05-17 20:47+0000\n"
"Last-Translator: Bosd <c5e2fd43-d292-4c90-9d1f-74ff3436329a@anonaddy.me>\n"
"... | OCA/web/web_notify/i18n/nl.po/0 | {
"file_path": "OCA/web/web_notify/i18n/nl.po",
"repo_id": "OCA",
"token_count": 1359
} | 85 |
/** @odoo-module **/
import {Markup} from "web.utils";
import {browser} from "@web/core/browser/browser";
import {registry} from "@web/core/registry";
export const webNotificationService = {
dependencies: ["bus_service", "notification"],
start(env, {bus_service, notification}) {
let webNotifTimeouts =... | OCA/web/web_notify/static/src/js/services/notification_services.esm.js/0 | {
"file_path": "OCA/web/web_notify/static/src/js/services/notification_services.esm.js",
"repo_id": "OCA",
"token_count": 704
} | 86 |
/** @odoo-module **/
/* Copyright 2022 Tecnativa - Carlos Roca
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) */
import {Component, useState} from "@odoo/owl";
/**
* @extends Component
*/
export class DropdownItemCustomMeasure extends Component {
setup() {
this.isOpen = useState({v... | OCA/web/web_pivot_computed_measure/static/src/dropdown_item_custom_measure/dropdown_item_custom_measure.esm.js/0 | {
"file_path": "OCA/web/web_pivot_computed_measure/static/src/dropdown_item_custom_measure/dropdown_item_custom_measure.esm.js",
"repo_id": "OCA",
"token_count": 685
} | 87 |
# Copyright 2020 Lorenzo Battistini @ TAKOBI
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
from . import main
from . import service_worker
| OCA/web/web_pwa_oca/controllers/__init__.py/0 | {
"file_path": "OCA/web/web_pwa_oca/controllers/__init__.py",
"repo_id": "OCA",
"token_count": 52
} | 88 |
# Copyright 2020 João Marques
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
import base64
import json
import odoo.tests
from odoo import exceptions
from odoo.modules.module import get_resource_path
class TestUi(odoo.tests.HttpCase):
def setUp(self):
super().setUp()
self.us... | OCA/web/web_pwa_oca/tests/test_web_pwa_oca_controller.py/0 | {
"file_path": "OCA/web/web_pwa_oca/tests/test_web_pwa_oca_controller.py",
"repo_id": "OCA",
"token_count": 2230
} | 89 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_responsive
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-05-17 20:47+0000\n"
"Last-Translator: Bosd <c5e2fd43-d292-4c90-9d1f-74ff3436329a@anonaddy.me>\... | OCA/web/web_responsive/i18n/nl.po/0 | {
"file_path": "OCA/web/web_responsive/i18n/nl.po",
"repo_id": "OCA",
"token_count": 1745
} | 90 |
/* Copyright 2018 Tecnativa - Jairo Llopis
* Copyright 2021 ITerra - Sergey Shebanin
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
// Make enough space for search panel filters buttons
.o_control_panel {
// There is no media breakpoint for XL upper bound
@include media-breakpoint-up(lg) ... | OCA/web/web_responsive/static/src/components/control_panel/control_panel.scss/0 | {
"file_path": "OCA/web/web_responsive/static/src/components/control_panel/control_panel.scss",
"repo_id": "OCA",
"token_count": 4540
} | 91 |
# Save Discard Button
| OCA/web/web_save_discard_button/README.md/0 | {
"file_path": "OCA/web/web_save_discard_button/README.md",
"repo_id": "OCA",
"token_count": 6
} | 92 |
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Save and Discard Button-->
<templates>
<t
t-name="web_save_discard_button.FormStatusIndicator"
t-inherit="web.FormStatusIndicator"
t-inherit-mode="extension"
owl="1"
>
<xpath expr="//button/i[(hasclass('fa-cloud-upload'))]" pos... | OCA/web/web_save_discard_button/static/src/xml/template.xml/0 | {
"file_path": "OCA/web/web_save_discard_button/static/src/xml/template.xml",
"repo_id": "OCA",
"token_count": 272
} | 93 |
# Copyright 2014-2021 Camptocamp SA
# License AGPL-3.0 or later (http://gnu.org/licenses/agpl).
{
"name": "Web Send Message as Popup",
"version": "16.0.1.0.0",
"author": "Camptocamp, Odoo Community Association (OCA)",
"maintainer": "Camptocamp",
"license": "AGPL-3",
"category": "Hidden",
"de... | OCA/web/web_send_message_popup/__manifest__.py/0 | {
"file_path": "OCA/web/web_send_message_popup/__manifest__.py",
"repo_id": "OCA",
"token_count": 212
} | 94 |
This module was written to extend the functionality of the web client
to get full width in the form view sheet.
This module works in community edition and in enterprise edition.
This module feature and many other features and improvements to the web backend
are included in `web_responsive module <https://github.com/O... | OCA/web/web_sheet_full_width/readme/DESCRIPTION.rst/0 | {
"file_path": "OCA/web/web_sheet_full_width/readme/DESCRIPTION.rst",
"repo_id": "OCA",
"token_count": 101
} | 95 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_timeline
#
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"
"Content-Tra... | OCA/web/web_timeline/i18n/web_timeline.pot/0 | {
"file_path": "OCA/web/web_timeline/i18n/web_timeline.pot",
"repo_id": "OCA",
"token_count": 965
} | 96 |
/* global vis, py */
odoo.define("web_timeline.TimelineRenderer", function (require) {
"use strict";
const AbstractRenderer = require("web.AbstractRenderer");
const core = require("web.core");
const time = require("web.time");
const utils = require("web.utils");
const session = require("web.ses... | OCA/web/web_timeline/static/src/js/timeline_renderer.js/0 | {
"file_path": "OCA/web/web_timeline/static/src/js/timeline_renderer.js",
"repo_id": "OCA",
"token_count": 12533
} | 97 |
With this module you can duplicate records directly from the tree view.
| OCA/web/web_tree_duplicate/readme/DESCRIPTION.rst/0 | {
"file_path": "OCA/web/web_tree_duplicate/readme/DESCRIPTION.rst",
"repo_id": "OCA",
"token_count": 14
} | 98 |
Put the mouse pointer over a many2one cell and click the button.
.. image:: ../static/img/clickable.gif
| OCA/web/web_tree_many2one_clickable/readme/USAGE.rst/0 | {
"file_path": "OCA/web/web_tree_many2one_clickable/readme/USAGE.rst",
"repo_id": "OCA",
"token_count": 31
} | 99 |
You need to install the python bokeh library::
pip3 install bokeh==3.1.1
| OCA/web/web_widget_bokeh_chart/readme/INSTALL.rst/0 | {
"file_path": "OCA/web/web_widget_bokeh_chart/readme/INSTALL.rst",
"repo_id": "OCA",
"token_count": 28
} | 100 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_domain_editor_dialog
#
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=UT... | OCA/web/web_widget_domain_editor_dialog/i18n/web_widget_domain_editor_dialog.pot/0 | {
"file_path": "OCA/web/web_widget_domain_editor_dialog/i18n/web_widget_domain_editor_dialog.pot",
"repo_id": "OCA",
"token_count": 298
} | 101 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_dropdown_dynamic
#
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\... | OCA/web/web_widget_dropdown_dynamic/i18n/web_widget_dropdown_dynamic.pot/0 | {
"file_path": "OCA/web/web_widget_dropdown_dynamic/i18n/web_widget_dropdown_dynamic.pot",
"repo_id": "OCA",
"token_count": 226
} | 102 |
from . import ir_config_parameter
| OCA/web/web_widget_image_webcam/models/__init__.py/0 | {
"file_path": "OCA/web/web_widget_image_webcam/models/__init__.py",
"repo_id": "OCA",
"token_count": 10
} | 103 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-07 22:34+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: ... | OCA/web/web_widget_mpld3_chart/i18n/es.po/0 | {
"file_path": "OCA/web/web_widget_mpld3_chart/i18n/es.po",
"repo_id": "OCA",
"token_count": 308
} | 104 |
=======================
Web Widget Numeric Step
=======================
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest... | OCA/web/web_widget_numeric_step/README.rst/0 | {
"file_path": "OCA/web/web_widget_numeric_step/README.rst",
"repo_id": "OCA",
"token_count": 1768
} | 105 |
/** @odoo-module */
import {registry} from "@web/core/registry";
import {standardFieldProps} from "@web/views/fields/standard_field_props";
import {_lt} from "@web/core/l10n/translation";
import {FloatField} from "@web/views/fields/float/float_field";
import {hasTouch} from "@web/core/browser/feature_detection";
expo... | OCA/web/web_widget_numeric_step/static/src/numeric_step.esm.js/0 | {
"file_path": "OCA/web/web_widget_numeric_step/static/src/numeric_step.esm.js",
"repo_id": "OCA",
"token_count": 1154
} | 106 |
# Copyright 2023 Quartile Limited
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from lxml import etree
from odoo import api, models
class Base(models.AbstractModel):
_inherit = "base"
@api.model
def _get_view(self, view_id=None, view_type="form", **options):
arch, view = super... | OCA/web/web_widget_open_tab/models/ir_ui_view.py/0 | {
"file_path": "OCA/web/web_widget_open_tab/models/ir_ui_view.py",
"repo_id": "OCA",
"token_count": 427
} | 107 |
# Copyright 2015 Holger Brunn <hbrunn@therp.nl>
# Copyright 2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# Copyright 2018 Simone Orsi <simone.orsi@camptocamp.com>
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "2D matrix for x2man... | OCA/web/web_widget_x2many_2d_matrix/__manifest__.py/0 | {
"file_path": "OCA/web/web_widget_x2many_2d_matrix/__manifest__.py",
"repo_id": "OCA",
"token_count": 827
} | 108 |
* Holger Brunn <hbrunn@therp.nl>
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
* Artem Kostyuk <a.kostyuk@mobilunity.com>
* Simone Orsi <simone.orsi@camptocamp.com>
* Timon Tschanz <timon.tschanz@camptocamp.com>
* Jairo Llopis <jairo.llopis@tecnativa.com>
* Dennis Sluijk <d.sluijk@onestein.nl>
* `CorporateHub <https://c... | OCA/web/web_widget_x2many_2d_matrix/readme/CONTRIBUTORS.rst/0 | {
"file_path": "OCA/web/web_widget_x2many_2d_matrix/readme/CONTRIBUTORS.rst",
"repo_id": "OCA",
"token_count": 218
} | 109 |
@import "vars";
form#new_project {
p { margin: 0 0 10px 0; }
p.help-block {
font-size: 90%;
color: $gray3;
}
}
// forms lack the padding granted by empty grid columns when in stacked layout.
// add some padding to compensate.
@include iphone-landscape-and-smaller {
form {
padding-left: 10px !impo... | SquareSquash/web/app/assets/stylesheets/_forms.scss/0 | {
"file_path": "SquareSquash/web/app/assets/stylesheets/_forms.scss",
"repo_id": "SquareSquash",
"token_count": 1302
} | 110 |
@import "vars";
// ----- RESPONSIVE
@include ipad-and-larger {
.compact-only { display: none; }
}
@include iphone-landscape-and-smaller {
.full-size-only { display: none; }
}
// ----- LAYOUT
// bleed background colors to the bottom of the page
body {
background-color: white;
font-family: "Helvetica Neue", ... | SquareSquash/web/app/assets/stylesheets/squash.css.scss/0 | {
"file_path": "SquareSquash/web/app/assets/stylesheets/squash.css.scss",
"repo_id": "SquareSquash",
"token_count": 397
} | 111 |
# Copyright 2014 Square Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | SquareSquash/web/app/controllers/emails_controller.rb/0 | {
"file_path": "SquareSquash/web/app/controllers/emails_controller.rb",
"repo_id": "SquareSquash",
"token_count": 1387
} | 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/app/helpers/occurrences_helper.rb/0 | {
"file_path": "SquareSquash/web/app/helpers/occurrences_helper.rb",
"repo_id": "SquareSquash",
"token_count": 668
} | 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/app/models/notification_threshold.rb/0 | {
"file_path": "SquareSquash/web/app/models/notification_threshold.rb",
"repo_id": "SquareSquash",
"token_count": 933
} | 114 |
# encoding: utf-8
# Copyright 2014 Square Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | SquareSquash/web/app/views/accounts/show.html.rb/0 | {
"file_path": "SquareSquash/web/app/views/accounts/show.html.rb",
"repo_id": "SquareSquash",
"token_count": 1835
} | 115 |
There's a new class of exceptions occurring on <%= @bug.environment.project.name %>:
<%= project_environment_bug_url @bug.environment.project, @bug.environment, @bug %>
Project: <%= @bug.environment.project.name %>
Environment: <%= @bug.environment.name %>
Revision: <%= @bug.revision %>
<%= @bug.class_name %>... | SquareSquash/web/app/views/notification_mailer/initial.text.erb/0 | {
"file_path": "SquareSquash/web/app/views/notification_mailer/initial.text.erb",
"repo_id": "SquareSquash",
"token_count": 274
} | 116 |
# encoding: utf-8
# Copyright 2014 Square Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | SquareSquash/web/app/views/sessions/new.html.rb/0 | {
"file_path": "SquareSquash/web/app/views/sessions/new.html.rb",
"repo_id": "SquareSquash",
"token_count": 1431
} | 117 |
---
disabled: true
authentication:
strategy: basic
user: YOUR_USERNAME
password: YOUR_PASSWORD
api_host: "https://yourcompany.com"
api_root: "/jira"
create_issue_details: "/secure/CreateIssueDetails!init.jspa"
| SquareSquash/web/config/environments/common/jira.yml/0 | {
"file_path": "SquareSquash/web/config/environments/common/jira.yml",
"repo_id": "SquareSquash",
"token_count": 74
} | 118 |
---
disabled: true
| SquareSquash/web/config/environments/test/squash_javascript.yml/0 | {
"file_path": "SquareSquash/web/config/environments/test/squash_javascript.yml",
"repo_id": "SquareSquash",
"token_count": 6
} | 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/db/migrate/20130131002457_track_crashes.rb/0 | {
"file_path": "SquareSquash/web/db/migrate/20130131002457_track_crashes.rb",
"repo_id": "SquareSquash",
"token_count": 1425
} | 120 |
---
description: |
Upload Objective-C symbolication data to Squash. This data is generated by
your compiler, and then uploaded to Squash using the `squash_ios_symbolicator`
gem.
responseCodes:
- status: 422
successful: false
description: |
* Missing required parameter.
* Invalid symbolication data.
- ... | SquareSquash/web/doc/fdoc/symbolication-POST.fdoc/0 | {
"file_path": "SquareSquash/web/doc/fdoc/symbolication-POST.fdoc",
"repo_id": "SquareSquash",
"token_count": 753
} | 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/lib/assets/javascripts/form_with_errors.js.coffee/0 | {
"file_path": "SquareSquash/web/lib/assets/javascripts/form_with_errors.js.coffee",
"repo_id": "SquareSquash",
"token_count": 348
} | 122 |
# 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/multithread.rb/0 | {
"file_path": "SquareSquash/web/lib/background_runner/multithread.rb",
"repo_id": "SquareSquash",
"token_count": 528
} | 123 |
# Copyright 2014 Square Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | SquareSquash/web/lib/service/pager_duty.rb/0 | {
"file_path": "SquareSquash/web/lib/service/pager_duty.rb",
"repo_id": "SquareSquash",
"token_count": 2603
} | 124 |
# Copyright 2014 Square Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | SquareSquash/web/lib/workers/occurrences_worker.rb/0 | {
"file_path": "SquareSquash/web/lib/workers/occurrences_worker.rb",
"repo_id": "SquareSquash",
"token_count": 3823
} | 125 |
#!/bin/sh
# 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... | SquareSquash/web/script/all_specs.sh/0 | {
"file_path": "SquareSquash/web/script/all_specs.sh",
"repo_id": "SquareSquash",
"token_count": 2596
} | 126 |
# 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/emails_controller_spec.rb/0 | {
"file_path": "SquareSquash/web/spec/controllers/emails_controller_spec.rb",
"repo_id": "SquareSquash",
"token_count": 2308
} | 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/spec/lib/multithread_spec.rb/0 | {
"file_path": "SquareSquash/web/spec/lib/multithread_spec.rb",
"repo_id": "SquareSquash",
"token_count": 891
} | 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/spec/models/notification_threshold_spec.rb/0 | {
"file_path": "SquareSquash/web/spec/models/notification_threshold_spec.rb",
"repo_id": "SquareSquash",
"token_count": 514
} | 129 |
/* Flot plugin for automatically redrawing plots as the placeholder resizes.
Copyright (c) 2007-2012 IOLA and Ole Laursen.
Licensed under the MIT license.
It works by listening for changes on the placeholder div (through the jQuery
resize event plugin) - if the size changes, it will redraw the plot.
There are no opt... | SquareSquash/web/vendor/assets/javascripts/flot/resize.js/0 | {
"file_path": "SquareSquash/web/vendor/assets/javascripts/flot/resize.js",
"repo_id": "SquareSquash",
"token_count": 1083
} | 130 |
/**
* 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/shBrushCss.js/0 | {
"file_path": "SquareSquash/web/vendor/assets/javascripts/sh/shBrushCss.js",
"repo_id": "SquareSquash",
"token_count": 1987
} | 131 |
/**
* 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/shBrushRuby.js/0 | {
"file_path": "SquareSquash/web/vendor/assets/javascripts/sh/shBrushRuby.js",
"repo_id": "SquareSquash",
"token_count": 814
} | 132 |
module Configoro
class Hash < HashWithIndifferentAccess
# @private
def initialize(hsh={})
if hsh.kind_of?(::Hash) then
super()
update hsh
else
super
end
end
# Deep-merges additional hash entries into this hash.
#
# @return [Configoro::Hash] This obje... | SquareSquash/web/vendor/configoro/hash.rb/0 | {
"file_path": "SquareSquash/web/vendor/configoro/hash.rb",
"repo_id": "SquareSquash",
"token_count": 2064
} | 133 |
# Build directories
build
dist
jslib
# External libraries / auto synced locales
src/locales
src/404/*.min.css
# Github Workflows
.github/workflows
| bitwarden/web/.prettierignore/0 | {
"file_path": "bitwarden/web/.prettierignore",
"repo_id": "bitwarden",
"token_count": 50
} | 134 |
import { Component } from "@angular/core";
import { BaseCvaComponent } from "./base-cva.component";
/** For use in the SSO Config Form only - will be deprecated by the Component Library */
@Component({
selector: "app-input-checkbox",
templateUrl: "input-checkbox.component.html",
})
export class InputCheckboxCompo... | bitwarden/web/bitwarden_license/src/app/organizations/components/input-checkbox.component.ts/0 | {
"file_path": "bitwarden/web/bitwarden_license/src/app/organizations/components/input-checkbox.component.ts",
"repo_id": "bitwarden",
"token_count": 97
} | 135 |
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
import { ValidationService } from "jslib-angular/services/validation.service";
import { I18nService } from "jslib-common/abstractions/i18n.service";
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
im... | bitwarden/web/bitwarden_license/src/app/providers/clients/add-organization.component.ts/0 | {
"file_path": "bitwarden/web/bitwarden_license/src/app/providers/clients/add-organization.component.ts",
"repo_id": "bitwarden",
"token_count": 826
} | 136 |
import { Component, OnInit, ViewChild, ViewContainerRef } from "@angular/core";
import { ActivatedRoute, Router } from "@angular/router";
import { first } from "rxjs/operators";
import { SearchPipe } from "jslib-angular/pipes/search.pipe";
import { UserNamePipe } from "jslib-angular/pipes/user-name.pipe";
import { Mod... | bitwarden/web/bitwarden_license/src/app/providers/manage/people.component.ts/0 | {
"file_path": "bitwarden/web/bitwarden_license/src/app/providers/manage/people.component.ts",
"repo_id": "bitwarden",
"token_count": 3641
} | 137 |
const { AngularWebpackPlugin } = require("@ngtools/webpack");
const webpackConfig = require("../webpack.config");
webpackConfig.entry["app/main"] = "./bitwarden_license/src/app/main.ts";
webpackConfig.plugins[webpackConfig.plugins.length - 1] = new AngularWebpackPlugin({
tsConfigPath: "tsconfig.json",
entryModule... | bitwarden/web/bitwarden_license/webpack.config.js/0 | {
"file_path": "bitwarden/web/bitwarden_license/webpack.config.js",
"repo_id": "bitwarden",
"token_count": 141
} | 138 |
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" class="container" ngNativeValidate>
<div class="row justify-content-md-center mt-5">
<div class="col-5">
<p class="lead text-center mb-4">{{ "recoverAccountTwoStep" | i18n }}</p>
<div class="card">
<div class="card-body">
... | bitwarden/web/src/app/accounts/recover-two-factor.component.html/0 | {
"file_path": "bitwarden/web/src/app/accounts/recover-two-factor.component.html",
"repo_id": "bitwarden",
"token_count": 1436
} | 139 |
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate autocomplete="off">
<div class="row justify-content-md-center mt-5">
<div class="col-4">
<p class="lead text-center mb-4">{{ "updateMasterPassword" | i18n }}</p>
<div class="card d-block">
<div class="card-body">
... | bitwarden/web/src/app/accounts/update-temp-password.component.html/0 | {
"file_path": "bitwarden/web/src/app/accounts/update-temp-password.component.html",
"repo_id": "bitwarden",
"token_count": 2319
} | 140 |
<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()">
<div class="modal-header">
<h2 class="modal-title" id="confirmUserTitle">
... | bitwarden/web/src/app/components/password-reprompt.component.html/0 | {
"file_path": "bitwarden/web/src/app/components/password-reprompt.component.html",
"repo_id": "bitwarden",
"token_count": 991
} | 141 |
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="userAccessTitle">
<div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
<form
class="modal-content"
#form
(ngSubmit)="submit()"
[appApiAction]="formPromise"
ngNativeValidate
>
<di... | bitwarden/web/src/app/modules/organizations/manage/entity-users.component.html/0 | {
"file_path": "bitwarden/web/src/app/modules/organizations/manage/entity-users.component.html",
"repo_id": "bitwarden",
"token_count": 4159
} | 142 |
import { Component } from "@angular/core";
import { OrganizationFilterComponent as BaseOrganizationFilterComponent } from "jslib-angular/modules/vault-filter/components/organization-filter.component";
@Component({
selector: "app-organization-filter",
templateUrl: "organization-filter.component.html",
})
export cl... | bitwarden/web/src/app/modules/vault-filter/components/organization-filter.component.ts/0 | {
"file_path": "bitwarden/web/src/app/modules/vault-filter/components/organization-filter.component.ts",
"repo_id": "bitwarden",
"token_count": 108
} | 143 |
import { NgModule } from "@angular/core";
import { SharedModule } from "../../../shared.module";
import { OrganizationNameBadgeComponent } from "./organization-name-badge.component";
@NgModule({
imports: [SharedModule],
declarations: [OrganizationNameBadgeComponent],
exports: [OrganizationNameBadgeComponent],
... | bitwarden/web/src/app/modules/vault/modules/organization-badge/organization-badge.module.ts/0 | {
"file_path": "bitwarden/web/src/app/modules/vault/modules/organization-badge/organization-badge.module.ts",
"repo_id": "bitwarden",
"token_count": 101
} | 144 |
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="bulkTitle">
<div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title" id="bulkTitle">
{{ "bulkConfirmStatus" | i18n }}
... | bitwarden/web/src/app/organizations/manage/bulk/bulk-status.component.html/0 | {
"file_path": "bitwarden/web/src/app/organizations/manage/bulk/bulk-status.component.html",
"repo_id": "bitwarden",
"token_count": 1116
} | 145 |
import { Component } from "@angular/core";
// Component is used so that the SVG can embed CSS color variables
@Component({
selector: "app-image-org-subscription-hidden",
templateUrl: "image-subscription-hidden.component.svg",
})
export class ImageSubscriptionHiddenComponent {}
| bitwarden/web/src/app/organizations/settings/image-subscription-hidden.component.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/settings/image-subscription-hidden.component.ts",
"repo_id": "bitwarden",
"token_count": 75
} | 146 |
import { Component } from "@angular/core";
import { ActivatedRoute } from "@angular/router";
import { ModalService } from "jslib-angular/services/modal.service";
import { CipherService } from "jslib-common/abstractions/cipher.service";
import { MessagingService } from "jslib-common/abstractions/messaging.service";
imp... | bitwarden/web/src/app/organizations/tools/reused-passwords-report.component.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/tools/reused-passwords-report.component.ts",
"repo_id": "bitwarden",
"token_count": 626
} | 147 |
import { Directive, ViewChild, ViewContainerRef } from "@angular/core";
import { ModalService } from "jslib-angular/services/modal.service";
import { MessagingService } from "jslib-common/abstractions/messaging.service";
import { PasswordRepromptService } from "jslib-common/abstractions/passwordReprompt.service";
impo... | bitwarden/web/src/app/reports/cipher-report.component.ts/0 | {
"file_path": "bitwarden/web/src/app/reports/cipher-report.component.ts",
"repo_id": "bitwarden",
"token_count": 1242
} | 148 |
<div class="page-header">
<h1>
{{ "weakPasswordsReport" | i18n }}
<small *ngIf="hasLoaded && loading">
<i
class="bwi bwi-spinner bwi-spin text-muted"
title="{{ 'loading' | i18n }}"
aria-hidden="true"
></i>
<span class="sr-only">{{ "loading" | i18n }}</span>
</smal... | bitwarden/web/src/app/reports/weak-passwords-report.component.html/0 | {
"file_path": "bitwarden/web/src/app/reports/weak-passwords-report.component.html",
"repo_id": "bitwarden",
"token_count": 1425
} | 149 |
<div class="page-header">
<h1>{{ "myAccount" | i18n }}</h1>
</div>
<app-profile></app-profile>
<ng-container *ngIf="showChangeEmail">
<div class="secondary-header">
<h1>{{ "changeEmail" | i18n }}</h1>
</div>
<app-change-email></app-change-email>
</ng-container>
<div class="secondary-header text-danger borde... | bitwarden/web/src/app/settings/account.component.html/0 | {
"file_path": "bitwarden/web/src/app/settings/account.component.html",
"repo_id": "bitwarden",
"token_count": 431
} | 150 |
<div class="tabbed-header">
<h1>{{ "changeMasterPassword" | i18n }}</h1>
</div>
<bit-callout type="warning">{{ "loggedOutWarning" | i18n }}</bit-callout>
<app-callout
type="info"
[enforcedPolicyOptions]="enforcedPolicyOptions"
*ngIf="enforcedPolicyOptions"
>
</app-callout>
<form #form (ngSubmit)="submit()" [a... | bitwarden/web/src/app/settings/change-password.component.html/0 | {
"file_path": "bitwarden/web/src/app/settings/change-password.component.html",
"repo_id": "bitwarden",
"token_count": 1337
} | 151 |
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
import { ChangePasswordComponent } from "jslib-angular/components/change-password.component";
import { ApiService } from "jslib-common/abstractions/api.service";
import { CryptoService } from "jslib-common/abstractions/crypto.service";
imp... | bitwarden/web/src/app/settings/emergency-access-takeover.component.ts/0 | {
"file_path": "bitwarden/web/src/app/settings/emergency-access-takeover.component.ts",
"repo_id": "bitwarden",
"token_count": 1346
} | 152 |
<div *ngIf="loading">
<i
class="bwi bwi-spinner bwi-spin text-muted"
title="{{ 'loading' | i18n }}"
aria-hidden="true"
></i>
<span class="sr-only">{{ "loading" | i18n }}</span>
</div>
<form
*ngIf="profile && !loading"
#form
(ngSubmit)="submit()"
[appApiAction]="formPromise"
ngNativeValidate
... | bitwarden/web/src/app/settings/profile.component.html/0 | {
"file_path": "bitwarden/web/src/app/settings/profile.component.html",
"repo_id": "bitwarden",
"token_count": 1066
} | 153 |
<div class="tabbed-nav d-flex flex-column" *ngIf="!selfHosted">
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link" [routerLink]="subscriptionRoute" routerLinkActive="active">
{{ "subscription" | i18n }}
</a>
</li>
<li class="nav-item">
<a class="nav-link" routerL... | bitwarden/web/src/app/settings/subscription.component.html/0 | {
"file_path": "bitwarden/web/src/app/settings/subscription.component.html",
"repo_id": "bitwarden",
"token_count": 284
} | 154 |
import { Component, EventEmitter, Input, Output } from "@angular/core";
import { ApiService } from "jslib-common/abstractions/api.service";
import { LogService } from "jslib-common/abstractions/log.service";
import { UserVerificationService } from "jslib-common/abstractions/userVerification.service";
import { TwoFacto... | bitwarden/web/src/app/settings/two-factor-verify.component.ts/0 | {
"file_path": "bitwarden/web/src/app/settings/two-factor-verify.component.ts",
"repo_id": "bitwarden",
"token_count": 1171
} | 155 |
import { Component } 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/abstractions/platfo... | bitwarden/web/src/app/settings/verify-email.component.ts/0 | {
"file_path": "bitwarden/web/src/app/settings/verify-email.component.ts",
"repo_id": "bitwarden",
"token_count": 413
} | 156 |
import { Component } from "@angular/core";
import { AttachmentsComponent as BaseAttachmentsComponent } from "jslib-angular/components/attachments.component";
import { ApiService } from "jslib-common/abstractions/api.service";
import { CipherService } from "jslib-common/abstractions/cipher.service";
import { CryptoServ... | bitwarden/web/src/app/vault/attachments.component.ts/0 | {
"file_path": "bitwarden/web/src/app/vault/attachments.component.ts",
"repo_id": "bitwarden",
"token_count": 562
} | 157 |
import { Component } from "@angular/core";
import { FolderAddEditComponent as BaseFolderAddEditComponent } from "jslib-angular/components/folder-add-edit.component";
import { FolderService } from "jslib-common/abstractions/folder.service";
import { I18nService } from "jslib-common/abstractions/i18n.service";
import { ... | bitwarden/web/src/app/vault/folder-add-edit.component.ts/0 | {
"file_path": "bitwarden/web/src/app/vault/folder-add-edit.component.ts",
"repo_id": "bitwarden",
"token_count": 273
} | 158 |
@import "../scss/styles.scss";
| bitwarden/web/src/connectors/sso.scss/0 | {
"file_path": "bitwarden/web/src/connectors/sso.scss",
"repo_id": "bitwarden",
"token_count": 13
} | 159 |
{
"pageTitle": {
"message": "$APP_NAME$ Veb Trezor",
"description": "The title of the website in the browser window.",
"placeholders": {
"app_name": {
"content": "$1",
"example": "Bitwarden"
}
}
},
"whatTypeOfItem": {
"message": "Kog je tipa ovaj unos?"
},
"name... | bitwarden/web/src/locales/sr/messages.json/0 | {
"file_path": "bitwarden/web/src/locales/sr/messages.json",
"repo_id": "bitwarden",
"token_count": 51305
} | 160 |
::-ms-reveal {
display: none;
}
::placeholder {
@include themify($themes) {
color: themed("inputPlaceholderColor");
}
}
input,
select,
textarea {
&:required {
box-shadow: none;
}
}
input[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: -cancel-button;
}
label:not(.form-check-la... | bitwarden/web/src/scss/forms.scss/0 | {
"file_path": "bitwarden/web/src/scss/forms.scss",
"repo_id": "bitwarden",
"token_count": 2011
} | 161 |
import { CipherData } from "jslib-common/models/data/cipherData";
import { CollectionData } from "jslib-common/models/data/collectionData";
import { FolderData } from "jslib-common/models/data/folderData";
import { SendData } from "jslib-common/models/data/sendData";
import { StorageOptions } from "jslib-common/models/... | bitwarden/web/src/services/state.service.ts/0 | {
"file_path": "bitwarden/web/src/services/state.service.ts",
"repo_id": "bitwarden",
"token_count": 1207
} | 162 |
<?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/bean/pom.xml/0 | {
"file_path": "chwshuang/web/bean/pom.xml",
"repo_id": "chwshuang",
"token_count": 244
} | 163 |
package web
import (
"bytes"
"log"
"regexp"
"testing"
)
func TestLoggerMiddleware(t *testing.T) {
var buf bytes.Buffer
Logger = log.New(&buf, "", 0)
router := New(Context{})
router.Middleware(LoggerMiddleware)
router.Get("/action", (*Context).A)
// Hit an action:
rw, req := newTestRequest("GET", "/action... | gocraft/web/logger_middleware_test.go/0 | {
"file_path": "gocraft/web/logger_middleware_test.go",
"repo_id": "gocraft",
"token_count": 379
} | 164 |
package web
import (
"io/ioutil"
"os"
"path/filepath"
"strings"
"testing"
)
func TestStaticMiddleware(t *testing.T) {
currentRoot, _ := os.Getwd()
router := New(Context{})
router.Middleware(StaticMiddleware(currentRoot))
router.Get("/action", (*Context).A)
// Make sure we can still hit actions:
rw, req :... | gocraft/web/static_middleware_test.go/0 | {
"file_path": "gocraft/web/static_middleware_test.go",
"repo_id": "gocraft",
"token_count": 1125
} | 165 |
# Contributing
## Getting Started
> This project adheres to the Contributor Covenant [code of conduct](./CODE_OF_CONDUCT.md). By participating in this project, you agree to abide by its terms.
First, create a fork of the [modernweb-dev/web](https://github.com/modernweb-dev/web) repository by hitting the `fork` butto... | modernweb-dev/web/CONTRIBUTING.md/0 | {
"file_path": "modernweb-dev/web/CONTRIBUTING.md",
"repo_id": "modernweb-dev",
"token_count": 1014
} | 166 |
---
title: Modern Web Blog
pageTitle: Modern Web Blog
layout: layout-blog-overview
eleventyNavigation:
key: Blog
order: 30
pagination:
data: collections.blog
size: 10
reverse: true
alias: posts
---
Discover articles from the core team and contributors about Modern Web, tips, and tricks included!
Do you wa... | modernweb-dev/web/docs/blog/index.md/0 | {
"file_path": "modernweb-dev/web/docs/blog/index.md",
"repo_id": "modernweb-dev",
"token_count": 199
} | 167 |
# Dev Server ||2
| modernweb-dev/web/docs/docs/dev-server/index.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/dev-server/index.md",
"repo_id": "modernweb-dev",
"token_count": 6
} | 168 |
# Dev Server >> Writing Plugins >> Web Sockets ||4
The dev server has a web socket API for communicating with the browser. To use web sockets, your plugin must set the `injectWebSocket` option to `true`. If one plugin has this option set, a web socket script will be injected into the pages server by the dev server.
A... | modernweb-dev/web/docs/docs/dev-server/writing-plugins/web-sockets.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/dev-server/writing-plugins/web-sockets.md",
"repo_id": "modernweb-dev",
"token_count": 1482
} | 169 |
# Test Runner >> Browser Launchers >> Write Your Own ||90
A browser launcher handles booting up or connecting to a browser, visiting a URL and closing the browser when tests finish.
If you want to implement your own browser launcher, it's best to look at the [interface in the source code](https://github.com/modernweb... | modernweb-dev/web/docs/docs/test-runner/browser-launchers/write-your-own.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/test-runner/browser-launchers/write-your-own.md",
"repo_id": "modernweb-dev",
"token_count": 153
} | 170 |
# Test Runner >> Writing Tests >> Code Coverage ||40
You can run tests with code coverage using the `--coverage` flag:
```
wtr test/**/*.test.js --coverage
```
In the config you can define code coverage thresholds, the test run fails if you drop below this level. You can also configure where and if the detailed test... | modernweb-dev/web/docs/docs/test-runner/writing-tests/code-coverage.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/test-runner/writing-tests/code-coverage.md",
"repo_id": "modernweb-dev",
"token_count": 1088
} | 171 |
# Going Buildless >> CSS ||30
```js script
// TODO: find out why this is needed?
import { html } from 'lit-html';
```
<abbr>CSS</abbr> stands for "Cascading Style Sheets", and it is the primary way to design web content, whether visually or audially.
The purpose of this document isn't to provide a comprehensive tuto... | modernweb-dev/web/docs/guides/going-buildless/css.md/0 | {
"file_path": "modernweb-dev/web/docs/guides/going-buildless/css.md",
"repo_id": "modernweb-dev",
"token_count": 1464
} | 172 |
const { createSocialImage } = require('@rocket/cli');
module.exports = async () => {
const socialMediaImage = await createSocialImage({
createSocialImageSvg: async ({ logo }) => {
return `
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 630" style="fill: #ecedef;">
<defs/>
... | modernweb-dev/web/docs/index.11tydata.cjs/0 | {
"file_path": "modernweb-dev/web/docs/index.11tydata.cjs",
"repo_id": "modernweb-dev",
"token_count": 485
} | 173 |
import { expect } from '../../../../../node_modules/@esm-bundle/chai/esm/chai.js';
it('can run a test with focus b', 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-b.test.js/0 | {
"file_path": "modernweb-dev/web/integration/test-runner/tests/focus/browser-tests/focus-b.test.js",
"repo_id": "modernweb-dev",
"token_count": 154
} | 174 |
import { expect } from '../../../../../node_modules/@esm-bundle/chai/esm/chai.js';
import './shared-a.js';
it('object diff A', () => {
expect({ a: '1', b: '2', c: '3' }).to.equal({ a: '1', b: '4', c: '3' });
});
it('object diff B', () => {
expect({ a: '1', b: '2', c: '3' }).to.equal('lol');
});
it('object diff C... | modernweb-dev/web/integration/test-runner/tests/test-failure/browser-tests/fail-object-diff.test.js/0 | {
"file_path": "modernweb-dev/web/integration/test-runner/tests/test-failure/browser-tests/fail-object-diff.test.js",
"repo_id": "modernweb-dev",
"token_count": 200
} | 175 |
import fs from 'fs';
import path from 'path';
const REGEXP_SOURCE_MAP = /\/\/# sourceMappingURL=.*/;
const serializeScript = fs
.readFileSync(path.resolve(__dirname, 'serialize.js'), 'utf-8')
.replace(REGEXP_SOURCE_MAP, '');
const logUncaughtErrorsScript = fs
.readFileSync(path.resolve(__dirname, 'logUncaughtEr... | modernweb-dev/web/packages/browser-logs/src/browserScript.ts/0 | {
"file_path": "modernweb-dev/web/packages/browser-logs/src/browserScript.ts",
"repo_id": "modernweb-dev",
"token_count": 269
} | 176 |
const { pathToFileURL } = require('url');
const ConfigLoaderError = require('./ConfigLoaderError');
// These strings may be node-version dependent and need updating over time
// They're just to display a helpful error message
const CJS_ERRORS = [
'ReferenceError: module is not defined',
'ReferenceError: require is... | modernweb-dev/web/packages/config-loader/src/importConfig.js/0 | {
"file_path": "modernweb-dev/web/packages/config-loader/src/importConfig.js",
"repo_id": "modernweb-dev",
"token_count": 405
} | 177 |
export default { foo: 'bar' };
| modernweb-dev/web/packages/config-loader/test/fixtures/package-mjs/module-in-.mjs/my-project.config.mjs/0 | {
"file_path": "modernweb-dev/web/packages/config-loader/test/fixtures/package-mjs/module-in-.mjs/my-project.config.mjs",
"repo_id": "modernweb-dev",
"token_count": 10
} | 178 |
// reexports of types from internal libraries
export { FSWatcher } from 'chokidar';
export { default as Koa, Context, Middleware } from 'koa';
export { Server } from 'net';
import WebSocket from 'ws';
export { WebSocket };
export { DevServer } from './server/DevServer.js';
export { Plugin, ServerStartParams, ResolveOp... | modernweb-dev/web/packages/dev-server-core/src/index.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/src/index.ts",
"repo_id": "modernweb-dev",
"token_count": 264
} | 179 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.