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" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" #. module: web_ir_actions_act_multi #: model:ir.model.fields,field_description:web_ir_actions_act_multi.field_ir_actions_act_multi__help msgid "Action Description" msgstr "" #. module: web_ir_actions_act_multi #: model:ir.model,name:web_ir_actions_act_multi.model_ir_actions_act_multi msgid "Action Mulit" msgstr "" #. module: web_ir_actions_act_multi #: model:ir.model.fields,field_description:web_ir_actions_act_multi.field_ir_actions_act_multi__name msgid "Action Name" msgstr "" #. module: web_ir_actions_act_multi #: model:ir.model.fields,field_description:web_ir_actions_act_multi.field_ir_actions_act_multi__type msgid "Action Type" msgstr "" #. module: web_ir_actions_act_multi #: model:ir.model.fields,field_description:web_ir_actions_act_multi.field_ir_actions_act_multi__binding_model_id msgid "Binding Model" msgstr "" #. module: web_ir_actions_act_multi #: model:ir.model.fields,field_description:web_ir_actions_act_multi.field_ir_actions_act_multi__binding_type msgid "Binding Type" msgstr "" #. module: web_ir_actions_act_multi #: model:ir.model.fields,field_description:web_ir_actions_act_multi.field_ir_actions_act_multi__binding_view_types msgid "Binding View Types" msgstr "" #. module: web_ir_actions_act_multi #: model:ir.model.fields,field_description:web_ir_actions_act_multi.field_ir_actions_act_multi__create_uid msgid "Created by" msgstr "" #. module: web_ir_actions_act_multi #: model:ir.model.fields,field_description:web_ir_actions_act_multi.field_ir_actions_act_multi__create_date msgid "Created on" msgstr "" #. module: web_ir_actions_act_multi #: model:ir.model.fields,field_description:web_ir_actions_act_multi.field_ir_actions_act_multi__display_name msgid "Display Name" msgstr "" #. module: web_ir_actions_act_multi #: model:ir.model.fields,field_description:web_ir_actions_act_multi.field_ir_actions_act_multi__xml_id msgid "External ID" msgstr "" #. module: web_ir_actions_act_multi #: model:ir.model.fields,field_description:web_ir_actions_act_multi.field_ir_actions_act_multi__id msgid "ID" msgstr "" #. module: web_ir_actions_act_multi #: model:ir.model.fields,field_description:web_ir_actions_act_multi.field_ir_actions_act_multi____last_update msgid "Last Modified on" msgstr "" #. module: web_ir_actions_act_multi #: model:ir.model.fields,field_description:web_ir_actions_act_multi.field_ir_actions_act_multi__write_uid msgid "Last Updated by" msgstr "" #. module: web_ir_actions_act_multi #: model:ir.model.fields,field_description:web_ir_actions_act_multi.field_ir_actions_act_multi__write_date msgid "Last Updated on" msgstr "" #. module: web_ir_actions_act_multi #: model:ir.model.fields,help:web_ir_actions_act_multi.field_ir_actions_act_multi__help msgid "" "Optional help text for the users with a description of the target view, such" " as its usage and purpose." msgstr "" #. module: web_ir_actions_act_multi #: model:ir.model.fields,help:web_ir_actions_act_multi.field_ir_actions_act_multi__binding_model_id msgid "" "Setting a value makes this action available in the sidebar for the given " "model." msgstr ""
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.dynapps.be>`_: * Koen Loodts * Raf Ven
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-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" #. module: web_ir_actions_act_window_page #: model:ir.model,name:web_ir_actions_act_window_page.model_ir_actions_act_window_page_next msgid "Action to page to the next record from a form view button" msgstr "" #. module: web_ir_actions_act_window_page #: model:ir.model,name:web_ir_actions_act_window_page.model_ir_actions_act_window_page_prev msgid "Action to page to the previous record from a form view button" msgstr "" #. module: web_ir_actions_act_window_page #: model:ir.model,name:web_ir_actions_act_window_page.model_ir_actions_act_window_page_list msgid "Action to switch to the list view" msgstr "" #. module: web_ir_actions_act_window_page #: model_terms:ir.ui.view,arch_db:web_ir_actions_act_window_page.view_partner_form msgid "Next Partner" msgstr "" #. module: web_ir_actions_act_window_page #: model:ir.actions.server,name:web_ir_actions_act_window_page.demo_pager_next msgid "Next partner" msgstr "" #. module: web_ir_actions_act_window_page #: model_terms:ir.ui.view,arch_db:web_ir_actions_act_window_page.view_partner_form msgid "Previous Partner" msgstr "" #. module: web_ir_actions_act_window_page #: model:ir.actions.server,name:web_ir_actions_act_window_page.demo_pager_previous msgid "Previous partner" msgstr ""
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-Revision-Date: 2018-01-03 03:50+0000\n" "Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n" "Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" "Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: web_m2x_options #. odoo-javascript #: code:addons/web_m2x_options/static/src/components/base.xml:0 #, python-format msgid ", are you sure it does not exist yet?" msgstr "" #. module: web_m2x_options #. odoo-javascript #: code:addons/web_m2x_options/static/src/components/base.xml:0 #, python-format msgid "Create" msgstr "" #. module: web_m2x_options #. odoo-javascript #: code:addons/web_m2x_options/static/src/components/relational_utils.esm.js:0 #, python-format msgid "Create \"%s\"" msgstr "" #. module: web_m2x_options #. odoo-javascript #: code:addons/web_m2x_options/static/src/components/base.xml:0 #, python-format msgid "Create and Edit" msgstr "" #. module: web_m2x_options #. odoo-javascript #: code:addons/web_m2x_options/static/src/components/relational_utils.esm.js:0 #, python-format msgid "Create and edit..." msgstr "" #. module: web_m2x_options #. odoo-javascript #: code:addons/web_m2x_options/static/src/components/base.xml:0 #, python-format msgid "Discard" msgstr "" #. module: web_m2x_options #: model:ir.model,name:web_m2x_options.model_ir_http msgid "HTTP Routing" msgstr "" #. module: web_m2x_options #. odoo-javascript #: code:addons/web_m2x_options/static/src/components/form.esm.js:0 #, python-format msgid "New: %s" msgstr "" #. module: web_m2x_options #. odoo-javascript #: code:addons/web_m2x_options/static/src/components/relational_utils.esm.js:0 #, python-format msgid "No records" msgstr "" #. module: web_m2x_options #. odoo-javascript #: code:addons/web_m2x_options/static/src/components/form.esm.js:0 #, python-format msgid "Open: " msgstr "" #. module: web_m2x_options #. odoo-javascript #: code:addons/web_m2x_options/static/src/components/relational_utils.esm.js:0 #, python-format msgid "Search More..." msgstr "Hae lisää..." #. module: web_m2x_options #. odoo-javascript #: code:addons/web_m2x_options/static/src/components/relational_utils.esm.js:0 #, python-format msgid "Start typing..." msgstr "" #. module: web_m2x_options #: model:ir.model,name:web_m2x_options.model_ir_config_parameter msgid "System Parameter" msgstr "" #. module: web_m2x_options #. odoo-javascript #: code:addons/web_m2x_options/static/src/components/base.xml:0 #, python-format msgid "You are creating a new" msgstr "" #. module: web_m2x_options #. odoo-javascript #: code:addons/web_m2x_options/static/src/components/base.xml:0 #, python-format msgid "as a new" msgstr "" #, python-format #~ msgid "Cancel" #~ msgstr "Peru" #, python-format #~ msgid "Create \"<strong>%s</strong>\"" #~ msgstr "Luo \"<strong>%s</strong>\"" #, python-format #~ msgid "Create and Edit..." #~ msgstr "Luo ja muokkaa..."
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 prevent the dialog box poping in case of validation error. If not specified, the module will avoid proposing any of the create options if the current user has no permission rights to create the related object.
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" "Language-Team: none\n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.3.2\n" #. module: web_notify #. odoo-python #: code:addons/web_notify/models/res_users.py:0 #, python-format msgid "Danger" msgstr "Gevaar" #. module: web_notify #. odoo-python #: code:addons/web_notify/models/res_users.py:0 #, python-format msgid "Default" msgstr "Standaard" #. module: web_notify #. odoo-python #: code:addons/web_notify/models/res_users.py:0 #, python-format msgid "Information" msgstr "Informatie" #. module: web_notify #: model:ir.model.fields,field_description:web_notify.field_res_users__notify_danger_channel_name msgid "Notify Danger Channel Name" msgstr "" #. module: web_notify #: model:ir.model.fields,field_description:web_notify.field_res_users__notify_default_channel_name msgid "Notify Default Channel Name" msgstr "" #. module: web_notify #: model:ir.model.fields,field_description:web_notify.field_res_users__notify_info_channel_name msgid "Notify Info Channel Name" msgstr "" #. module: web_notify #: model:ir.model.fields,field_description:web_notify.field_res_users__notify_success_channel_name msgid "Notify Success Channel Name" msgstr "" #. module: web_notify #: model:ir.model.fields,field_description:web_notify.field_res_users__notify_warning_channel_name msgid "Notify Warning Channel Name" msgstr "" #. module: web_notify #. odoo-python #: code:addons/web_notify/models/res_users.py:0 #, python-format msgid "Sending a notification to another user is forbidden." msgstr "" #. module: web_notify #. odoo-python #: code:addons/web_notify/models/res_users.py:0 #, python-format msgid "Success" msgstr "Success" #. module: web_notify #: model_terms:ir.ui.view,arch_db:web_notify.view_users_form_simple_modif_inherit msgid "Test danger notification" msgstr "" #. module: web_notify #: model_terms:ir.ui.view,arch_db:web_notify.view_users_form_simple_modif_inherit msgid "Test default notification" msgstr "" #. module: web_notify #: model_terms:ir.ui.view,arch_db:web_notify.view_users_form_simple_modif_inherit msgid "Test info notification" msgstr "" #. module: web_notify #: model_terms:ir.ui.view,arch_db:web_notify.view_users_form_simple_modif_inherit msgid "Test success notification" msgstr "" #. module: web_notify #: model_terms:ir.ui.view,arch_db:web_notify.view_users_form_simple_modif_inherit msgid "Test warning notification" msgstr "" #. module: web_notify #: model_terms:ir.ui.view,arch_db:web_notify.view_users_form_simple_modif_inherit msgid "Test web notify" msgstr "" #. module: web_notify #: model:ir.model,name:web_notify.model_res_users msgid "User" msgstr "" #. module: web_notify #. odoo-python #: code:addons/web_notify/models/res_users.py:0 #, python-format msgid "Warning" msgstr "Waarschuwing" #~ msgid "Users" #~ msgstr "Gebruikers" #~ msgid "Display Name" #~ msgstr "Weergavenaam" #~ msgid "ID" #~ msgstr "ID" #~ msgid "Last Modified on" #~ msgstr "Laatst Gewijzigd op"
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 = {}; /** * Displays the web notification on user's screen */ function displaywebNotification(notifications) { Object.values(webNotifTimeouts).forEach((notif) => browser.clearTimeout(notif) ); webNotifTimeouts = {}; notifications.forEach(function (notif) { browser.setTimeout(function () { notification.add(Markup(notif.message), { title: notif.title, type: notif.type, sticky: notif.sticky, className: notif.className, }); }); }); } bus_service.addEventListener("notification", ({detail: notifications}) => { for (const {payload, type} of notifications) { if (type === "web.notify") { displaywebNotification(payload); } } }); bus_service.start(); }, }; registry.category("services").add("webNotification", webNotificationService);
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({value: false}); } onClickComputedMeasure() { this.isOpen.value = !this.isOpen.value; } addMeasure(ev) { const $target = $(ev.target).closest("#add_computed_measure_wrapper"); const id = new Date().getTime(); const field1 = $target.find("#computed_measure_field_1").val(); const field2 = $target.find("#computed_measure_field_2").val(); let operation = $target.find("#computed_measure_operation").val(); if (operation === "custom") { operation = $target.find("#computed_measure_operation_custom").val(); } const name = $target.find("#computed_measure_name").val(); const format = $target.find("#computed_measure_format").val(); this.props.model.addComputedMeasure( id, field1, field2, operation, name, format ); // Click on measures button to close the modal and recompute the measures added $(ev.target).closest(".dropdown").find(".dropdown-toggle").trigger("click"); } } DropdownItemCustomMeasure.template = "web_pivot_computed_measure.DropdownItemCustomMeasure"; DropdownItemCustomMeasure.props = { measures: Object, // Set as model because this module can be extended to be used on views that // uses Measures like the graph view. model: Object, };
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.user = self.env.ref("base.user_admin") self.res_config_settings_obj = ( self.env["res.config.settings"].with_user(self.user).create({}) ) def test_manifest_valid_json(self): # Call the manifest controller manifest_data = self.url_open("/web_pwa_oca/manifest.webmanifest") # should be valid json manifest_content_str = manifest_data.content.decode("utf-8") json.loads(manifest_content_str) def test_manifest_correct_paramenters(self): # Set PWA parameters in settings self.res_config_settings_obj.pwa_name = "Test PWA" self.res_config_settings_obj.pwa_short_name = "Test" # icon should remain the default one self.res_config_settings_obj.pwa_icon = False self.res_config_settings_obj.set_values() # Call the manifest controller manifest_data = self.url_open("/web_pwa_oca/manifest.webmanifest") manifest_content_str = manifest_data.content.decode("utf-8") manifest_content = json.loads(manifest_content_str) self.assertEqual(manifest_content["name"], "Test PWA") self.assertEqual(manifest_content["short_name"], "Test") # icon should remain the default one self.assertEqual( manifest_content["icons"][0]["src"], "/web_pwa_oca/static/img/icons/icon-128x128.png", ) self.assertEqual(manifest_content["icons"][0]["sizes"], "128x128") self.assertTrue(manifest_content["icons"][0]["type"].startswith("image/png")) def test_manifest_logo_upload(self): with open( "%s/static/img/icons/odoo_logo.svg" % get_resource_path("web_pwa_oca"), "rb" ) as fi: icon_to_send = base64.b64encode(fi.read()) # Set PWA icon in settings self.res_config_settings_obj.pwa_icon = icon_to_send self.res_config_settings_obj.set_values() # Call the manifest controller manifest_data = self.url_open("/web_pwa_oca/manifest.webmanifest") manifest_content_str = manifest_data.content.decode("utf-8") manifest_content = json.loads(manifest_content_str) self.assertEqual(manifest_content["icons"][0]["src"], "/web_pwa_oca/icon.svg") self.assertTrue(manifest_content["icons"][0]["type"].startswith("image/svg")) self.assertEqual( manifest_content["icons"][0]["sizes"], "128x128 144x144 152x152 192x192 256x256 512x512", ) # Get the icon and compare it icon_data = self.url_open("/web_pwa_oca/icon.svg") icon_data_bytes = base64.b64encode(icon_data.content) self.assertEqual(icon_data_bytes, icon_to_send) def test_png_logo_upload(self): with open( "%s/static/img/icons/icon-512x512.png" % get_resource_path("web_pwa_oca"), "rb", ) as fi: icon_to_send = base64.b64encode(fi.read()) # Set PWA icon in settings self.res_config_settings_obj.pwa_icon = icon_to_send self.res_config_settings_obj.set_values() # Call the manifest controller manifest_data = self.url_open("/web_pwa_oca/manifest.webmanifest") manifest_content_str = manifest_data.content.decode("utf-8") manifest_content = json.loads(manifest_content_str) expected_vals = { "src": "/web_pwa_oca/icon512x512.png", "sizes": "512x512", "type": "image/png", } self.assertTrue(expected_vals in manifest_content["icons"]) def test_manifest_logo_upload_big(self): # Set PWA icon in settings with self.assertRaises(exceptions.UserError): # Image with more than 2MB self.res_config_settings_obj.pwa_icon = b"a" * 3000000 self.res_config_settings_obj.set_values() def test_manifest_logo_upload_extension(self): with self.assertRaises(exceptions.UserError): # Image that is not SVG or PNG self.res_config_settings_obj.pwa_icon = b"a" * 1000 self.res_config_settings_obj.set_values() def test_manifest_logo_upload_small(self): icon_to_send = None with open( "%s/static/img/icons/icon-128x128.png" % get_resource_path("web_pwa_oca"), "rb", ) as fi: icon_to_send = base64.b64encode(fi.read()) # Set PWA icon in settings with self.assertRaises(exceptions.UserError): # Image smaller than 512X512 self.res_config_settings_obj.pwa_icon = icon_to_send self.res_config_settings_obj.set_values()
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>\n" "Language-Team: none\n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.3.2\n" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/chatter_topbar/chatter_topbar.xml:0 #, python-format msgid "Activities" msgstr "" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/search_panel/search_panel.xml:0 #, python-format msgid "All" msgstr "" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/chatter_topbar/chatter_topbar.xml:0 #, python-format msgid "Attachment counter loading..." msgstr "" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/chatter_topbar/chatter_topbar.xml:0 #, python-format msgid "Attachments" msgstr "" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/control_panel/control_panel.xml:0 #, python-format msgid "CLEAR" msgstr "" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/legacy/xml/form_buttons.xml:0 #, python-format msgid "Discard" msgstr "Negeren" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/control_panel/control_panel.xml:0 #: code:addons/web_responsive/static/src/components/search_panel/search_panel.xml:0 #, python-format msgid "FILTER" msgstr "" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/apps_menu/apps_menu.xml:0 #, python-format msgid "Home Menu" msgstr "" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/chatter_topbar/chatter_topbar.xml:0 #, python-format msgid "Log note" msgstr "" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/attachment_viewer/attachment_viewer.xml:0 #, python-format msgid "Maximize" msgstr "Maximaliseren" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/attachment_viewer/attachment_viewer.xml:0 #, python-format msgid "Minimize" msgstr "Minimaliseren" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/legacy/xml/form_buttons.xml:0 #, python-format msgid "New" msgstr "" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/control_panel/control_panel.xml:0 #: code:addons/web_responsive/static/src/components/search_panel/search_panel.xml:0 #, python-format msgid "SEE RESULT" msgstr "" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/legacy/xml/form_buttons.xml:0 #, python-format msgid "Save" msgstr "Opslaan" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/apps_menu/apps_menu.xml:0 #, python-format msgid "Search menus..." msgstr "Zoek menu's..." #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/control_panel/control_panel.xml:0 #, python-format msgid "Search..." msgstr "" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/chatter_topbar/chatter_topbar.xml:0 #, python-format msgid "Send message" msgstr "" #. module: web_responsive #. odoo-javascript #: code:addons/web_responsive/static/src/components/control_panel/control_panel.xml:0 #, python-format msgid "View switcher" msgstr "" #, python-format #~ msgid "Create" #~ msgstr "Aanmaken" #~ msgid "Chatter Position" #~ msgstr "Chatter Positie" #, python-format #~ msgid "Edit" #~ msgstr "Bewerken" #~ msgid "Normal" #~ msgstr "Normaal" #, python-format #~ msgid "Quick actions" #~ msgstr "Snelle Acties" #~ msgid "Sided" #~ msgstr "Aan de zijkant" #~ msgid "Users" #~ msgstr "Gebruikers" #~ msgid "#menu_id=#{app.menuID}&action_id=#{app.actionID}" #~ msgstr "#menu_id=#{app.menuID}&action_id=#{app.actionID}" #~ msgid "Close" #~ msgstr "Sluit" #, fuzzy #~ msgid "Shift" #~ msgstr "Shift" #, fuzzy #~ msgid "false" #~ msgstr "false"
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) { @media (max-width: 1360px) { .o_cp_top_left, .o_cp_bottom_left { width: 40%; } .o_cp_top_right, .o_cp_bottom_right { width: 60%; } } } // For FULL HD devices @media (min-width: 1900px) { .o_cp_top_left, .o_cp_bottom_left { width: 60%; } .o_cp_top_right, .o_cp_bottom_right { width: 40%; } } @include media-breakpoint-only(md) { .o_search_options_hide_labels .o_dropdown_title { display: none; } } .o_cp_bottom_right { height: 10%; } // Mobile Control panel (breadcrumbs, search box, buttons...) @include media-breakpoint-down(sm) { // Avoid horizontal scrolling of control panel. // It doesn't work on iOS Safari, but it looks similar as // without this patch. With this patch it looks better for // other browsers. // Arrange buttons to use space better .o_cp_top_left, .o_cp_top_right { flex: 1 1 100%; } .o_cp_top_left { flex-basis: 89%; max-width: 89%; } .o_cp_top_right { flex-basis: 11%; } .o_cp_bottom { position: relative; // Necessary for dropdown menu positioning display: block; margin: 0; min-height: 30px !important; } .o_cp_bottom_left { float: left; margin: 5px 0; } .o_cp_bottom_right { float: right; padding-left: 10px; margin: 5px 0; } .o_cp_bottom_right, .o_cp_pager { white-space: nowrap; } .o_cp_pager { margin-bottom: 0; } .o_list_selection_box { padding-left: 5px !important; padding-right: 5px; } .o_cp_action_menus { padding-right: 0; .o_dropdown_title, .fa-chevron-right, .fa-chevron-down { display: none; } .dropdown-toggle { margin: 0px 2px; height: 100%; } .dropdown { height: 100%; } @include media-breakpoint-down(xs) { .dropdown { position: static; } .dropdown-menu { right: 0; left: 0; top: 35px; } } } // Hide all but 2 last breadcrumbs, and render 2nd-to-last as arrow .breadcrumb-item { &:not(.active):not(.o_back_button) { padding-left: 0; display: none; } &::before { content: none; padding-right: 0; } &.o_back_button { &::before { color: var(--primary); content: "\f060"; // .fa-arrow-left cursor: pointer; font-family: FontAwesome; } a { display: none; } } } // Ellipsize long breadcrumbs .breadcrumb { max-width: 100%; text-overflow: ellipsis; } // In case you install `mail`, there is a mess on BS vs inline styles // we need to fix .o_cp_buttons .btn.d-block:not(.d-none) { display: inline-block !important; } .o_searchview_input_container > .o_searchview_autocomplete { left: 0; right: 0; > li { padding: 10px 0px; } } .o_searchview_quick { display: flex; flex: 1 1 auto; align-items: center; .o_searchview_input_container { flex: 1 1 auto; margin-left: 5px; } } .o_searchview { padding: 1px 0px 3px 0px; &.o_searchview_mobile { cursor: pointer; } } } // Filter Menu // Cut long filters names in the filters menu .o_filter_menu { .o_menu_item { @include media-breakpoint-up(md) { max-width: 250px; } a { overflow: hidden; text-overflow: ellipsis; } } } // Enable scroll on dropdowns .o_cp_buttons .dropdown-menu { max-height: 70vh; overflow-y: auto; overflow-x: hidden; } // Dropdown with buttons to switch the view type .o_cp_switch_buttons.dropdown-menu { align-content: center; display: flex; flex-direction: row; justify-content: space-around; padding: 0; .btn { border: { bottom: 0; radius: 0; top: 0; } font-size: 1.3em; } } } // Mobile search bar full screen mode .o_cp_mobile_search { position: fixed; top: 0; left: 0; bottom: 0; padding: 0; width: 100%; background-color: white; z-index: $zindex-modal; overflow: auto; .o_mobile_search_header { background-color: var(--mobileSearch__header-bg, #{$o-brand-odoo}); display: flex; min-height: $o-navbar-height; justify-content: space-between; width: 100%; .o_mobile_search_button { color: white; &:active { background-color: darken($o-brand-primary, 10%); } } } .o_searchview_input_container { display: flex; padding: 15px 20px 0 20px; position: relative; .o_searchview_input { width: 100%; margin-bottom: 15px; border-bottom: 1px solid $o-brand-primary; } .o_searchview_facet { display: inline-flex; order: 1; } .o_searchview_autocomplete { top: 3rem; } } .o_mobile_search_filter { padding-bottom: 15%; > .dropdown { flex-direction: column; line-height: 2rem; width: 100%; margin: 15px 5px 0px 5px; border: solid 1px darken($gray-200, 20%); } .dropdown.show > .dropdown-toggle { background-color: $gray-200; } .dropdown-toggle { width: 100%; text-align: left; &:after { top: auto; } } .dropdown-item:before { top: auto; } .dropdown-item.focus { background-color: white; } .dropdown-menu { // Here we use !important because of popper js adding custom style // to element so to override it use !important position: relative !important; top: 0 !important; left: 0 !important; width: 100%; max-height: 100%; box-shadow: none; border: none; color: $gray-600; .divider { margin: 0px; } > li > a { padding: 10px 26px; } } } .o_mobile_search_show_result { padding: 10px; font-size: 15px; } }
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'))]" position="replace"> <span class="save_button">Save</span> </xpath> <xpath expr="//button/i[(hasclass('fa-undo'))]" position="replace"> <span class="discard_button">Discard</span> </xpath> </t> </templates>
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", "depends": ["web", "mail"], "website": "https://github.com/OCA/web", "assets": { "web.assets_backend": ["web_send_message_popup/static/src/models/**/*.js"] }, }
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/OCA/web/tree/13.0/web_responsive>`_. Before installing this module, please consider Web Responsive as a better alternative.
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-Transfer-Encoding: \n" "Plural-Forms: \n" #. module: web_timeline #. odoo-javascript #: code:addons/web_timeline/static/src/js/timeline_renderer.js:0 #, python-format msgid "<b>UNASSIGNED</b>" msgstr "" #. module: web_timeline #. odoo-javascript #: code:addons/web_timeline/static/src/js/timeline_controller.esm.js:0 #, python-format msgid "Are you sure you want to delete this record?" msgstr "" #. module: web_timeline #. odoo-javascript #: code:addons/web_timeline/static/src/xml/web_timeline.xml:0 #, python-format msgid "Day" msgstr "" #. module: web_timeline #. odoo-javascript #: code:addons/web_timeline/static/src/xml/web_timeline.xml:0 #, python-format msgid "Month" msgstr "" #. module: web_timeline #. odoo-javascript #: code:addons/web_timeline/static/src/js/timeline_renderer.js:0 #, python-format msgid "Template \"timeline-item\" not present in timeline view definition." msgstr "" #. module: web_timeline #. odoo-javascript #: code:addons/web_timeline/static/src/js/timeline_view.js:0 #: model:ir.model.fields.selection,name:web_timeline.selection__ir_ui_view__type__timeline #, python-format msgid "Timeline" msgstr "" #. module: web_timeline #. odoo-javascript #: code:addons/web_timeline/static/src/js/timeline_renderer.js:0 #, python-format msgid "Timeline view has not defined 'date_start' attribute." msgstr "" #. module: web_timeline #. odoo-javascript #: code:addons/web_timeline/static/src/xml/web_timeline.xml:0 #, python-format msgid "Today" msgstr "" #. module: web_timeline #: model:ir.model,name:web_timeline.model_ir_ui_view msgid "View" msgstr "" #. module: web_timeline #: model:ir.model.fields,field_description:web_timeline.field_ir_ui_view__type msgid "View Type" msgstr "" #. module: web_timeline #. odoo-javascript #: code:addons/web_timeline/static/src/js/timeline_controller.esm.js:0 #, python-format msgid "Warning" msgstr "" #. module: web_timeline #. odoo-javascript #: code:addons/web_timeline/static/src/xml/web_timeline.xml:0 #, python-format msgid "Week" msgstr "" #. module: web_timeline #. odoo-javascript #: code:addons/web_timeline/static/src/xml/web_timeline.xml:0 #, python-format msgid "Year" msgstr ""
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.session"); const QWeb = require("web.QWeb"); const field_utils = require("web.field_utils"); const TimelineCanvas = require("web_timeline.TimelineCanvas"); const _t = core._t; const TimelineRenderer = AbstractRenderer.extend({ template: "TimelineView", events: _.extend({}, AbstractRenderer.prototype.events, { "click .oe_timeline_button_today": "_onTodayClicked", "click .oe_timeline_button_scale_day": "_onScaleDayClicked", "click .oe_timeline_button_scale_week": "_onScaleWeekClicked", "click .oe_timeline_button_scale_month": "_onScaleMonthClicked", "click .oe_timeline_button_scale_year": "_onScaleYearClicked", }), init: function (parent, state, params) { this._super.apply(this, arguments); this.modelName = params.model; this.mode = params.mode; this.options = params.options; this.min_height = params.min_height; this.date_start = params.date_start; this.date_stop = params.date_stop; this.date_delay = params.date_delay; this.colors = params.colors; this.fieldNames = params.fieldNames; this.default_group_by = params.default_group_by; this.dependency_arrow = params.dependency_arrow; this.modelClass = params.view.model; this.fields = params.fields; this.timeline = false; }, /** * @override */ start: function () { const attrs = this.arch.attrs; this.current_window = { start: new moment(), end: new moment().add(24, "hours"), }; this.$el.addClass(attrs.class); this.$timeline = this.$(".oe_timeline_widget"); if (!this.date_start) { throw new Error( _t("Timeline view has not defined 'date_start' attribute.") ); } this._super.apply(this, arguments); }, /** * Triggered when the timeline is attached to the DOM. */ on_attach_callback: function () { const height = this.$el.parent().height() - this.$(".oe_timeline_buttons").height(); if (height > this.min_height && this.timeline) { this.timeline.setOptions({ height: height, }); } }, /** * @override */ _render: function () { return Promise.resolve().then(() => { // Prevent Double Rendering on Updates if (!this.timeline) { this.init_timeline(); $(window).trigger("resize"); } }); }, /** * Set the timeline window to today (day). * * @private */ _onTodayClicked: function () { this.current_window = { start: new moment(), end: new moment().add(24, "hours"), }; if (this.timeline) { this.timeline.setWindow(this.current_window); } }, /** * Scale the timeline window to a day. * * @private */ _onScaleDayClicked: function () { this._scaleCurrentWindow(24); }, /** * Scale the timeline window to a week. * * @private */ _onScaleWeekClicked: function () { this._scaleCurrentWindow(24 * 7); }, /** * Scale the timeline window to a month. * * @private */ _onScaleMonthClicked: function () { this._scaleCurrentWindow( 24 * moment(this.current_window.start).daysInMonth() ); }, /** * Scale the timeline window to a year. * * @private */ _onScaleYearClicked: function () { this._scaleCurrentWindow( 24 * (moment(this.current_window.start).isLeapYear() ? 366 : 365) ); }, /** * Scales the timeline window based on the current window. * * @param {Integer} factor The timespan (in hours) the window must be scaled to. * @private */ _scaleCurrentWindow: function (factor) { if (this.timeline) { this.current_window = this.timeline.getWindow(); this.current_window.end = moment(this.current_window.start).add( factor, "hours" ); this.timeline.setWindow(this.current_window); } }, /** * Computes the initial visible window. * * @private */ _computeMode: function () { if (this.mode) { let start = false, end = false; switch (this.mode) { case "day": start = new moment().startOf("day"); end = new moment().endOf("day"); break; case "week": start = new moment().startOf("week"); end = new moment().endOf("week"); break; case "month": start = new moment().startOf("month"); end = new moment().endOf("month"); break; } if (end && start) { this.options.start = start; this.options.end = end; } else { this.mode = "fit"; } } }, /** * Initializes the timeline * (https://visjs.github.io/vis-timeline/docs/timeline). * * @private */ init_timeline: function () { this._computeMode(); this.options.editable = { // Add new items by double tapping add: this.modelClass.data.rights.create, // Drag items horizontally updateTime: this.modelClass.data.rights.write, // Drag items from one group to another updateGroup: this.modelClass.data.rights.write, // Delete an item by tapping the delete button top right remove: this.modelClass.data.rights.unlink, }; $.extend(this.options, { onAdd: this.on_add, onMove: this.on_move, onUpdate: this.on_update, onRemove: this.on_remove, }); this.qweb = new QWeb(session.debug, {_s: session.origin}, false); if (this.arch.children.length) { const tmpl = utils.json_node_to_xml( _.filter(this.arch.children, (item) => item.tag === "templates")[0] ); this.qweb.add_template(tmpl); } this.timeline = new vis.Timeline( this.$timeline.get(0), {}, {xss: {disabled: true}} ); this.timeline.setOptions(this.options); if (this.mode && this["on_scale_" + this.mode + "_clicked"]) { this["on_scale_" + this.mode + "_clicked"](); } this.timeline.on("click", this.on_group_click); const group_bys = this.arch.attrs.default_group_by.split(","); this.last_group_bys = group_bys; this.last_domains = this.modelClass.data.domain; this.on_data_loaded(this.modelClass.data.data, group_bys); this.$centerContainer = $(this.timeline.dom.centerContainer); this.canvas = new TimelineCanvas(this); this.canvas.appendTo(this.$centerContainer); this.timeline.on("changed", () => { this.draw_canvas(); }); }, /** * Clears and draws the canvas items. * * @private */ draw_canvas: function () { this.canvas.clear(); if (this.dependency_arrow) { this.draw_dependencies(); } }, /** * Draw item dependencies on canvas. * * @private */ draw_dependencies: function () { const items = this.timeline.itemSet.items; const datas = this.timeline.itemsData; if (!items || !datas) { return; } const keys = Object.keys(items); for (const key of keys) { const item = items[key]; const data = datas.get(Number(key)); if (!data || !data.evt) { return; } for (const id of data.evt[this.dependency_arrow]) { if (keys.indexOf(id.toString()) !== -1) { this.draw_dependency(item, items[id]); } } } }, /** * Draws a dependency arrow between 2 timeline items. * * @param {Object} from Start timeline item * @param {Object} to Destination timeline item * @param {Object} options * @param {Object} options.line_color Color of the line * @param {Object} options.line_width The width of the line * @private */ draw_dependency: function (from, to, options) { if (!from.displayed || !to.displayed) { return; } const defaults = _.defaults({}, options, { line_color: "black", line_width: 1, }); this.canvas.draw_arrow( from.dom.box, to.dom.box, defaults.line_color, defaults.line_width ); }, /** * Load display_name of records. * * @param {Object[]} events * @param {String[]} group_bys * @param {Boolean} adjust_window * @private * @returns {jQuery.Deferred} */ on_data_loaded: function (events, group_bys, adjust_window) { const ids = _.pluck(events, "id"); return this._rpc({ model: this.modelName, method: "name_get", args: [ids], context: this.getSession().user_context, }).then((names) => { const nevents = _.map(events, (event) => _.extend( { __name: _.detect(names, (name) => name[0] === event.id)[1], }, event ) ); return this.on_data_loaded_2(nevents, group_bys, adjust_window); }); }, /** * Set groups and events. * * @param {Object[]} events * @param {String[]} group_bys * @param {Boolean} adjust_window * @private */ on_data_loaded_2: function (events, group_bys, adjust_window) { const data = []; this.grouped_by = group_bys; for (const evt of events) { if (evt[this.date_start]) { data.push(this.event_data_transform(evt)); } } this.split_groups(events, group_bys).then((groups) => { this.timeline.setGroups(groups); this.timeline.setItems(data); const mode = !this.mode || this.mode === "fit"; const adjust = _.isUndefined(adjust_window) || adjust_window; if (mode && adjust) { this.timeline.fit(); } }); }, /** * Get the groups. * * @param {Object[]} events * @param {String[]} group_bys * @private * @returns {Array} */ split_groups: async function (events, group_bys) { if (group_bys.length === 0) { return events; } const groups = []; groups.push({id: -1, content: _t("<b>UNASSIGNED</b>"), order: -1}); var seq = 1; for (const evt of events) { const grouped_field = _.first(group_bys); const group_name = evt[grouped_field]; if (group_name) { if (group_name instanceof Array) { const group = _.find( groups, (existing_group) => existing_group.id === group_name[0] ); if (_.isUndefined(group)) { // Check if group is m2m in this case add id -> value of all // found entries. await this._rpc({ model: this.modelName, method: "fields_get", args: [grouped_field], context: this.getSession().user_context, }).then(async (fields) => { if (fields[grouped_field].type === "many2many") { const list_values = await this.get_m2m_grouping_datas( fields[grouped_field].relation, group_name ); for (const vals of list_values) { let is_inside = false; for (const gr of groups) { if (vals.id === gr.id) { is_inside = true; break; } } if (!is_inside) { vals.order = seq; seq += 1; groups.push(vals); } } } else { groups.push({ id: group_name[0], content: group_name[1], order: seq, }); seq += 1; } }); } } } } return groups; }, get_m2m_grouping_datas: async function (model, group_name) { const groups = []; for (const gr of group_name) { await this._rpc({ model: model, method: "name_get", args: [gr], context: this.getSession().user_context, }).then((name) => { groups.push({id: name[0][0], content: name[0][1]}); }); } return groups; }, /** * Get dates from given event * * @param {TransformEvent} evt * @returns {Object} */ _get_event_dates: function (evt) { let date_start = new moment(); let date_stop = null; const date_delay = evt[this.date_delay] || false, all_day = this.all_day ? evt[this.all_day] : false; if (all_day) { date_start = time.auto_str_to_date( evt[this.date_start].split(" ")[0], "start" ); if (this.no_period) { date_stop = date_start; } else { date_stop = this.date_stop ? time.auto_str_to_date( evt[this.date_stop].split(" ")[0], "stop" ) : null; } } else { date_start = time.auto_str_to_date(evt[this.date_start]); date_stop = this.date_stop ? time.auto_str_to_date(evt[this.date_stop]) : null; } if (!date_stop && date_delay) { date_stop = date_start.clone().add(date_delay, "hours").toDate(); } return [date_start, date_stop]; }, /** * Transform Odoo event object to timeline event object. * * @param {TransformEvent} evt * @private * @returns {Object} */ event_data_transform: function (evt) { const [date_start, date_stop] = this._get_event_dates(evt); let group = evt[this.last_group_bys[0]]; if (group && group instanceof Array && group.length > 0) { group = _.first(group); } else { group = -1; } for (const color of this.colors) { if (py.eval(`'${evt[color.field]}' ${color.opt} '${color.value}'`)) { this.color = color.color; } } let content = evt.__name || evt.display_name; if (this.arch.children.length) { content = this.render_timeline_item(evt); } const r = { start: date_start, content: content, id: evt.id, order: evt.order, group: group, evt: evt, style: `background-color: ${this.color};`, }; // Check if the event is instantaneous, // if so, display it with a point on the timeline (no 'end') if (date_stop && !moment(date_start).isSame(date_stop)) { r.end = date_stop; } this.color = null; return r; }, /** * Render timeline item template. * * @param {Object} evt Record * @private * @returns {String} Rendered template */ render_timeline_item: function (evt) { if (this.qweb.has_template("timeline-item")) { return this.qweb.render("timeline-item", { record: evt, field_utils: field_utils, }); } console.error( _t('Template "timeline-item" not present in timeline view definition.') ); }, /** * Handle a click on a group header. * * @param {ClickEvent} e * @private */ on_group_click: function (e) { if (e.what === "group-label" && e.group !== -1) { this._trigger( e, () => { // Do nothing }, "onGroupClick" ); } }, /** * Trigger onUpdate. * * @param {Object} item * @param {Function} callback * @private */ on_update: function (item, callback) { this._trigger(item, callback, "onUpdate"); }, /** * Trigger onMove. * * @param {Object} item * @param {Function} callback * @private */ on_move: function (item, callback) { this._trigger(item, callback, "onMove"); }, /** * Trigger onRemove. * * @param {Object} item * @param {Function} callback * @private */ on_remove: function (item, callback) { this._trigger(item, callback, "onRemove"); }, /** * Trigger onAdd. * * @param {Object} item * @param {Function} callback * @private */ on_add: function (item, callback) { this._trigger(item, callback, "onAdd"); }, /** * Trigger_up encapsulation adds by default the rights, and the renderer. * * @param {HTMLElement} item * @param {Function} callback * @param {String} trigger * @private */ _trigger: function (item, callback, trigger) { this.trigger_up(trigger, { item: item, callback: callback, rights: this.modelClass.data.rights, renderer: this, }); }, }); return TimelineRenderer; });
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=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" #. module: web_widget_domain_editor_dialog #. odoo-javascript #: code:addons/web_widget_domain_editor_dialog/static/src/js/domain_field.esm.js:0 #, python-format msgid "Select records..." msgstr "" #. module: web_widget_domain_editor_dialog #. odoo-javascript #: code:addons/web_widget_domain_editor_dialog/static/src/js/domain_field.esm.js:0 #, python-format msgid "Selected domain" msgstr ""
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\n" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" #. module: web_widget_dropdown_dynamic #. odoo-javascript #: code:addons/web_widget_dropdown_dynamic/static/src/js/field_dynamic_dropdown.esm.js:0 #, python-format msgid "Dynamic Dropdown" msgstr ""
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: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.17\n" #. module: web_widget_mpld3_chart #: model:ir.model,name:web_widget_mpld3_chart.model_abstract_mpld3_parser msgid "Utility to parse ploot figure to json data for widget Mpld3" msgstr "" "Utilidad para convertir figuras ploot en datos json para el widget Mpld3"
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: sha256:aa00ea1d2e4245170c8f2a6e774bffe29af982ceddd43292a7871cf6f194fc25 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status :alt: Beta .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github :target: https://github.com/OCA/web/tree/16.0/web_widget_numeric_step :alt: OCA/web .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png :target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_numeric_step :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=16.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| This widget changes input number field and make it easier to increment the number thanks to 2 buttons (+ and -). Use JS native logic for input number, so you can use the options ``min``, ``max``, ``step``, ``placeholder``. Demo available at `Settings > Users & Companies > Users > *Select One* > See 'Credit Limit' field` **Table of contents** .. contents:: :local: Usage ===== In your xml view, add ``widget="numeric_step"`` This will add the 2 buttons "+" and "-" just next to the input field in edit mode. Iteration step by default is 1. .. figure:: https://raw.githubusercontent.com/OCA/web/16.0/web_widget_numeric_step/static/description/add_two_buttons.png **Optional** Add an option to choose the step iteration and limits (min and max values). Example for an 0.25 step, min to -1 and max to 10 : .. code:: xml <field name="sale_delay" widget="numeric_step" options="{'step': 0.25, 'min': -1, 'max': 10}" /> days **Available Options** - step > Amount to increase/decrease (default: 1.0) - min > Min. value allowed (default: no limit) - max > Max. value allowed (default: no limit) - auto_select > Select the content when the element get focus (default: False) - placeholder > Define the placeholder text (default: None) **Examples** Iteration with 0.25 step, min to -1 and max to 10. Start to increment with button, continue incrementing with scrolling mouse. .. figure:: https://raw.githubusercontent.com/OCA/web/16.0/web_widget_numeric_step/static/description/step0,25andlimits.gif Iteration with 10 step, max limit 15, placeholder with onchange .. figure:: https://raw.githubusercontent.com/OCA/web/16.0/web_widget_numeric_step/static/description/step10_limit15_placeholder117_with_onchange.gif Bug Tracker =========== Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed `feedback <https://github.com/OCA/web/issues/new?body=module:%20web_widget_numeric_step%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. Do not contact contributors directly about support or help with technical issues. Credits ======= Authors ~~~~~~~ * GRAP * Tecnativa Contributors ~~~~~~~~~~~~ * `GRAP <http://www.grap.coop>`_: * Quentin DUPONT <quentin.dupont@grap.coop> * `Tecnativa <https://www.tecnativa.com/>`_: * Alexandre Díaz * Carlos Roca * Helly kapatel <helly.kapatel@initos.com> * Thanakrit Pintana <thanakrit.p39@gmail.com> * Dhara Solanki <dhara.solanki@initos.com> Maintainers ~~~~~~~~~~~ This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. .. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px :target: https://github.com/rafaelbn :alt: rafaelbn .. |maintainer-yajo| image:: https://github.com/yajo.png?size=40px :target: https://github.com/yajo :alt: yajo Current `maintainers <https://odoo-community.org/page/maintainer-role>`__: |maintainer-rafaelbn| |maintainer-yajo| This module is part of the `OCA/web <https://github.com/OCA/web/tree/16.0/web_widget_numeric_step>`_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
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"; export class NumericStep extends FloatField { setup() { super.setup(); } _onStepClick(ev) { const $el = $(ev.target).parent().parent().find("input"); if (!hasTouch()) { $el.focus(); } const mode = $(ev.target).data("mode"); this._doStep(mode); } _onKeyDown(ev) { if (ev.keyCode === $.ui.keyCode.UP) { this._doStep("plus"); } else if (ev.keyCode === $.ui.keyCode.DOWN) { this._doStep("minus"); } } _onWheel(ev) { ev.preventDefault(); if (ev.deltaY > 0) { this._doStep("minus"); } else { this._doStep("plus"); } } updateField(val) { return Promise.resolve(this.props.update(val)); } _doStep(mode) { let cval = this.props.value; if (mode === "plus") { cval += this.props.step; } else if (mode === "minus") { cval -= this.props.step; } if (cval < this.props.min) { cval = this.props.min; } else if (cval > this.props.max) { cval = this.props.max; } this.updateField(cval); this.props.setDirty(this._isSetDirty(cval)); this.props.setDirty(false); } _isSetDirty(val) { return this.props.value != val; } } NumericStep.template = "web_widget_numeric_step"; NumericStep.props = { ...standardFieldProps, inputType: {type: String, optional: true}, step: {type: Number, optional: true}, min: {type: Number, optional: true}, max: {type: Number, optional: true}, placeholder: {type: String, optional: true}, }; NumericStep.displayName = _lt("Numeric Step"); NumericStep.supportedTypes = ["float"]; NumericStep.defaultProps = { inputType: "text", }; NumericStep.extractProps = ({attrs}) => { return { name: attrs.name, inputType: attrs.options.type, step: attrs.options.step || 1, min: attrs.options.min, max: attrs.options.max, placeholder: attrs.options.placeholder, }; }; registry.category("fields").add("numeric_step", NumericStep);
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()._get_view(view_id, view_type, **options) model = self.env["ir.model"]._get(self._name) if view_type == "tree" and model.add_open_tab_field: id_elem = """<field name="id" widget="open_tab" nolabel="1"/>""" id_elem = etree.fromstring(id_elem) tree = arch.xpath("//tree")[0] name_field = tree.xpath('./field[@name="name"]') if name_field: tree.insert(name_field[0].getparent().index(name_field[0]) + 1, id_elem) else: tree.insert(0, id_elem) return arch, view
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 x2many fields", "version": "16.0.1.1.3", "maintainers": ["ChrisOForgeFlow"], "development_status": "Production/Stable", "author": ( "Therp BV, " "Tecnativa, " "Camptocamp, " "CorporateHub, " "Onestein, " "Odoo Community Association (OCA)" ), "website": "https://github.com/OCA/web", "license": "AGPL-3", "category": "Hidden/Dependency", "summary": "Show list fields as a matrix", "depends": ["web"], "data": [], "installable": True, "assets": { "web.assets_backend": [ "web_widget_x2many_2d_matrix/static/src/components/x2many_2d_matrix_renderer/" "x2many_2d_matrix_renderer.esm.js", "web_widget_x2many_2d_matrix/static/src/components/x2many_2d_matrix_renderer/" "x2many_2d_matrix_renderer.xml", "web_widget_x2many_2d_matrix/static/src/components/x2many_2d_matrix_field/" "x2many_2d_matrix_field.esm.js", "web_widget_x2many_2d_matrix/static/src/components/x2many_2d_matrix_field/" "x2many_2d_matrix_field.xml", "web_widget_x2many_2d_matrix/static/src/components/x2many_2d_matrix_field/" "x2many_2d_matrix_field.scss", "web_widget_x2many_2d_matrix/static/src/views/fields/boolean/boolean_field.esm.js", ], }, }
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://corporatehub.eu/>`__ * Alexey Pelykh <alexey.pelykh@corphub.eu> * Adrià Gil Sorribes <adria.gil@forgeflow.com> * Christopher Ormaza <chris.ormaza@forgeflow.com>
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 !important; padding-right: 10px !important; } } // use for large, complex forms form.labeled { fieldset { margin-top: 40px; &:first-of-type { margin-top: 0; } legend, h5 { //TODO legend doesn't respect margin-bottom; using h5 instead width: 100%; font-size: $h4-size; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid $gray5; } } label { display: block; margin-top: 20px; margin-bottom: 10px; font-weight: bold; // fix up spacing between label and help block &.checkbox-label { margin-bottom: 0; } // nuzzle up radio labels &.radio-label { margin-bottom: 0; margin-top: 5px; &:first-of-type { margin-top: 20px; } } input[type=checkbox], input[type=radio] { display: inline; margin-right: 5px; } } input:not([type=checkbox]):not([type=radio]), select, textarea { display: block; width: auto; } .field-group { label, input, select { display: inline; width: auto; } } .form-actions { padding: 20px 30px 0 30px; input[type=submit], input[type=button], input[type=reset] { display: inline; } } blockquote { margin-left: 50px; margin-right: 50px; label:first-of-type { margin-top: 5px; } } } form.whitewashed { margin: 20px 0; padding: 20px 0; border-radius: $radius-size; } .whitewashed { input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=number], textarea { background-color: white; &.disabled, &[disabled] { background-color: $gray6; border: 3px solid white; } } .input-prepend>span, .input-append>span { background-color: white; &.disabled { border: 3px solid white; } } } @mixin input-affix { &>span { @include field-options; line-height: 20px; //TODO determine programatically min-width: 15px; &.disabled { border: 3px solid $gray6; } } &>input { display: inline !important; } } .input-prepend { @include input-affix; &>span { border-top-left-radius: $radius-size; border-bottom-left-radius: $radius-size; margin-right: 0; padding-right: 0; &.disabled { border-right: none; } } &>input { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; &.disabled { border-left: none; } } } .input-append { @include input-affix; &>span { border-top-right-radius: $radius-size; border-bottom-right-radius: $radius-size; margin-left: 0; padding-left: 0; &.disabled { border-left: none; } } &>input { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; &.disabled { border-right: none; } } }
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", Helvetica, sans-serif; font-size: $base-font-size; } @import "typography"; // ----- PAGE ELEMENTS a.favorite { text-decoration: none; &:hover { text-decoration: none; } i { color: $orange; } } .no-results { padding-top: 20px; color: $gray4; font-size: $h2-size; font-weight: bold; text-align: center; } img { max-width: 100%; height: auto; } // apply to a div containing a gravatar to the left of profile data .profile-widget img { width: 40%; margin-right: 10px; float: left; } // ----- IMPORTS @import "alerts"; @import "badges"; @import "breadcrumbs"; @import "containers"; @import "controls"; @import "forms"; @import "modal"; @import "navbar"; @import "pills"; @import "footer.scss";
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 to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Controller for working with a {User}'s {Email Emails}. class EmailsController < ApplicationController before_filter :find_project before_filter :find_email, only: :destroy respond_to :json # Returns a list of the first 10 Emails belonging to the current User, # optionally only those under a {Project}. # # Routes # ------ # # * `GET /account/emails.json` # * `GET /projects/:project_id/membership/emails.json` # # Path Parameters # --------------- # # | | | # |:-------------|:----------------------| # | `project_id` | The {Project}'s slug. | # # Query Parameters # ---------------- # # | | | # |:--------|:-----------------------------------------------------------------------------------------| # | `query` | If set, includes only those Emails whose address begins with `query` (case-insensitive). | def index @emails = current_user.emails.redirected. where(project_id: @project.try!(:id)). order('email ASC'). limit(10). includes(:user) @emails = @emails.where('LOWER(email) LIKE ?', params[:query].downcase + '%') if params[:query].present? respond_with @emails do |format| format.json { render json: decorate(@emails) } end end # Adds a redirecting (non-primary) Email to the current User, optionally # limited to a Project. # # Routes # ------ # # * `POST /account/emails.json` # * `POST /projects/:project_id/membership/emails.json` # # Path Parameters # --------------- # # | | | # |:-------------|:----------------------| # | `project_id` | The {Project}'s slug. | # # Body Parameters # --------------- # # | | | # |:--------|:--------------------------------------------------| # | `email` | Parameterized hash of new Email attribute values. | def create @email = current_user.emails.build(email_params) @email.project = @project @email.save respond_with @email, location: nil end # Removes a redirecting (non-primary) Email from the current User. # # Routes # ------ # # * `DELETE /account/emails/:id.json` # # Path Parameters # --------------- # # | | | # |:-----|:-------------------| # | `id` | The email address. | def destroy @email.destroy respond_with @email end private def find_project @project = Project.find_from_slug!(params[:project_id]) if params.include?('project_id') end def find_email @email = current_user.emails.redirected.by_email(params[:id]).first! end def decorate(emails) emails.map do |email| email.as_json.merge( url: account_email_url(email) ) end end def email_params params.require(:email).permit(:email) end end
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 to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module OccurrencesHelper def parameter_class(param) if parameter_complex?(param) param['class_name'] else case param when String then "(string)" when Integer then "(integer)" when Float then "(decimal)" when NilClass then "(nil)" when TrueClass, FalseClass then "(boolean)" else "(#{param.class.to_s.humanize.downcase})" end end end def parameter_invalid?(param) parameter_class(param).nil? end def parameter_complex?(param) param.kind_of?(Hash) end def parameter_unformatted?(param) param.kind_of?(Numeric) || (param.kind_of?(String) && param.size < 50) end def parameter_primitive?(param) param.kind_of?(TrueClass) || param.kind_of?(FalseClass) || param.kind_of?(NilClass) end def format_parameter(param) case param when String if param.empty? content_tag :span, "(empty string)", class: 'aux' elsif param.blank? content_tag :span, "(string consisting entirely of non-printing characters)", class: 'aux' else h param end else h param.to_s end end end
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 to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # An indication that a User wishes to be notified should a Bug occur over a # certain threshold within a certain period of time. If the threshold is # exceeded, an email is sent. The threshold then resets for the length of the # period. # # The actual monitoring of the threshold and delivery of emails is handled by # {OccurrenceObserver}. # # Associations # ============ # # | | | # |:-------|:---------------------------------------------| # | `user` | The {User} that set this notification. | # | `bug` | The {Bug} to which the notification applies. | # # Properties # ========== # # | | | # |:------------------|:------------------------------------------------------------------| # | `threshold` | The number of times the Bug must occur within the period. | # | `period` | The amount of time, in seconds, the threshold is calculated over. | # | `last_tripped_at` | The last time this threshold was exceeded. | class NotificationThreshold < ActiveRecord::Base belongs_to :user, inverse_of: :notification_thresholds belongs_to :bug, inverse_of: :notification_thresholds self.primary_keys = [:user_id, :bug_id] validates :user, presence: true validates :bug, presence: true validates :period, presence: true, numericality: {greater_than: 0, only_integer: true} validates :threshold, presence: true, numericality: {greater_than: 0, only_integer: true} # @return [true, false] Whether or not this Bug has occurred `threshold` times # in the past `period` seconds. def tripped? (last_tripped_at.nil? || last_tripped_at < period.seconds.ago) && bug.occurrences.where('occurred_at >= ?', period.seconds.ago).count >= threshold end end
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 applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require Rails.root.join('app', 'views', 'layouts', 'application.html.rb') module Views # @private module Accounts # @private class Show < Views::Layouts::Application protected def page_title() "My Account" end def body_content full_width_section { user_info } tabbed_section -> { tab_header }, -> { tab_content } end def breadcrumbs() 'Account' end private def tab_header ul(class: 'tab-header') do li(class: 'active') { a "Statistics", href: '#stats', rel: 'tab' } li { a "Projects", href: '#projects', rel: 'tab' } li { a "Emails", href: '#emails', rel: 'tab' } li { a "Settings", href: '#user', rel: 'tab' } if Squash::Configuration.authentication.strategy == 'password' end end def tab_content div(class: 'tab-content tab-primary') do div(class: 'active', id: 'stats') { stats } div(id: 'projects') { projects } div(id: 'emails') { emails } div(id: 'user') { user_form } if Squash::Configuration.authentication.strategy == 'password' end end def user_info h1 do image_tag current_user.gravatar text current_user.name end p(class: 'alert info') do strong "Note:" text " Your profile picture is being provided by " link_to "Gravatar", 'http://en.gravatar.com' text ". Visit that site to change this image." end end def stats dl do dt "Username" dd current_user.username dt "Main Email" dd current_user.email dt "Joined" dd l(current_user.created_at, format: :short_date) dt "Projects" dd number_with_delimiter(current_user.memberships.count) dt "Projects Owned" dd number_with_delimiter(current_user.owned_projects.count) end end def projects form(class: 'whitewashed') do input type: 'search', id: 'project-filter', placeholder: 'Find a project' end ul(id: 'project-results', class: 'project-search-results') end def emails form id: 'email-aliases', class: 'whitewashed' p <<-TEXT If you want to take responsibility for all exceptions caused by someone else’s commits, add his or her email address above. You’ll be emailed instead. If you only want to take responsibility for his/her exceptions in a specific project (say, s/he moved to another team team), visit that project’s page and edit your membership settings. TEXT p do text "You can also add any email addresses that you commit under other than " tt current_user.email text " to become responsible for commits under those email addresses." end end def user_form form_for(current_user, url: account_url(anchor: 'user'), html: {class: 'labeled whitewashed'}) do |f| fieldset do f.label :first_name, "your name" div(class: 'field-group') do f.text_field :first_name, placeholder: "first" text ' ' f.text_field :last_name, placeholder: "last" end f.label :password f.password_field :password f.label :password_confirmation f.password_field :password_confirmation end div(class: 'form-actions') { f.submit class: 'default' } end end end end end
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 %> <% if @bug.special_file? %> in <%= @bug.file %> <% else %> in <%= @bug.file %>:<%= @bug.line %> <% end %> <%= @bug.message_template %> <% if @bug.occurrences.first %> ---- Stack trace of initial occurrence: <%= render_backtrace(@bug.occurrences.first.faulted_backtrace).indent(2) %> ---- <% end %> Yours truly, Squash
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 applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require Rails.root.join('app', 'views', 'layouts', 'application.html.rb') module Views # @private module Sessions # @private class New < Views::Layouts::Application protected def page_title() "Log In" end def modal_view?() true end def body_content modal_section do title_section div(class: 'body-portion') do login_form if display_registration_form? signup_form end end end end private def title_section h1 "Log in to Squash" p "Use your LDAP credentials to log in." if Squash::Configuration.authentication.strategy == 'ldap' end def login_form div(class: 'row') do div(class: 'four columns') { text! '&nbsp;' } form(method: 'post', action: login_url, class: 'four columns whitewashed') do input type: 'hidden', name: request_forgery_protection_token, value: form_authenticity_token input type: 'hidden', name: 'next', value: params[:next] div { input type: 'text', name: 'username', placeholder: 'username' } div { input type: 'password', name: 'password', placeholder: 'password' } div { input type: 'submit', class: 'default', value: 'Log In' } end div(class: 'four columns') { text! '&nbsp;' } end end def signup_form div(class: 'row') do div(class: 'two columns') { text! '&nbsp;' } form_for(@user || User.new, url: signup_url, html: {class: 'eight columns whitewashed'}) do |f| h3 "Don’t have an account yet?" input type: 'hidden', name: 'next', value: params[:next] div { f.text_field :username, required: true, placeholder: 'username' } div { f.email_field :email_address, required: true, placeholder: 'email' } div(class: 'row') do div(class: 'remaining columns') { f.password_field :password, required: true, placeholder: 'password' } div(class: 'remaining columns') { f.password_field :password_confirmation, required: true, placeholder: 'again' } end div(class: 'row') do div(class: 'remaining columns') { f.text_field :first_name, placeholder: 'first', placeholder: 'first' } div(class: 'remaining columns') { f.text_field :last_name, placeholder: 'last', placeholder: 'last' } end div { f.submit class: 'default' } end div(class: 'two columns') { text! '&nbsp;' } end end def display_registration_form? Squash::Configuration.authentication.strategy == 'password' && Squash::Configuration.authentication.registration_enabled? end end end end
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 to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. class TrackCrashes < ActiveRecord::Migration def up execute "ALTER TABLE occurrences ADD COLUMN crashed BOOLEAN NOT NULL DEFAULT FALSE" execute "ALTER TABLE bugs ADD COLUMN any_occurrence_crashed BOOLEAN NOT NULL DEFAULT FALSE" execute <<-SQL CREATE FUNCTION bugs_new_crashed_occurrence() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN UPDATE bugs SET any_occurrence_crashed = EXISTS( SELECT 1 FROM occurrences o WHERE o.bug_id = NEW.bug_id AND o.crashed IS TRUE ) WHERE id = NEW.bug_id; RETURN NEW; END; $$ SQL execute <<-SQL CREATE FUNCTION bugs_old_crashed_occurrence() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN UPDATE bugs SET any_occurrence_crashed = EXISTS( SELECT 1 FROM occurrences o WHERE o.bug_id = OLD.bug_id AND o.crashed IS TRUE ) WHERE id = OLD.bug_id; RETURN OLD; END; $$ SQL execute <<-SQL CREATE TRIGGER occurrences_crashed_bug_updated AFTER INSERT OR UPDATE ON occurrences FOR EACH ROW EXECUTE PROCEDURE bugs_new_crashed_occurrence() SQL execute <<-SQL CREATE TRIGGER occurrences_crashed_bug_deleted AFTER DELETE ON occurrences FOR EACH ROW EXECUTE PROCEDURE bugs_old_crashed_occurrence() SQL execute "DROP INDEX bugs_env_fo, bugs_env_lo, bugs_env_oc" execute "CREATE INDEX bugs_list_fo ON bugs(environment_id, deploy_id, assigned_user_id, fixed, irrelevant, any_occurrence_crashed, first_occurrence, number)" execute "CREATE INDEX bugs_list_lo ON bugs(environment_id, deploy_id, assigned_user_id, fixed, irrelevant, any_occurrence_crashed, latest_occurrence, number)" execute "CREATE INDEX bugs_list_oc ON bugs(environment_id, deploy_id, assigned_user_id, fixed, irrelevant, any_occurrence_crashed, occurrences_count, number)" end def down execute "ALTER TABLE occurrences DROP COLUMN crashed" execute "ALTER TABLE bugs DROP COLUMN any_occurrence_crashed" execute "DROP INDEX bugs_list_fo, bugs_list_lo, bugs_list_oc" execute "CREATE INDEX bugs_env_fo ON bugs (environment_id, deploy_id, assigned_user_id, fixed, irrelevant, latest_occurrence, number)" execute "CREATE INDEX bugs_env_lo ON bugs (environment_id, deploy_id, assigned_user_id, fixed, irrelevant, first_occurrence, number)" execute "CREATE INDEX bugs_env_oc ON bugs (environment_id, deploy_id, assigned_user_id, fixed, irrelevant, occurrences_count, number)" end end
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. - status: 201 successful: true requestParameters: properties: symbolications: description: Array of symbolication data. required: true type: array items: type: hash properties: uuid: description: | The unique symbolication UUID. This UUID is generated by DWARF for each new compile, and can be found using `dwarfdump -u`. required: true type: string example: 8817e7da-8c0d-44f0-9eec-24e418425630 symbols: description: | A `Squash::Symbolicator::Symbols` object (as generated by `squash_ios_symbolicator`), YAML-serialized, then gzipped, then base 64-encoded. required: false type: string example: "eJxj4ci3kgquzE3Kz8lMTizJL7KygvCK2ax4HYohzGgGAP7YDRY=\n" lines: description: | A `Squash::Symbolicator::Lines` object (as generated by `squash_ios_symbolicator`), YAML-serialized, then gzipped, then base 64-encoded. required: false type: string example: "eJxj4ci3kgiuzE3Kz8lMTizJL7Ky8snMSy1ms+J2yAExohkAxuwLNg==\n"
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 to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Works with config/initializers/field_error_proc.rb to properly stylize form # fields with errors. This is intended for basic HTML forms; smart Ajax-y forms # are handled by {SmartForm}. $(document).ready -> $('.field-with-errors').each (_, span) -> element = $(span) errors = (attr.value for attr in span.attributes when attr.name == 'data-error') form_element = element.find('input,textarea,select') element.children().unwrap() form_element.addClass 'error' form_element.tooltip errorTooltipOptions(errors)
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 to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module BackgroundRunner # BackgroundRunner adapter for {::Multithread}. This module generates # Multithread jobs and assigns them priorities as specified in the # `concurrency.yml` Configoro file. module Multithread # Sends a job to {::Multithread.spinoff}. The job's name and priority are # calculated automatically. # # @param [String, Class] job_name The name of the class under `lib/workers` # to run. def self.run(job_name, *arguments) job_name = job_name.constantize unless job_name.kind_of?(Class) ::Multithread.spinoff(queue_item_name(job_name, arguments), priority(job_name)) { job_name.perform *arguments } end private def self.queue_item_name(job_name, arguments) return nil if job_name.to_s == 'OccurrencesWorker' [job_name, arguments.map(&:inspect)].join(':') end def self.priority(job_name) Squash::Configuration.concurrency.multithread.priority[job_name.to_s] end end end
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 to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module Service # PagerDuty integration module. Opens, acknowledges, and resolves incidents. # # In order to use PagerDuty integration in your Squash installation, you must # configure the `pagerduty.yml` Configoro file. This file supports the # following keys: # # | | | # |:-----------------|:----------------------------------------------| # | `disabled` | Set to `false` to enable PagerDuty support. | # | `authentication` | A hash of authentication options (see below). | # | `api_url` | The PagerDuty event API endpoint. | # # The `authentication` hash must have a key called `strategy`, whose value can # be either "token" (for token-based authentication) or "basic" for HTTP Basic # authentication. If the value is "token", an additional `token` key must be # present under this hash with the API user token. If the value is "basic", # the `user` and `password` keys must also be present under this hash. # # All PagerDuty API methods return {Service::PagerDuty::Response} objects with # information about the API response. class PagerDuty # @private HEADERS = { 'Content-Type' => 'application/json' } # @return [String] The service key for the PagerDuty service being used in # this session. attr_reader :service_key def initialize(service_key) @service_key = service_key end # Triggers a new incident in PagerDuty. See the PagerDuty API for more # details. # # @param [String] description A short description of the incident. # @param [String] incident_key A key shared by all duplicates of the same # incident (used for de-duping). Its format is left to the programmer. # @param [Hash] details A JSON-serializable hash of user data to send along. # @return [Service::PagerDuty::Response] The API response. def trigger(description, incident_key=nil, details=nil) request 'service_key' => service_key, 'incident_key' => incident_key, 'event_type' => 'trigger', 'description' => description, 'details' => details end # Acknowledges an incident in PagerDuty. See the PagerDuty API for more # details. # # @param [String] incident_key The incident key returned by PagerDuty when # the incident was created. # @param [String] description A short description of the acknowledgement. # @param [Hash] details A JSON-serializable hash of user data to send along. # @return [Service::PagerDuty::Response] The API response. def acknowledge(incident_key, description=nil, details=nil) request 'service_key' => service_key, 'event_type' => 'acknowledge', 'incident_key' => incident_key, 'description' => description, 'details' => details end # Resolves an incident in PagerDuty. See the PagerDuty API for more details. # # @param [String] incident_key The incident key returned by PagerDuty when # the incident was created. # @param [String] description A short description of the resolution. # @param [Hash] details A JSON-serializable hash of user data to send along. # @return [Service::PagerDuty::Response] The API response. def resolve(incident_key, description=nil, details=nil) request 'service_key' => service_key, 'event_type' => 'resolve', 'incident_key' => incident_key, 'description' => description, 'details' => details end private def request(body) return nil if Squash::Configuration.pagerduty.disabled uri = URI(Squash::Configuration.pagerduty.api_url) http = if Squash::Configuration.pagerduty[:http_proxy] Net::HTTP::Proxy(Squash::Configuration.pagerduty.http_proxy.host, Squash::Configuration.pagerduty.http_proxy.port) else Net::HTTP end http.start(uri.host, uri.port, use_ssl: Squash::Configuration.pagerduty.api_url.starts_with?('https://')) do |http| request = Net::HTTP::Post.new(uri.request_uri) HEADERS.merge(authentication_headers).each do |name, value| request[name] = value end request.body = body.to_json response = http.request(request) return Response.new(response) end end def authentication_headers case Squash::Configuration.pagerduty.authentication.strategy when 'token' {'Authorization' => "Token token=#{Squash::Configuration.pagerduty.authentication.token}"} when 'basic' {'Authorization' => "Basic #{Base64.encode64 basic_credentials}"} end end def basic_credentials "#{Squash::Configuration.pagerduty.authentication.user}:#{Squash::Configuration.pagerduty.authentication.password}" end # A response from a PagerDuty API call. The parsed response JSON is # accessible as both a hash: # # ```` ruby # response.attributes['message'] # ```` # # or by method: # # ```` ruby # response.message # ```` class Response # @return [Hash] The response attributes as parsed from the JSON. attr_reader :attributes # @return [Fixnum] The HTTP response status code. attr_reader :http_status # @private def initialize(http_response) @http_status = http_response.code.to_i @attributes = JSON.parse(http_response.body) end # @return [true, false] Whether the `status` field is "success". def success? status == 'success' end # @private def method_missing(meth, *args, &block) if attributes.include?(meth.to_s) if args.empty? attributes[meth.to_s] else raise ArgumentError, "wrong number of arguments (#{args.size} for 0)" end else super end end # @private def respond_to?(meth) super || attributes.include?(meth) end end end end
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 to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Worker that processes an API exception notification and creates {Occurrence} # and (if necessary) {Bug} records. This worker is responsible for determining # which Bug an Occurrence is part of, who is likely to be responsible for the # bug, and whether the Bug should be reopened or not. # # This is a slow process, so it is meant to be run asynchronously. The # initializer is intended to be run during the request, and will raise an # exception given malformed parameters. Otherwise, the {#perform} method should # be called in a separate thread to actually process the notification. # # The attributes passed to the initializer are used to construct the Occurrence, # with the exception of `api_key` and `environment`. Once the Occurrence is # built, it is linked to an existing matching Bug, or a new Bug if no matching # Bug can be found. # # When the Occurrence is created, it is assigned to a Bug by the {Blamer} class. class OccurrencesWorker include BackgroundRunner::Job # Keys that must be passed to the {.perform} method. (We also need either the # `build` or `revision` keys.) REQUIRED_KEYS = %w( api_key environment client backtraces class_name message occurred_at ) # @private attr_reader :project, :environment, :deploy # Included for BackgroundRunner compatibility. def self.perform(attrs) new(attrs).perform end # Creates a new worker ready to process an incoming notification. # # @param [Hash<String, Object>] attrs The queue item properties. # @raise [API::InvalidAttributesError] If the attributes are invalid. # @raise [API::UnknownAPIKeyError] If the API key is invalid. def initialize(attrs) @attrs = attrs.deep_clone raise API::InvalidAttributesError, "Missing required keys: #{(REQUIRED_KEYS - @attrs.select { |k, v| v.present? }.keys).to_sentence}" unless REQUIRED_KEYS.all? { |key| @attrs[key].present? } raise API::InvalidAttributesError, "revision or build must be specified" unless @attrs.include?('revision') || @attrs.include?('build') begin @project = Project.find_by_api_key!(@attrs.delete('api_key')) rescue ActiveRecord::RecordNotFound raise API::UnknownAPIKeyError, "Unknown API key" end env_name = @attrs.delete('environment') @environment = project.environments.with_name(env_name).find_or_create!(name: env_name) rescue ActiveRecord::RecordInvalid => err raise API::InvalidAttributesError, err.to_s end # Processes an exception notification. Builds an {Occurrence} and possibly a # {Bug}. def perform # First make an occurrence to perform a blame on commit = set_deploy_and_commit class_name = @attrs.delete('class_name') occurrence = build_occurrence(commit) # In order to use Blamer, we need to create a new, unsaved bug with the # class name and environment specified in @attrs. If blamer finds a matching # existing Bug, it will return that Bug, and the unsaved Bug will never be # saved. If however no matching bug is found, a new bug is created, saved, # and returned. In no case is the bug we create below saved. occurrence.bug = build_temporary_bug(class_name) blamer = project.blamer.new(occurrence) bug = blamer.find_or_create_bug! # these must be done after Blamer runs add_user_agent_data occurrence filter_pii(occurrence, class_name) unless project.disable_message_filtering? occurrence.message = occurrence.message.truncate(1000) occurrence.message ||= occurrence.class_name # hack for Java # hook things up and save occurrence.bug = bug Bug.transaction do bug.save! occurrence.save! end blamer.reopen_bug_if_necessary! bug occurrence rescue ActiveRecord::StatementInvalid => err if err.to_s.start_with?("ActiveRecord::JDBCError: ERROR: could not serialize access due to read/write dependencies among transactions") @retry_count ||= 0 if @retry_count > 5 Rails.logger.error "[OccurrencesWorker] Too many retries: #{err.to_s}" raise else @retry_count += 1 Rails.logger.error "[OccurrencesWorker] Retrying: #{err.to_s}" retry end else raise end rescue Object => err # don't get into an infinite loop of notifying Squash Rails.logger.error "-- ERROR IN OccurrencesWorker #{err.object_id} --" Rails.logger.error err Rails.logger.error err.backtrace.join("\n") Rails.logger.error @attrs.inspect Rails.logger.error "-- END ERROR #{err.object_id} --" raise if Rails.env.test? end private def build_temporary_bug(class_name) bug = environment.bugs.build bug.class_name = class_name bug.deploy = deploy return bug end def build_occurrence(sha) # extract top-level attributes and metadata; stick the rest in user_data occurrence_attrs = Hash.new other_data = Hash.new @attrs.each do |k, v| if Occurrence.attribute_names.include?(k) || Occurrence.metadata_column_fields.keys.map(&:to_s).include?(k) occurrence_attrs[k] = v else other_data[k] = v end end occurrence_attrs['query'] = occurrence_attrs['query'][0, 255] if occurrence_attrs['query'] occurrence_attrs['revision'] = sha occurrence = Occurrence.new(occurrence_attrs) occurrence.metadata = JSON.parse(occurrence.metadata).reverse_merge(other_data).to_json occurrence.message ||= occurrence.class_name # hack for Java # must symbolicate before assigning blame occurrence.symbolicate sourcemaps = environment.source_maps.where(revision: sha) occurrence.sourcemap(*sourcemaps) unless sourcemaps.empty? obfuscation_map = ObfuscationMap.joins(:deploy).where(deploys: {environment_id: environment.id, revision: sha}).first occurrence.deobfuscate(obfuscation_map) if obfuscation_map occurrence end def set_deploy_and_commit # We have a couple of options here, depending on the attributes we got from # the client... if @attrs['revision'].present? && @attrs['build'].present? # If we get both a revision and a build, then we can find a Deploy, or # create one if it doesn't exist, and use that. revision = @attrs['revision'] sha = project.blamer.resolve_revision(project, revision) @deploy = @environment.deploys.where(build: @attrs['build']).find_or_create!( deployed_at: Time.now, revision: sha ) elsif @attrs['revision'].present? # If we get only a revision, the Bug won't have a Deploy, but we still # have a revision to do blaming with. revision = @attrs['revision'] sha = project.blamer.resolve_revision(project, revision) elsif @attrs['build'].present? # If we get only a build, we can find the Deploy with that build number # and use it to get the revision. begin @deploy = environment.deploys.find_by_build(@attrs['build']) raise API::InvalidAttributesError, "Unknown build number" unless deploy sha = deploy.revision end else # If we get nothing, we can't do anything. raise API::InvalidAttributesError, "Missing required keys" end sha end def add_user_agent_data(occurrence) ua = if occurrence.headers && occurrence.headers['HTTP_USER_AGENT'] occurrence.headers['HTTP_USER_AGENT'] elsif occurrence.extra_data['user_agent'] occurrence.extra_data['user_agent'] else nil end return unless ua ua = Agent.new(ua) occurrence.browser_name = ua.name occurrence.browser_version = ua.version occurrence.browser_engine = ua.engine occurrence.browser_os = ua.os occurrence.browser_engine_version = ua.engine_version end def filter_pii(occurrence, class_name) occurrence.message = filter_pii_string(MessageTemplateMatcher.instance.matched_substring(class_name, occurrence.message)) occurrence.query = filter_pii_string(occurrence.query) if occurrence.query occurrence.path = filter_pii_string(occurrence.path) if occurrence.path occurrence.fragment = filter_pii_string(occurrence.fragment) if occurrence.fragment occurrence.parent_exceptions.each do |parent| parent['message'] = filter_pii_string(MessageTemplateMatcher.instance.matched_substring(parent['class_name'], parent['message'])) parent['ivars'].each { |name, param| parent['ivars'][name] = filter_pii_param(param) } end if occurrence.parent_exceptions %w(session headers flash params cookies ivars).each do |field| occurrence.send(field).each do |name, value| occurrence.send(field)[name] = filter_pii_param(value) end if occurrence.send(field) end end def filter_pii_param(param) case param when String filter_pii_string param when Hash param.each do |representation, value| next if %w(language class_name).include?(representation) param[representation] = filter_pii_string(value) end end end def filter_pii_string(str) str.gsub(/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i, '[EMAIL?]'). gsub(/\b(?:(?:\+?1\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))?\b/, '[PHONE?]'). gsub(/\b[0-9][0-9\-]{6,}[0-9]\b/, '[CC/BANK?]') end end
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 or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Runs all specs under the following environments: # # * MRI and JRuby # * LDAP-based and password-based authentication # * LDAP authentication with and without a bind DN # # All specs are run with JIRA and PagerDuty enabled. # # Note: This will take a long time, and requires that you have JRuby and MRI # environments set up appropriately. See the script for details. # # Also note: This script temporarily writes changes to the test config files. # It must be run with a clean `config/environments/test` directory. If it is # aborted partway through, you will need to clean up the files yourself. # Change this to, e.g., bundle update BUNDLE="bundle" # Change this to test only certain spec files COMMAND="rspec spec" TESTDIR="config/environments/test" AUTHFILE="${TESTDIR}/authentication.yml" ARFILE="${TESTDIR}/activerecord.yml" CONCFILE="${TESTDIR}/concurrency.yml" function reset_config() { git checkout Gemfile.lock # JIRA cat > ${TESTDIR}/jira.yml <<YAML --- disabled: false YAML # PagerDuty cat > ${TESTDIR}/pagerduty.yml <<YAML --- disabled: false YAML # Authentication cat > ${AUTHFILE} <<YAML --- strategy: password password: salt: abc123 YAML # Active Record cat > ${ARFILE} <<YAML --- cursor: false YAML # Mailer cat > ${TESTDIR}/mailer.yml <<YAML --- from: squash@example.com domain: example.com default_url_options: host: "test.host" protocol: http YAML # Concurrency cat > ${CONCFILE} <<YAML --- background_runner: Multithread multithread: priority_threshold: 50 pool_size: 20 max_threads: 100 priority: CommentNotificationMailer: 80 DeployFixMarker: 70 DeployNotificationMailer: 80 JiraStatusWorker: 20 ObfuscationMapWorker: 60 OccurrenceNotificationMailer: 80 OccurrencesWorker: 40 PagerDutyAcknowledger: 20 PagerDutyNotifier: 80 PagerDutyResolver: 20 ProjectRepoFetcher: 30 SourceMapWorker: 60 SymbolicationWorker: 60 YAML } ##### Cleanliness checks function check_clean() { if [[ `git status --porcelain -- ${TESTDIR}` ]]; then echo This script must be run with a clean ${TESTDIR} directory. exit 1 fi } ##### MRI (password auth) function run_password() { reset_config rvm 2.3@squash exec ${BUNDLE} rvm 2.3@squash exec ${COMMAND} echo echo "***** That was MRI with password auth ******" echo } ##### MRI (PostgreSQL cursors) function run_cursors() { reset_config cat > ${ARFILE} <<YAML --- cursors: true YAML rvm 2.3@squash exec ${BUNDLE} rvm 2.3@squash exec ${COMMAND} echo echo "***** That was MRI with password auth w/PostgreSQL cursors ******" echo } ##### MRI (password auth w/registration disabled) function run_reg_disabled() { reset_config cat > ${AUTHFILE} <<YAML --- strategy: password password: salt: abc123 registration_enabled: false YAML rvm 2.3@squash exec ${BUNDLE} rvm 2.3@squash exec ${COMMAND} echo echo "***** That was MRI with password auth w/registration disabled ******" echo } ##### JRuby (password auth) function run_jruby() { reset_config rvm jruby@squash exec ${BUNDLE} rvm jruby@squash exec ${COMMAND} echo echo "***** That was JRuby with password auth ******" echo } ##### LDAP authentication, no bind DN (MRI) function run_ldap() { reset_config cat > ${AUTHFILE} <<YAML --- strategy: ldap ldap: host: my.ldap.server port: 389 ssl: false tree_base: cn=users,dc=mycompany,dc=com search_key: uid YAML rvm 2.3@squash exec ${BUNDLE} rvm 2.3@squash exec ${COMMAND} echo echo "***** That was MRI with LDAP auth, no bind DN ******" echo } ##### LDAP authentication, with bind DN (MRI) function run_ldap_bind_dn() { reset_config cat > ${AUTHFILE} <<YAML --- strategy: ldap ldap: host: my.ldap.server port: 389 ssl: false tree_base: cn=users,dc=mycompany,dc=com search_key: uid bind_dn: cn=admins,ou=System,dc=mycompany,dc=com bind_password: password123 YAML rvm 2.3@squash exec ${BUNDLE} rvm 2.3@squash exec ${COMMAND} echo echo "***** That was MRI with LDAP auth + bind DN ******" echo } ##### Resque integration (MRI) function run_resque() { reset_config cat > ${CONCFILE} <<YAML --- background_runner: Resque resque: development: "localhost:6379" production: "localhost:6379" test: "localhost:6379" pool: squash: 2 YAML rvm 2.3@squash exec ${BUNDLE} rvm 2.3@squash exec ${COMMAND} echo echo "***** That was MRI with Resque ******" echo } ##### Sidekiq integration (MRI) function run_sidekiq() { reset_config cat > ${CONCFILE} <<YAML --- background_runner: Sidekiq sidekiq: redis: queue: "localhost:6379" YAML rvm 2.3@squash exec ${BUNDLE} rvm 2.3@squash exec ${COMMAND} echo echo "***** That was MRI with Sidekiq ******" echo } ##### MRI 2.0 (password auth) function run_mri20() { reset_config rvm 2.0@squash exec ${BUNDLE} rvm 2.0@squash exec ${COMMAND} echo echo "***** That was MRI 2.0 with password auth ******" echo } ##### MRI 2.1 (password auth) function run_mri21() { reset_config rvm 2.1@squash exec ${BUNDLE} rvm 2.1@squash exec ${COMMAND} echo echo "***** That was MRI 2.1 with password auth ******" echo } ##### MRI 2.2 (password auth) function run_mri22() { reset_config rvm 2.2@squash exec ${BUNDLE} rvm 2.2@squash exec ${COMMAND} echo echo "***** That was MRI 2.2 with password auth ******" echo } ##### Reset configuration function restore() { git checkout Gemfile.lock git checkout ${TESTDIR} git clean -df -- ${TESTDIR} } check_clean rvm 2.0 exec rvm gemset create squash rvm 2.1 exec rvm gemset create squash rvm 2.2 exec rvm gemset create squash rvm 2.3 exec rvm gemset create squash rvm jruby exec rvm gemset create squash run_password run_cursors run_reg_disabled run_jruby run_ldap run_ldap_bind_dn run_resque run_sidekiq run_mri20 run_mri21 run_mri22 restore
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 to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'rails_helper' RSpec.describe EmailsController, type: :controller do describe "#index" do before :each do @user = FactoryGirl.create(:user) @emails = FactoryGirl.create_list(:email, 11, user: @user) end it "should require a logged in user" do get :index, format: 'json' expect(response.status).to eql(401) expect(response.body).to be_blank end context "[authenticated]" do before(:each) { login_as @user } it "should load the first 10 emails" do get :index, format: 'json' expect(response.status).to eql(200) expect(response.body).to eql(@emails.sort_by(&:email)[0, 10].map { |e| e.as_json.merge(url: account_email_url(e)) }.to_json) end it "should filter emails given a query" do filter1 = FactoryGirl.create(:email, user: @user, email: 'filter1@example.com') filter2 = FactoryGirl.create(:email, user: @user, email: 'filter2@example.com') get :index, format: 'json', query: 'filter' expect(response.status).to eql(200) expect(response.body).to eql([filter1, filter2].map { |e| e.as_json.merge(url: account_email_url(e)) }.to_json) end it "should not include primary emails" do @user.emails.redirected.delete_all get :index, format: 'json' expect(response.status).to eql(200) expect(response.body).to eql('[]') end it "should not include project-specific emails if project_id is not set" do email = FactoryGirl.create(:email, user: @user, project: FactoryGirl.create(:membership, user: @user).project) get :index, format: 'json' expect(JSON.parse(response.body).map { |e| e['email'] }).not_to include(email.email) end it "should only include project-specific emails if project_id is set" do project = FactoryGirl.create(:membership, user: @user).project email1 = FactoryGirl.create(:email, user: @user, project: project) FactoryGirl.create :email, user: @user, project: FactoryGirl.create(:membership, user: @user).project get :index, project_id: project.to_param, format: 'json' expect(JSON.parse(response.body).map { |e| e['email'] }).to eql([email1.email]) end end end describe "#create" do before(:all) { @user = FactoryGirl.create(:user) } before(:each) { @user.emails.redirected.delete_all } it "should require a logged in user" do expect { post :create, format: 'json', email: {email: 'foo@bar.com'} }.not_to change(Email, :count) expect(response.status).to eql(401) expect(response.body).to be_blank end context "[authenticated]" do before(:each) { login_as @user } it "should create a new redirected email" do post :create, format: 'json', email: {email: 'new@example.com'} expect(response.status).to eql(201) expect(@user.emails.redirected.count).to eql(1) expect(@user.emails.redirected.first.email).to eql('new@example.com') expect(response.body).to eql(@user.emails.redirected.first.to_json) end it "should not allow a primary email to be created" do post :create, format: 'json', email: {email: 'new@example.com', primary: '1'} expect(@user.emails.find_by_email('new@example.com')).not_to be_primary end it "should handle validation errors" do post :create, format: 'json', email: {email: 'not an email'} expect(response.status).to eql(422) expect(response.body).to eql({email: {email: ['not a valid email address']}}.to_json) expect(@user.emails.redirected.count).to be_zero end it "should set project_id if given" do @user.emails.redirected.delete_all project = FactoryGirl.create(:membership, user: @user).project post :create, project_id: project.to_param, format: 'json', email: {email: 'new2@example.com'} expect(response.status).to eql(201) expect(@user.emails.redirected.first.project_id).to eql(project.id) end end end describe "#destroy" do before(:all) { @user = FactoryGirl.create(:user) } before :each do @user.emails.redirected.delete_all @email = FactoryGirl.create(:email, user: @user) end it "should require a logged in user" do expect { delete :destroy, id: @email.to_param, format: 'json' }.not_to change(Email, :count) expect(response.status).to eql(401) expect(response.body).to be_blank end context "[authenticated]" do before(:each) { login_as @user } it "should 404 given an unknown email" do delete :destroy, id: 'unknown@email.com', format: 'json' expect(response.status).to eql(404) end it "should not allow a primary email to be deleted" do delete :destroy, id: @user.email, format: 'json' expect(response.status).to eql(404) expect(@user.emails.count).to eql(2) end it "should delete a redirected email" do delete :destroy, id: @email.to_param, format: 'json' expect(response.status).to eql(204) expect(@user.emails.redirected.count).to be_zero end end end end
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 to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'rails_helper' RSpec.describe Multithread::PriorityQueue do before(:each) { @queue = Multithread::PriorityQueue.new(50, 10) } describe "#deq" do it "should deq items from the queue in priority order" do @queue.enq('10:1', 10) { 10 } @queue.enq('50', 50) { 50 } @queue.enq('10:2', 10) { 10 } @queue.enq('20', 20) { 20 } expect(@queue.deq(false).()).to eql(50) expect(@queue.deq(false).()).to eql(20) expect(@queue.deq(false).()).to eql(10) expect(@queue.deq(false).()).to eql(10) expect { @queue.deq(false) }.to raise_error(ThreadError) end it "should raise if the queue is empty" do expect(@queue).to be_empty expect { @queue.deq(false) }.to raise_error(ThreadError) end end describe "#enq" do it "should let low-priority jobs fall off if saturated" do 10.times { |i| @queue.enq(i.to_s, 50) { 50 } } expect(@queue).to be_saturated @queue.enq('new1', 10) { 10 } expect(@queue.size).to eql(10) @queue.enq('new2', 50) { 50 } expect(@queue.size).to eql(11) expect(@queue).to be_saturated end it "should not enqueue multiple copies of the same job" do @queue.enq('10', 10) { 10 } @queue.enq('50', 50) { 50 } @queue.enq('10', 10) { 10 } @queue.enq('20', 20) { 20 } expect(@queue.size).to eql(3) expect(@queue.deq(false).()).to eql(50) expect(@queue.deq(false).()).to eql(20) expect(@queue.deq(false).()).to eql(10) end end end
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 to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'rails_helper' RSpec.describe NotificationThreshold, type: :model do describe "#tripped?" do before :each do @threshold = FactoryGirl.create(:notification_threshold, threshold: 10, period: 10.minutes, last_tripped_at: 20.minutes.ago) end it "should return false if the threshold has not yet been exceeded within the period" do FactoryGirl.create_list :rails_occurrence, 9, bug: @threshold.bug expect(@threshold).not_to be_tripped end it "should return true if the threshold has been exceeded within the period" do FactoryGirl.create_list :rails_occurrence, 10, bug: @threshold.bug expect(@threshold).to be_tripped end it "should return false if the threshold was tripped within the last period" do FactoryGirl.create_list :rails_occurrence, 10, bug: @threshold.bug @threshold.last_tripped_at = 45.seconds.ago expect(@threshold).not_to be_tripped end end end
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 options. If you need to disable the plugin for some plots, you can just fix the size of their placeholders. */ /* Inline dependency: * jQuery resize event - v1.1 - 3/14/2010 * http://benalman.com/projects/jquery-resize-plugin/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/ */ (function($,h,c){var a=$([]),e=$.resize=$.extend($.resize,{}),i,k="setTimeout",j="resize",d=j+"-special-event",b="delay",f="throttleWindow";e[b]=250;e[f]=true;$.event.special[j]={setup:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.add(l);$.data(this,d,{w:l.width(),h:l.height()});if(a.length===1){g()}},teardown:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.not(l);l.removeData(d);if(!a.length){clearTimeout(i)}},add:function(l){if(!e[f]&&this[k]){return false}var n;function m(s,o,p){var q=$(this),r=$.data(this,d);r.w=o!==c?o:q.width();r.h=p!==c?p:q.height();n.apply(this,arguments)}if($.isFunction(l)){n=l;return m}else{n=l.handler;l.handler=m}}};function g(){i=h[k](function(){a.each(function(){var n=$(this),m=n.width(),l=n.height(),o=$.data(this,d);if(m!==o.w||l!==o.h){n.trigger(j,[o.w=m,o.h=l])}});g()},e[b])}})(jQuery,this); (function ($) { var options = { }; // no options function init(plot) { function onResize() { var placeholder = plot.getPlaceholder(); // somebody might have hidden us and we can't plot // when we don't have the dimensions if (placeholder.width() == 0 || placeholder.height() == 0) return; plot.resize(); plot.setupGrid(); plot.draw(); } function bindEvents(plot, eventHolder) { plot.getPlaceholder().resize(onResize); } function shutdown(plot, eventHolder) { plot.getPlaceholder().unbind("resize", onResize); } plot.hooks.bindEvents.push(bindEvents); plot.hooks.shutdown.push(shutdown); } $.plot.plugins.push({ init: init, options: options, name: 'resize', version: '1.0' }); })(jQuery);
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 Gorbatchev. * * @license * Dual licensed under the MIT and GPL licenses. */ ;(function() { // CommonJS SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null); function Brush() { function getKeywordsCSS(str) { return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b'; }; function getValuesCSS(str) { return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b'; }; var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' + 'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' + 'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' + 'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' + 'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' + 'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' + 'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' + 'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' + 'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' + 'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' + 'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' + 'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' + 'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' + 'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index'; var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+ 'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+ 'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+ 'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+ 'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+ 'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+ 'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+ 'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+ 'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+ 'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+ 'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+ 'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+ 'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+ 'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow'; var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif'; this.regexList = [ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors { regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes { regex: /!important/g, css: 'color3' }, // !important { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts ]; this.forHtmlScript({ left: /(&lt;|<)\s*style.*?(&gt;|>)/gi, right: /(&lt;|<)\/\s*style\s*(&gt;|>)/gi }); }; Brush.prototype = new SyntaxHighlighter.Highlighter(); Brush.aliases = ['css']; SyntaxHighlighter.brushes.CSS = Brush; // CommonJS typeof(exports) != 'undefined' ? exports.Brush = Brush : null; })();
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 Gorbatchev. * * @license * Dual licensed under the MIT and GPL licenses. */ ;(function() { // CommonJS SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null); function Brush() { // Contributed by Erik Peterson. var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' + 'END end ensure false for if in module new next nil not or raise redo rescue retry return ' + 'self super then throw true undef unless until when while yield'; var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' + 'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' + 'ThreadGroup Thread Time TrueClass'; this.regexList = [ { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings { regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants { regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols { regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords { regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins ]; this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); }; Brush.prototype = new SyntaxHighlighter.Highlighter(); Brush.aliases = ['ruby', 'rails', 'ror', 'rb']; SyntaxHighlighter.brushes.Ruby = Brush; // CommonJS typeof(exports) != 'undefined' ? exports.Brush = Brush : null; })();
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 object. # @overload <<(hash) # Adds the entries from another hash. # @param [::Hash] hash The additional keys to add. # @overload <<(path) # Adds the entries from a YAML file. The entries will be added under a # sub-hash named after the YAML file's name. # @param [String] path The path to a YAML file ending in ".yml". # @raise [ArgumentError] If the filename does not end in ".yml". def <<(hsh_or_path) case hsh_or_path when String raise ArgumentError, "Only files ending in .yml can be added" unless File.extname(hsh_or_path) == '.yml' return self unless File.exist?(hsh_or_path) data = load_preprocessed_yaml(hsh_or_path) deep_merge! File.basename(hsh_or_path, ".yml") => data when ::Hash deep_merge! hsh_or_path end end alias_method :push, :<< # @private def dup Hash.new(self) end # Recursively merges this hash with another hash. All nested hashes are forced # to be `Configoro::Hash` instances. # # @param [::Hash] other_hash The hash to merge into this one. # @return [Configoro::Hash] This object. def deep_merge!(other_hash) other_hash.each_pair do |k, v| tv = self[k] self[k] = if v.kind_of?(::Hash) then if tv.kind_of?(::Hash) then Configoro::Hash.new(tv).deep_merge!(v) else Configoro::Hash.new(v) end else v end end self end # @private # # To optimize access, we create a getter method every time we encounter a # key that exists in the hash. If the key is later deleted, the method will # be removed. def method_missing(meth, *args) if include?(meth.to_s) then if args.empty? then create_getter meth else raise ArgumentError, "wrong number of arguments (#{args.size} for 0)" end elsif meth.to_s =~ /^(.+)\?$/ and include?(root_meth = $1) then if args.empty? then !!create_getter(root_meth) #TODO duplication of logic else raise ArgumentError, "wrong number of arguments (#{args.size} for 0)" end else super end end # @private def inspect "#{to_hash.inspect}:#{self.class.to_s}" end protected def self.new_from_hash_copying_default(hash) Configoro::Hash.new(hash).tap do |new_hash| new_hash.default = hash.default end end def convert_value(value, options={}) if value.is_a? ::Hash if options[:for] == :to_hash value.to_hash else #value.nested_under_indifferent_access self.class.new_from_hash_copying_default(value) end elsif value.is_a?(Array) unless options[:for] == :assignment value = value.dup end value.map! { |e| convert_value(e, options) } else value end end private def create_getter(meth) singleton_class.send(:define_method, meth) do if include?(meth.to_s) then self[meth.to_s] else remove_getter meth end end singleton_class.send(:define_method, :"#{meth}?") do if include?(meth.to_s) then !!self[meth.to_s] else remove_getter meth end end self[meth.to_s] end def remove_getter(meth) if methods.include?(meth.to_sym) then instance_eval "undef #{meth.to_sym.inspect}" end if methods.include?(:"#{meth}?") then instance_eval "undef #{:"#{meth}?".inspect}" end raise NameError, "undefined local variable or method `#{meth}' for #{self.inspect}" end def load_preprocessed_yaml(path) YAML.load(ERB.new(IO.read(path)).result) end end end
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 InputCheckboxComponent extends BaseCvaComponent {}
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"; import { ProviderService } from "jslib-common/abstractions/provider.service"; import { Organization } from "jslib-common/models/domain/organization"; import { Provider } from "jslib-common/models/domain/provider"; import { WebProviderService } from "../services/webProvider.service"; @Component({ selector: "provider-add-organization", templateUrl: "add-organization.component.html", }) export class AddOrganizationComponent implements OnInit { @Input() providerId: string; @Input() organizations: Organization[]; @Output() onAddedOrganization = new EventEmitter(); provider: Provider; formPromise: Promise<any>; loading = true; constructor( private providerService: ProviderService, private webProviderService: WebProviderService, private i18nService: I18nService, private platformUtilsService: PlatformUtilsService, private validationService: ValidationService ) {} async ngOnInit() { await this.load(); } async load() { if (this.providerId == null) { return; } this.provider = await this.providerService.get(this.providerId); this.loading = false; } async add(organization: Organization) { if (this.formPromise) { return; } const confirmed = await this.platformUtilsService.showDialog( this.i18nService.t("addOrganizationConfirmation", organization.name, this.provider.name), organization.name, this.i18nService.t("yes"), this.i18nService.t("no"), "warning" ); if (!confirmed) { return false; } try { this.formPromise = this.webProviderService.addOrganizationToProvider( this.providerId, organization.id ); await this.formPromise; } catch (e) { this.validationService.showError(e); return; } finally { this.formPromise = null; } this.platformUtilsService.showToast( "success", null, this.i18nService.t("organizationJoinedProvider") ); this.onAddedOrganization.emit(); } }
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 { ModalService } from "jslib-angular/services/modal.service"; import { ValidationService } from "jslib-angular/services/validation.service"; 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/log.service"; import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service"; import { ProviderService } from "jslib-common/abstractions/provider.service"; import { SearchService } from "jslib-common/abstractions/search.service"; import { StateService } from "jslib-common/abstractions/state.service"; import { ProviderUserStatusType } from "jslib-common/enums/providerUserStatusType"; import { ProviderUserType } from "jslib-common/enums/providerUserType"; import { ProviderUserBulkRequest } from "jslib-common/models/request/provider/providerUserBulkRequest"; import { ProviderUserConfirmRequest } from "jslib-common/models/request/provider/providerUserConfirmRequest"; import { ListResponse } from "jslib-common/models/response/listResponse"; import { ProviderUserBulkResponse } from "jslib-common/models/response/provider/providerUserBulkResponse"; import { ProviderUserUserDetailsResponse } from "jslib-common/models/response/provider/providerUserResponse"; import { BasePeopleComponent } from "src/app/common/base.people.component"; import { BulkStatusComponent } from "src/app/organizations/manage/bulk/bulk-status.component"; import { EntityEventsComponent } from "src/app/organizations/manage/entity-events.component"; import { BulkConfirmComponent } from "./bulk/bulk-confirm.component"; import { BulkRemoveComponent } from "./bulk/bulk-remove.component"; import { UserAddEditComponent } from "./user-add-edit.component"; @Component({ selector: "provider-people", templateUrl: "people.component.html", }) export class PeopleComponent extends BasePeopleComponent<ProviderUserUserDetailsResponse> implements OnInit { @ViewChild("addEdit", { read: ViewContainerRef, static: true }) addEditModalRef: ViewContainerRef; @ViewChild("groupsTemplate", { read: ViewContainerRef, static: true }) groupsModalRef: ViewContainerRef; @ViewChild("eventsTemplate", { read: ViewContainerRef, static: true }) eventsModalRef: ViewContainerRef; @ViewChild("bulkStatusTemplate", { read: ViewContainerRef, static: true }) bulkStatusModalRef: ViewContainerRef; @ViewChild("bulkConfirmTemplate", { read: ViewContainerRef, static: true }) bulkConfirmModalRef: ViewContainerRef; @ViewChild("bulkRemoveTemplate", { read: ViewContainerRef, static: true }) bulkRemoveModalRef: ViewContainerRef; userType = ProviderUserType; userStatusType = ProviderUserStatusType; providerId: string; accessEvents = false; constructor( apiService: ApiService, private route: ActivatedRoute, i18nService: I18nService, modalService: ModalService, platformUtilsService: PlatformUtilsService, cryptoService: CryptoService, private router: Router, searchService: SearchService, validationService: ValidationService, logService: LogService, searchPipe: SearchPipe, userNamePipe: UserNamePipe, stateService: StateService, private providerService: ProviderService ) { super( apiService, searchService, i18nService, platformUtilsService, cryptoService, validationService, modalService, logService, searchPipe, userNamePipe, stateService ); } ngOnInit() { this.route.parent.params.subscribe(async (params) => { this.providerId = params.providerId; const provider = await this.providerService.get(this.providerId); if (!provider.canManageUsers) { this.router.navigate(["../"], { relativeTo: this.route }); return; } this.accessEvents = provider.useEvents; await this.load(); this.route.queryParams.pipe(first()).subscribe(async (qParams) => { this.searchText = qParams.search; if (qParams.viewEvents != null) { const user = this.users.filter((u) => u.id === qParams.viewEvents); if (user.length > 0 && user[0].status === ProviderUserStatusType.Confirmed) { this.events(user[0]); } } }); }); } getUsers(): Promise<ListResponse<ProviderUserUserDetailsResponse>> { return this.apiService.getProviderUsers(this.providerId); } deleteUser(id: string): Promise<any> { return this.apiService.deleteProviderUser(this.providerId, id); } reinviteUser(id: string): Promise<any> { return this.apiService.postProviderUserReinvite(this.providerId, id); } async confirmUser(user: ProviderUserUserDetailsResponse, publicKey: Uint8Array): Promise<any> { const providerKey = await this.cryptoService.getProviderKey(this.providerId); const key = await this.cryptoService.rsaEncrypt(providerKey.key, publicKey.buffer); const request = new ProviderUserConfirmRequest(); request.key = key.encryptedString; await this.apiService.postProviderUserConfirm(this.providerId, user.id, request); } async edit(user: ProviderUserUserDetailsResponse) { const [modal] = await this.modalService.openViewRef( UserAddEditComponent, this.addEditModalRef, (comp) => { comp.name = this.userNamePipe.transform(user); comp.providerId = this.providerId; comp.providerUserId = user != null ? user.id : null; comp.onSavedUser.subscribe(() => { modal.close(); this.load(); }); comp.onDeletedUser.subscribe(() => { modal.close(); this.removeUser(user); }); } ); } async events(user: ProviderUserUserDetailsResponse) { await this.modalService.openViewRef(EntityEventsComponent, this.eventsModalRef, (comp) => { comp.name = this.userNamePipe.transform(user); comp.providerId = this.providerId; comp.entityId = user.id; comp.showUser = false; comp.entity = "user"; }); } async bulkRemove() { if (this.actionPromise != null) { return; } const [modal] = await this.modalService.openViewRef( BulkRemoveComponent, this.bulkRemoveModalRef, (comp) => { comp.providerId = this.providerId; comp.users = this.getCheckedUsers(); } ); await modal.onClosedPromise(); await this.load(); } async bulkReinvite() { if (this.actionPromise != null) { return; } const users = this.getCheckedUsers(); const filteredUsers = users.filter((u) => u.status === ProviderUserStatusType.Invited); if (filteredUsers.length <= 0) { this.platformUtilsService.showToast( "error", this.i18nService.t("errorOccurred"), this.i18nService.t("noSelectedUsersApplicable") ); return; } try { const request = new ProviderUserBulkRequest(filteredUsers.map((user) => user.id)); const response = this.apiService.postManyProviderUserReinvite(this.providerId, request); this.showBulkStatus( users, filteredUsers, response, this.i18nService.t("bulkReinviteMessage") ); } catch (e) { this.validationService.showError(e); } this.actionPromise = null; } async bulkConfirm() { if (this.actionPromise != null) { return; } const [modal] = await this.modalService.openViewRef( BulkConfirmComponent, this.bulkConfirmModalRef, (comp) => { comp.providerId = this.providerId; comp.users = this.getCheckedUsers(); } ); await modal.onClosedPromise(); await this.load(); } private async showBulkStatus( users: ProviderUserUserDetailsResponse[], filteredUsers: ProviderUserUserDetailsResponse[], request: Promise<ListResponse<ProviderUserBulkResponse>>, successfullMessage: string ) { const [modal, childComponent] = await this.modalService.openViewRef( BulkStatusComponent, this.bulkStatusModalRef, (comp) => { comp.loading = true; } ); // Workaround to handle closing the modal shortly after it has been opened let close = false; modal.onShown.subscribe(() => { if (close) { modal.close(); } }); try { const response = await request; if (modal) { const keyedErrors: any = response.data .filter((r) => r.error !== "") .reduce((a, x) => ({ ...a, [x.id]: x.error }), {}); const keyedFilteredUsers: any = filteredUsers.reduce((a, x) => ({ ...a, [x.id]: x }), {}); childComponent.users = users.map((user) => { let message = keyedErrors[user.id] ?? successfullMessage; // eslint-disable-next-line if (!keyedFilteredUsers.hasOwnProperty(user.id)) { message = this.i18nService.t("bulkFilteredMessage"); } return { user: user, error: keyedErrors.hasOwnProperty(user.id), // eslint-disable-line message: message, }; }); childComponent.loading = false; } } catch { close = true; modal.close(); } } }
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_license/src/app/app.module#AppModule", sourceMap: true, }); module.exports = webpackConfig;
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"> <p> {{ "recoverAccountTwoStepDesc" | i18n }} <a href="https://bitwarden.com/help/lost-two-step-device/" target="_blank" rel="noopener" >{{ "learnMore" | i18n }}</a > </p> <div class="form-group"> <label for="email">{{ "emailAddress" | i18n }}</label> <input id="email" class="form-control" type="text" name="Email" [(ngModel)]="email" required appAutofocus inputmode="email" appInputVerbatim="false" /> </div> <div class="form-group"> <label for="masterPassword">{{ "masterPass" | i18n }}</label> <input id="masterPassword" type="password" name="MasterPassword" class="form-control" [(ngModel)]="masterPassword" required appInputVerbatim /> </div> <div class="form-group"> <label for="recoveryCode">{{ "recoveryCodeTitle" | i18n }}</label> <input id="recoveryCode" class="text-monospace form-control" type="text" name="RecoveryCode" [(ngModel)]="recoveryCode" required appInputVerbatim /> </div> <hr /> <div class="d-flex"> <button type="submit" class="btn btn-primary btn-block btn-submit" [disabled]="form.loading" > <span>{{ "submit" | i18n }}</span> <i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true" ></i> </button> <a routerLink="/login" class="btn btn-outline-secondary btn-block ml-2 mt-0"> {{ "cancel" | i18n }} </a> </div> </div> </div> </div> </div> </form>
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"> <app-callout type="warning">{{ "updateMasterPasswordWarning" | i18n }} </app-callout> <div class="form-group"> <app-callout type="info" [enforcedPolicyOptions]="enforcedPolicyOptions" *ngIf="enforcedPolicyOptions" > </app-callout> <label for="masterPassword">{{ "masterPass" | i18n }}</label> <div class="d-flex"> <div class="w-100"> <input id="masterPassword" type="{{ showPassword ? 'text' : 'password' }}" name="MasterPasswordHash" class="text-monospace form-control mb-1" [(ngModel)]="masterPassword" (input)="updatePasswordStrength()" required appInputVerbatim /> <app-password-strength [score]="masterPasswordScore" [showText]="true"> </app-password-strength> </div> <div> <button type="button" class="ml-1 btn btn-link" appA11yTitle="{{ 'toggleVisibility' | i18n }}" (click)="togglePassword(false)" > <i class="bwi bwi-lg" aria-hidden="true" [ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }" ></i> </button> <div class="progress-bar invisible"></div> </div> </div> </div> <div class="form-group"> <label for="masterPasswordRetype">{{ "reTypeMasterPass" | i18n }}</label> <div class="d-flex"> <input id="masterPasswordRetype" type="{{ showPassword ? 'text' : 'password' }}" name="MasterPasswordRetype" class="text-monospace form-control" [(ngModel)]="masterPasswordRetype" required appInputVerbatim /> <button type="button" class="ml-1 btn btn-link" appA11yTitle="{{ 'toggleVisibility' | i18n }}" (click)="togglePassword(true)" > <i class="bwi bwi-lg" aria-hidden="true" [ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }" ></i> </button> </div> </div> <div class="form-group"> <label for="hint">{{ "masterPassHint" | i18n }}</label> <input id="hint" class="form-control" type="text" name="Hint" [(ngModel)]="hint" /> <small class="form-text text-muted">{{ "masterPassHintDesc" | i18n }}</small> </div> <hr /> <div class="d-flex"> <button type="submit" class="btn btn-primary btn-block btn-submit" [disabled]="form.loading" > <i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true" ></i> <span>{{ "submit" | i18n }}</span> </button> <button type="button" class="btn btn-outline-secondary btn-block ml-2 mt-0" (click)="logOut()" > {{ "logOut" | i18n }} </button> </div> </div> </div> </div> </div> </form>
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"> {{ "passwordConfirmation" | i18n }} </h2> <button type="button" class="close" data-dismiss="modal"> <span aria-hidden="true">&times;</span> </button> </div> <div class="modal-body"> {{ "passwordConfirmationDesc" | i18n }} <div class="form-group"> <label for="masterPassword">{{ "masterPass" | i18n }}</label> <div class="d-flex"> <input id="masterPassword" type="{{ showPassword ? 'text' : 'password' }}" name="MasterPassword" class="text-monospace form-control" [(ngModel)]="masterPassword" required appAutofocus appInputVerbatim /> <button type="button" class="ml-1 btn btn-link" appA11yTitle="{{ 'toggleVisibility' | i18n }}" (click)="togglePassword()" > <i class="bwi bwi-lg" aria-hidden="true" [ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }" ></i> </button> </div> </div> </div> <div class="modal-footer"> <button type="submit" class="btn btn-primary btn-submit" appBlurClick> <span>{{ "ok" | i18n }}</span> </button> <button type="button" class="btn btn-outline-secondary" data-dismiss="modal"> {{ "cancel" | i18n }} </button> </div> </form> </div> </div>
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 > <div class="modal-header"> <h2 class="modal-title" id="userAccessTitle"> {{ "userAccess" | i18n }} <small>{{ entityName }}</small> </h2> <button type="button" class="close" data-dismiss="modal" appA11yTitle="{{ 'close' | i18n }}" > <span aria-hidden="true">&times;</span> </button> </div> <div class="modal-body" *ngIf="loading || !users"> <i class="bwi bwi-spinner bwi-spin text-muted" title="{{ 'loading' | i18n }}" aria-hidden="true" ></i> <span class="sr-only">{{ "loading" | i18n }}</span> </div> <cdk-virtual-scroll-viewport itemSize="46" minBufferPx="600" maxBufferPx="1200" [style]="scrollViewportStyle" > <div class="modal-body" *ngIf="!loading && users && searchedUsers"> <div class="d-flex"> <div class="mr-3"> <label class="sr-only" for="search">{{ "search" | i18n }}</label> <input type="search" class="form-control form-control-sm" id="search" placeholder="{{ 'search' | i18n }}" name="SearchText" [(ngModel)]="searchText" /> </div> <div class="btn-group btn-group-sm" role="group"> <button type="button" class="btn btn-outline-secondary" [ngClass]="{ active: !showSelected }" (click)="filterSelected(false)" > {{ "all" | i18n }} </button> <button type="button" class="btn btn-outline-secondary" [ngClass]="{ active: showSelected }" (click)="filterSelected(true)" > {{ "selected" | i18n }} <span class="badge badge-pill badge-info" *ngIf="selectedCount">{{ selectedCount }}</span> </button> </div> </div> <ng-container *ngIf="!searchedUsers.length"> <hr /> {{ "noUsersInList" | i18n }} </ng-container> <table class="table table-hover table-list mb-0" [hidden]="!searchedUsers.length"> <thead> <tr> <th>&nbsp;</th> <th>&nbsp;</th> <th>{{ "name" | i18n }}</th> <th *ngIf="entity === 'collection'">&nbsp;</th> <th>{{ "userType" | i18n }}</th> <th width="100" class="text-center" *ngIf="entity === 'collection'"> {{ "hidePasswords" | i18n }} </th> <th width="100" class="text-center" *ngIf="entity === 'collection'"> {{ "readOnly" | i18n }} </th> </tr> </thead> <tbody> <tr *cdkVirtualFor="let u of searchedUsers" class=""> <td class="table-list-checkbox" (click)="check(u)"> <input type="checkbox" [(ngModel)]="u.checked" name="{{ u.id.substr(0, 8) }}_Checked" [disabled]="entity === 'collection' && u.accessAll" (change)="selectedChanged(u)" appStopProp /> </td> <td width="30" (click)="check(u)"> <app-avatar [data]="u | userName" [email]="u.email" size="25" [circle]="true" [fontSize]="14" > </app-avatar> </td> <td> {{ u.email }} <span class="badge badge-secondary" *ngIf="u.status === organizationUserStatusType.Invited" >{{ "invited" | i18n }}</span > <span class="badge badge-warning" *ngIf="u.status === organizationUserStatusType.Accepted" >{{ "accepted" | i18n }}</span > <small class="text-muted d-block" *ngIf="u.name">{{ u.name }}</small> </td> <td *ngIf="entity === 'collection'"> <ng-container *ngIf="u.accessAll"> <i class="bwi bwi-filter" title="{{ 'userAccessAllItems' | i18n }}" aria-hidden="true" ></i> <span class="sr-only">{{ "userAccessAllItems" | i18n }}</span> </ng-container> </td> <td> <span *ngIf="u.type === organizationUserType.Owner">{{ "owner" | i18n }}</span> <span *ngIf="u.type === organizationUserType.Admin">{{ "admin" | i18n }}</span> <span *ngIf="u.type === organizationUserType.Manager">{{ "manager" | i18n }}</span> <span *ngIf="u.type === organizationUserType.User">{{ "user" | i18n }}</span> <span *ngIf="u.type === organizationUserType.Custom">{{ "custom" | i18n }}</span> </td> <td class="text-center" *ngIf="entity === 'collection'"> <input type="checkbox" [(ngModel)]="u.hidePasswords" name="{{ u.id.substr(0, 8) }}_HidePasswords" [disabled]="u.accessAll || !u.checked" /> </td> <td class="text-center" *ngIf="entity === 'collection'"> <input type="checkbox" [(ngModel)]="u.readOnly" name="{{ u.id.substr(0, 8) }}_ReadOnly" [disabled]="u.accessAll || !u.checked" /> </td> </tr> </tbody> </table> </div> </cdk-virtual-scroll-viewport> <div class="modal-footer"> <button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading"> <i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i> <span>{{ "save" | i18n }}</span> </button> <button type="button" class="btn btn-outline-secondary" data-dismiss="modal"> {{ "close" | i18n }} </button> </div> </form> </div> </div>
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 class OrganizationFilterComponent extends BaseOrganizationFilterComponent { displayText = "allVaults"; }
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], }) export class OrganizationBadgeModule {}
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 }} </h2> <button type="button" class="close" data-dismiss="modal" appA11yTitle="{{ 'close' | i18n }}" > <span aria-hidden="true">&times;</span> </button> </div> <div class="modal-body"> <div class="card-body text-center" *ngIf="loading"> <i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i> {{ "loading" | i18n }} </div> <table class="table table-hover table-list" *ngIf="!loading"> <thead> <tr> <th colspan="2">{{ "user" | i18n }}</th> <th>{{ "status" | i18n }}</th> </tr> </thead> <tr *ngFor="let item of users"> <td width="30"> <app-avatar [data]="item.user | userName" [email]="item.user.email" size="25" [circle]="true" [fontSize]="14" ></app-avatar> </td> <td> {{ item.user.email }} <small class="text-muted d-block" *ngIf="item.user.name">{{ item.user.name }}</small> </td> <td class="text-danger" *ngIf="item.error"> {{ item.message }} </td> <td *ngIf="!item.error"> {{ item.message }} </td> </tr> </table> </div> <div class="modal-footer"> <button type="button" class="btn btn-outline-secondary" data-dismiss="modal"> {{ "close" | i18n }} </button> </div> </div> </div> </div>
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"; import { OrganizationService } from "jslib-common/abstractions/organization.service"; import { PasswordRepromptService } from "jslib-common/abstractions/passwordReprompt.service"; import { StateService } from "jslib-common/abstractions/state.service"; import { Cipher } from "jslib-common/models/domain/cipher"; import { CipherView } from "jslib-common/models/view/cipherView"; import { ReusedPasswordsReportComponent as BaseReusedPasswordsReportComponent } from "../../reports/reused-passwords-report.component"; @Component({ selector: "app-reused-passwords-report", templateUrl: "../../reports/reused-passwords-report.component.html", }) export class ReusedPasswordsReportComponent extends BaseReusedPasswordsReportComponent { manageableCiphers: Cipher[]; constructor( cipherService: CipherService, modalService: ModalService, messagingService: MessagingService, stateService: StateService, private route: ActivatedRoute, private organizationService: OrganizationService, passwordRepromptService: PasswordRepromptService ) { super(cipherService, modalService, messagingService, stateService, passwordRepromptService); } async ngOnInit() { this.route.parent.parent.params.subscribe(async (params) => { this.organization = await this.organizationService.get(params.organizationId); this.manageableCiphers = await this.cipherService.getAll(); await super.ngOnInit(); }); } getAllCiphers(): Promise<CipherView[]> { return this.cipherService.getAllFromApiForOrganization(this.organization.id); } canManageCipher(c: CipherView): boolean { return this.manageableCiphers.some((x) => x.id === c.id); } }
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"; import { StateService } from "jslib-common/abstractions/state.service"; import { CipherRepromptType } from "jslib-common/enums/cipherRepromptType"; import { Organization } from "jslib-common/models/domain/organization"; import { CipherView } from "jslib-common/models/view/cipherView"; import { AddEditComponent as OrgAddEditComponent } from "../organizations/vault/add-edit.component"; import { AddEditComponent } from "../vault/add-edit.component"; @Directive() export class CipherReportComponent { @ViewChild("cipherAddEdit", { read: ViewContainerRef, static: true }) cipherAddEditModalRef: ViewContainerRef; loading = false; hasLoaded = false; ciphers: CipherView[] = []; organization: Organization; constructor( private modalService: ModalService, protected messagingService: MessagingService, public requiresPaid: boolean, private stateService: StateService, protected passwordRepromptService: PasswordRepromptService ) {} async load() { this.loading = true; await this.setCiphers(); this.loading = false; this.hasLoaded = true; } async selectCipher(cipher: CipherView) { if (!(await this.repromptCipher(cipher))) { return; } const type = this.organization != null ? OrgAddEditComponent : AddEditComponent; const [modal, childComponent] = await this.modalService.openViewRef( type, this.cipherAddEditModalRef, (comp: OrgAddEditComponent | AddEditComponent) => { if (this.organization != null) { (comp as OrgAddEditComponent).organization = this.organization; comp.organizationId = this.organization.id; } comp.cipherId = cipher == null ? null : cipher.id; comp.onSavedCipher.subscribe(async () => { modal.close(); await this.load(); }); comp.onDeletedCipher.subscribe(async () => { modal.close(); await this.load(); }); comp.onRestoredCipher.subscribe(async () => { modal.close(); await this.load(); }); } ); return childComponent; } protected async checkAccess(): Promise<boolean> { if (this.organization != null) { // TODO: Maybe we want to just make sure they are not on a free plan? Just compare useTotp for now // since all paid plans include useTotp if (this.requiresPaid && !this.organization.useTotp) { this.messagingService.send("upgradeOrganization", { organizationId: this.organization.id }); return false; } } else { const accessPremium = await this.stateService.getCanAccessPremium(); if (this.requiresPaid && !accessPremium) { this.messagingService.send("premiumRequired"); this.loading = false; return false; } } return true; } protected async setCiphers() { this.ciphers = []; } protected async repromptCipher(c: CipherView) { return ( c.reprompt === CipherRepromptType.None || (await this.passwordRepromptService.showPasswordPrompt()) ); } }
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> </small> </h1> </div> <p>{{ "weakPasswordsReportDesc" | i18n }}</p> <div *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> </div> <div class="mt-4" *ngIf="hasLoaded"> <app-callout type="success" title="{{ 'goodNews' | i18n }}" *ngIf="!ciphers.length"> {{ "noWeakPasswords" | i18n }} </app-callout> <ng-container *ngIf="ciphers.length"> <app-callout type="danger" title="{{ 'weakPasswordsFound' | i18n }}"> {{ "weakPasswordsFoundDesc" | i18n: (ciphers.length | number) }} </app-callout> <table class="table table-hover table-list table-ciphers"> <tbody> <tr *ngFor="let c of ciphers"> <td class="table-list-icon"> <app-vault-icon [cipher]="c"></app-vault-icon> </td> <td class="reduced-lh wrap"> <ng-container *ngIf="!organization || canManageCipher(c); else cantManage"> <a href="#" appStopClick (click)="selectCipher(c)" title="{{ 'editItem' | i18n }}">{{ c.name }}</a> </ng-container> <ng-template #cantManage> <span>{{ c.name }}</span> </ng-template> <ng-container *ngIf="!organization && c.organizationId"> <i class="bwi bwi-collection" appStopProp title="{{ 'shared' | i18n }}" aria-hidden="true" ></i> <span class="sr-only">{{ "shared" | i18n }}</span> </ng-container> <ng-container *ngIf="c.hasAttachments"> <i class="bwi bwi-paperclip" appStopProp title="{{ 'attachments' | i18n }}" aria-hidden="true" ></i> <span class="sr-only">{{ "attachments" | i18n }}</span> </ng-container> <br /> <small>{{ c.subTitle }}</small> </td> <td class="text-right"> <span class="badge badge-{{ passwordStrengthMap.get(c.id)[1] }}"> {{ passwordStrengthMap.get(c.id)[0] | i18n }} </span> </td> </tr> </tbody> </table> </ng-container> </div> <ng-template #cipherAddEdit></ng-template>
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 border-0 mb-0"> <h1>{{ "dangerZone" | i18n }}</h1> </div> <div class="card border-danger"> <div class="card-body"> <p>{{ "dangerZoneDesc" | i18n }}</p> <button bitButton buttonType="danger" (click)="deauthorizeSessions()"> {{ "deauthorizeSessions" | i18n }} </button> <button bitButton buttonType="danger" (click)="purgeVault()"> {{ "purgeVault" | i18n }} </button> <button bitButton buttonType="danger" (click)="deleteAccount()"> {{ "deleteAccount" | i18n }} </button> </div> </div> <ng-template #deauthorizeSessionsTemplate></ng-template> <ng-template #purgeVaultTemplate></ng-template> <ng-template #deleteAccountTemplate></ng-template> <ng-template #viewUserApiKeyTemplate></ng-template> <ng-template #rotateUserApiKeyTemplate></ng-template>
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()" [appApiAction]="formPromise" ngNativeValidate autocomplete="off"> <div class="row"> <div class="col-6"> <div class="form-group"> <label for="currentMasterPassword">{{ "currentMasterPass" | i18n }}</label> <input id="currentMasterPassword" type="password" name="MasterPasswordHash" class="form-control" [(ngModel)]="currentMasterPassword" required appInputVerbatim /> </div> </div> </div> <div class="row"> <div class="col-6"> <div class="form-group"> <label for="newMasterPassword">{{ "newMasterPass" | i18n }}</label> <input id="newMasterPassword" type="password" name="NewMasterPasswordHash" class="form-control mb-1" [(ngModel)]="masterPassword" (input)="updatePasswordStrength()" required appInputVerbatim autocomplete="new-password" /> <app-password-strength [score]="masterPasswordScore" [showText]="true" ></app-password-strength> </div> </div> <div class="col-6"> <div class="form-group"> <label for="masterPasswordRetype">{{ "confirmNewMasterPass" | i18n }}</label> <input id="masterPasswordRetype" type="password" name="MasterPasswordRetype" class="form-control" [(ngModel)]="masterPasswordRetype" required appInputVerbatim autocomplete="new-password" /> </div> </div> </div> <div class="form-group"> <div class="form-check"> <input class="form-check-input" type="checkbox" id="rotateEncKey" name="RotateEncKey" [(ngModel)]="rotateEncKey" (change)="rotateEncKeyClicked()" /> <label class="form-check-label" for="rotateEncKey"> {{ "rotateAccountEncKey" | i18n }} </label> <a href="https://bitwarden.com/help/account-encryption-key/#rotate-your-encryption-key" target="_blank" rel="noopener" appA11yTitle="{{ 'learnMore' | i18n }}" > <i class="bwi bwi-question-circle" aria-hidden="true"></i> </a> </div> </div> <button bitButton buttonType="primary" class="btn-submit" [disabled]="form.loading"> <i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i> <span>{{ "changeMasterPassword" | i18n }}</span> </button> </form>
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"; import { I18nService } from "jslib-common/abstractions/i18n.service"; import { LogService } from "jslib-common/abstractions/log.service"; import { MessagingService } from "jslib-common/abstractions/messaging.service"; import { PasswordGenerationService } from "jslib-common/abstractions/passwordGeneration.service"; import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service"; import { PolicyService } from "jslib-common/abstractions/policy.service"; import { StateService } from "jslib-common/abstractions/state.service"; import { KdfType } from "jslib-common/enums/kdfType"; import { PolicyData } from "jslib-common/models/data/policyData"; import { Policy } from "jslib-common/models/domain/policy"; import { SymmetricCryptoKey } from "jslib-common/models/domain/symmetricCryptoKey"; import { EmergencyAccessPasswordRequest } from "jslib-common/models/request/emergencyAccessPasswordRequest"; import { PolicyResponse } from "jslib-common/models/response/policyResponse"; @Component({ selector: "emergency-access-takeover", templateUrl: "emergency-access-takeover.component.html", }) export class EmergencyAccessTakeoverComponent extends ChangePasswordComponent implements OnInit { @Output() onDone = new EventEmitter(); @Input() emergencyAccessId: string; @Input() name: string; @Input() email: string; @Input() kdf: KdfType; @Input() kdfIterations: number; formPromise: Promise<any>; constructor( i18nService: I18nService, cryptoService: CryptoService, messagingService: MessagingService, stateService: StateService, passwordGenerationService: PasswordGenerationService, platformUtilsService: PlatformUtilsService, policyService: PolicyService, private apiService: ApiService, private logService: LogService ) { super( i18nService, cryptoService, messagingService, passwordGenerationService, platformUtilsService, policyService, stateService ); } async ngOnInit() { const response = await this.apiService.getEmergencyGrantorPolicies(this.emergencyAccessId); if (response.data != null && response.data.length > 0) { const policies = response.data.map( (policyResponse: PolicyResponse) => new Policy(new PolicyData(policyResponse)) ); this.enforcedPolicyOptions = await this.policyService.getMasterPasswordPolicyOptions( policies ); } } async submit() { if (!(await this.strongPassword())) { return; } const takeoverResponse = await this.apiService.postEmergencyAccessTakeover( this.emergencyAccessId ); const oldKeyBuffer = await this.cryptoService.rsaDecrypt(takeoverResponse.keyEncrypted); const oldEncKey = new SymmetricCryptoKey(oldKeyBuffer); if (oldEncKey == null) { this.platformUtilsService.showToast( "error", this.i18nService.t("errorOccurred"), this.i18nService.t("unexpectedError") ); return; } const key = await this.cryptoService.makeKey( this.masterPassword, this.email, takeoverResponse.kdf, takeoverResponse.kdfIterations ); const masterPasswordHash = await this.cryptoService.hashPassword(this.masterPassword, key); const encKey = await this.cryptoService.remakeEncKey(key, oldEncKey); const request = new EmergencyAccessPasswordRequest(); request.newMasterPasswordHash = masterPasswordHash; request.key = encKey[1].encryptedString; this.apiService.postEmergencyAccessPassword(this.emergencyAccessId, request); try { this.onDone.emit(); } catch (e) { this.logService.error(e); } } }
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 > <div class="row"> <div class="col-6"> <div class="form-group"> <label for="name">{{ "name" | i18n }}</label> <input id="name" class="form-control" type="text" name="Name" [(ngModel)]="profile.name" /> </div> <div class="form-group"> <label for="email">{{ "email" | i18n }}</label> <input id="email" class="form-control" type="text" name="Email" [(ngModel)]="profile.email" readonly /> </div> <div class="form-group" *ngIf="!hidePasswordHint"> <label for="masterPasswordHint">{{ "masterPassHintLabel" | i18n }}</label> <input id="masterPasswordHint" class="form-control" type="text" name="MasterPasswordHint" [(ngModel)]="profile.masterPasswordHint" /> </div> </div> <div class="col-6"> <div class="mb-3"> <app-avatar data="{{ profile | userName }}" [email]="profile.email" dynamic="true" size="75" fontSize="35" > </app-avatar> </div> <hr /> <p *ngIf="fingerprint"> {{ "yourAccountsFingerprint" | i18n }}: <a href="https://bitwarden.com/help/fingerprint-phrase/" target="_blank" rel="noopener" appA11yTitle="{{ 'learnMore' | i18n }}" > <i class="bwi bwi-question-circle" aria-hidden="true"></i></a ><br /> <code>{{ fingerprint }}</code> </p> </div> </div> <button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading"> <i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i> <span>{{ "save" | i18n }}</span> </button> </form>
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" routerLink="payment-method" routerLinkActive="active"> {{ "paymentMethod" | i18n }} </a> </li> <li class="nav-item"> <a class="nav-link" routerLink="billing-history" routerLinkActive="active"> {{ "billingHistory" | i18n }} </a> </li> </ul> </div> <router-outlet></router-outlet>
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 { TwoFactorProviderType } from "jslib-common/enums/twoFactorProviderType"; import { VerificationType } from "jslib-common/enums/verificationType"; import { SecretVerificationRequest } from "jslib-common/models/request/secretVerificationRequest"; import { TwoFactorAuthenticatorResponse } from "jslib-common/models/response/twoFactorAuthenticatorResponse"; import { TwoFactorDuoResponse } from "jslib-common/models/response/twoFactorDuoResponse"; import { TwoFactorEmailResponse } from "jslib-common/models/response/twoFactorEmailResponse"; import { TwoFactorRecoverResponse } from "jslib-common/models/response/twoFactorRescoverResponse"; import { TwoFactorWebAuthnResponse } from "jslib-common/models/response/twoFactorWebAuthnResponse"; import { TwoFactorYubiKeyResponse } from "jslib-common/models/response/twoFactorYubiKeyResponse"; import { Verification } from "jslib-common/types/verification"; type TwoFactorResponse = | TwoFactorRecoverResponse | TwoFactorDuoResponse | TwoFactorEmailResponse | TwoFactorWebAuthnResponse | TwoFactorAuthenticatorResponse | TwoFactorYubiKeyResponse; @Component({ selector: "app-two-factor-verify", templateUrl: "two-factor-verify.component.html", }) export class TwoFactorVerifyComponent { @Input() type: TwoFactorProviderType; @Input() organizationId: string; @Output() onAuthed = new EventEmitter<any>(); secret: Verification; formPromise: Promise<TwoFactorResponse>; constructor( private apiService: ApiService, private logService: LogService, private userVerificationService: UserVerificationService ) {} async submit() { let hashedSecret: string; try { this.formPromise = this.userVerificationService.buildRequest(this.secret).then((request) => { hashedSecret = this.secret.type === VerificationType.MasterPassword ? request.masterPasswordHash : request.otp; return this.apiCall(request); }); const response = await this.formPromise; this.onAuthed.emit({ response: response, secret: hashedSecret, verificationType: this.secret.type, }); } catch (e) { this.logService.error(e); } } private apiCall(request: SecretVerificationRequest): Promise<TwoFactorResponse> { switch (this.type) { case -1 as TwoFactorProviderType: return this.apiService.getTwoFactorRecover(request); case TwoFactorProviderType.Duo: case TwoFactorProviderType.OrganizationDuo: if (this.organizationId != null) { return this.apiService.getTwoFactorOrganizationDuo(this.organizationId, request); } else { return this.apiService.getTwoFactorDuo(request); } case TwoFactorProviderType.Email: return this.apiService.getTwoFactorEmail(request); case TwoFactorProviderType.WebAuthn: return this.apiService.getTwoFactorWebAuthn(request); case TwoFactorProviderType.Authenticator: return this.apiService.getTwoFactorAuthenticator(request); case TwoFactorProviderType.Yubikey: return this.apiService.getTwoFactorYubiKey(request); } } }
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/platformUtils.service"; @Component({ selector: "app-verify-email", templateUrl: "verify-email.component.html", }) export class VerifyEmailComponent { actionPromise: Promise<any>; constructor( private apiService: ApiService, private i18nService: I18nService, private platformUtilsService: PlatformUtilsService, private logService: LogService ) {} async send() { if (this.actionPromise != null) { return; } try { this.actionPromise = this.apiService.postAccountVerifyEmail(); await this.actionPromise; this.platformUtilsService.showToast( "success", null, this.i18nService.t("checkInboxForVerification") ); } catch (e) { this.logService.error(e); } this.actionPromise = null; } }
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 { CryptoService } from "jslib-common/abstractions/crypto.service"; import { I18nService } from "jslib-common/abstractions/i18n.service"; import { LogService } from "jslib-common/abstractions/log.service"; import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service"; import { StateService } from "jslib-common/abstractions/state.service"; import { AttachmentView } from "jslib-common/models/view/attachmentView"; @Component({ selector: "app-vault-attachments", templateUrl: "attachments.component.html", }) export class AttachmentsComponent extends BaseAttachmentsComponent { viewOnly = false; constructor( cipherService: CipherService, i18nService: I18nService, cryptoService: CryptoService, stateService: StateService, platformUtilsService: PlatformUtilsService, apiService: ApiService, logService: LogService ) { super( cipherService, i18nService, cryptoService, platformUtilsService, apiService, window, logService, stateService ); } protected async reupload(attachment: AttachmentView) { if (this.showFixOldAttachments(attachment)) { await this.reuploadCipherAttachment(attachment, false); } } protected showFixOldAttachments(attachment: AttachmentView) { return attachment.key == null && this.cipher.organizationId == null; } }
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 { LogService } from "jslib-common/abstractions/log.service"; import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service"; @Component({ selector: "app-folder-add-edit", templateUrl: "folder-add-edit.component.html", }) export class FolderAddEditComponent extends BaseFolderAddEditComponent { constructor( folderService: FolderService, i18nService: I18nService, platformUtilsService: PlatformUtilsService, logService: LogService ) { super(folderService, i18nService, platformUtilsService, logService); } }
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": { "message": "Naziv" }, "uri": { "message": "URI" }, "uriPosition": { "message": "URI $POSITION$", "description": "A listing of URIs. Ex: URI 1, URI 2, URI 3, etc.", "placeholders": { "position": { "content": "$1", "example": "2" } } }, "newUri": { "message": "Novi URI" }, "username": { "message": "Korisničko ime" }, "password": { "message": "Lozinka" }, "newPassword": { "message": "Nova lozinka" }, "passphrase": { "message": "Frazna lozinka" }, "notes": { "message": "Beleške" }, "customFields": { "message": "Prilagođena Polja" }, "cardholderName": { "message": "Ime vlasnika kartice" }, "number": { "message": "Broj" }, "brand": { "message": "Brend" }, "expiration": { "message": "Datum isteka" }, "securityCode": { "message": "Sigurnosni Kod (CVV)" }, "identityName": { "message": "Naziv Isprave" }, "company": { "message": "Kompanija" }, "ssn": { "message": "Broj Socijalnog Osiguranja" }, "passportNumber": { "message": "Broj Pasoša" }, "licenseNumber": { "message": "Broj Vozačke Dozvole" }, "email": { "message": "Imejl" }, "phone": { "message": "Telefon" }, "january": { "message": "Januar" }, "february": { "message": "Februar" }, "march": { "message": "Mart" }, "april": { "message": "April" }, "may": { "message": "Maj" }, "june": { "message": "Jun" }, "july": { "message": "Jul" }, "august": { "message": "Avgust" }, "september": { "message": "Septembar" }, "october": { "message": "Oktobar" }, "november": { "message": "Novembar" }, "december": { "message": "Decembar" }, "title": { "message": "Zvanje" }, "mr": { "message": "Gospodin" }, "mrs": { "message": "Gospođa" }, "ms": { "message": "Gospođica" }, "dr": { "message": "Dr" }, "expirationMonth": { "message": "Mesec Isteka" }, "expirationYear": { "message": "Godina Isteka" }, "authenticatorKeyTotp": { "message": "Autentifikacioni Ključ (TOTP)" }, "folder": { "message": "Fascikla" }, "newCustomField": { "message": "Novo Prilagođeno Polje" }, "value": { "message": "Vrednost" }, "dragToSort": { "message": "Sortiraj prevlačenjem" }, "cfTypeText": { "message": "Tekst" }, "cfTypeHidden": { "message": "Sakriveno" }, "cfTypeBoolean": { "message": "Logički Operator" }, "cfTypeLinked": { "message": "Linked", "description": "This describes a field that is 'linked' (related) to another field." }, "remove": { "message": "Ukloni" }, "unassigned": { "message": "Nedodeljeno" }, "noneFolder": { "message": "Bez fascikle", "description": "This is the folder for uncategorized items" }, "addFolder": { "message": "Dodaj fasciklu" }, "editFolder": { "message": "Urеdi fasciklu" }, "baseDomain": { "message": "Osnovni domen", "description": "Domain name. Ex. website.com" }, "domainName": { "message": "Domain Name", "description": "Domain name. Ex. website.com" }, "host": { "message": "Host", "description": "A URL's host value. For example, the host of https://sub.domain.com:443 is 'sub.domain.com:443'." }, "exact": { "message": "Tačno" }, "startsWith": { "message": "Počinje sa" }, "regEx": { "message": "Regularni izraz", "description": "A programming term, also known as 'RegEx'." }, "matchDetection": { "message": "Match Detection", "description": "URI match detection for auto-fill." }, "defaultMatchDetection": { "message": "Default match detection", "description": "Default URI match detection for auto-fill." }, "never": { "message": "Nikada" }, "toggleVisibility": { "message": "Toggle Visibility" }, "toggleCollapse": { "message": "Toggle Collapse", "description": "Toggling an expand/collapse state." }, "generatePassword": { "message": "Generiši lozinku" }, "checkPassword": { "message": "Check if password has been exposed." }, "passwordExposed": { "message": "This password has been exposed $VALUE$ time(s) in data breaches. You should change it.", "placeholders": { "value": { "content": "$1", "example": "2" } } }, "passwordSafe": { "message": "This password was not found in any known data breaches. It should be safe to use." }, "save": { "message": "Sačuvaj" }, "cancel": { "message": "Odustani" }, "canceled": { "message": "Otkazano" }, "close": { "message": "Zatvori" }, "delete": { "message": "Obriši" }, "favorite": { "message": "Omiljeni" }, "unfavorite": { "message": "Izbaci iz Omiljenih" }, "edit": { "message": "Uredi" }, "searchCollection": { "message": "Pretraži Kolekciju" }, "searchFolder": { "message": "Pretraži fasciklu" }, "searchFavorites": { "message": "Pratraži Omiljene" }, "searchType": { "message": "Pretraži Tip", "description": "Search item type" }, "searchVault": { "message": "Pretraži trezor" }, "allItems": { "message": "Sve stavke" }, "favorites": { "message": "Omiljene stavke" }, "types": { "message": "Tipovi" }, "typeLogin": { "message": "Prijava" }, "typeCard": { "message": "Kartica" }, "typeIdentity": { "message": "Identitet" }, "typeSecureNote": { "message": "Zaštićena beleška" }, "typeLoginPlural": { "message": "Logins" }, "typeCardPlural": { "message": "Cards" }, "typeIdentityPlural": { "message": "Identities" }, "typeSecureNotePlural": { "message": "Secure Notes" }, "folders": { "message": "Fascikle" }, "collections": { "message": "Kolekcije" }, "firstName": { "message": "Ime" }, "middleName": { "message": "Srednje Ime" }, "lastName": { "message": "Prezime" }, "fullName": { "message": "Full Name" }, "address1": { "message": "Adresa 1" }, "address2": { "message": "Adresa 2" }, "address3": { "message": "Adresa 3" }, "cityTown": { "message": "Grad" }, "stateProvince": { "message": "Država / Okrug" }, "zipPostalCode": { "message": "Zip / Poštanski Broj" }, "country": { "message": "Država" }, "shared": { "message": "Podeljeno" }, "attachments": { "message": "Priloženi Fajlovi" }, "select": { "message": "Izabеri" }, "addItem": { "message": "Dodaj stavku" }, "editItem": { "message": "Uredi stavku" }, "viewItem": { "message": "View Item" }, "ex": { "message": "npr.", "description": "Short abbreviation for 'example'." }, "other": { "message": "Drugo" }, "share": { "message": "Podeli" }, "moveToOrganization": { "message": "Move to Organization" }, "valueCopied": { "message": "$VALUE$ kopiran", "description": "Value has been copied to the clipboard.", "placeholders": { "value": { "content": "$1", "example": "Password" } } }, "copyValue": { "message": "Kopiraj Vrednost", "description": "Copy value to clipboard" }, "copyPassword": { "message": "Kopiraj lozinku", "description": "Copy password to clipboard" }, "copyUsername": { "message": "Kopiraj Korisničko Ime", "description": "Copy username to clipboard" }, "copyNumber": { "message": "Kopiraj Broj", "description": "Copy credit card number" }, "copySecurityCode": { "message": "Kopiraj Sigurnosni Kod", "description": "Copy credit card security code (CVV)" }, "copyUri": { "message": "Kopiraj URI", "description": "Copy URI to clipboard" }, "myVault": { "message": "Moj trezor" }, "vault": { "message": "Trezor" }, "moveSelectedToOrg": { "message": "Move Selected to Organization" }, "deleteSelected": { "message": "Obriši izabrane stavke" }, "moveSelected": { "message": "Premesti izabrane stavke" }, "selectAll": { "message": "Odaberi sve" }, "unselectAll": { "message": "Poništi Izbor" }, "launch": { "message": "Pokreni" }, "newAttachment": { "message": "Priloži Novi Fajl" }, "deletedAttachment": { "message": "Obrisan priloženi fajl" }, "deleteAttachmentConfirmation": { "message": "Da li ste sigurni da želite da obrišete ovaj priloženi fajl?" }, "attachmentSaved": { "message": "Priloženi fajl je sačuvan." }, "file": { "message": "Fajl" }, "selectFile": { "message": "Izaberi fajl." }, "maxFileSize": { "message": "Maksimalna veličina fajla je 500 MB." }, "updateKey": { "message": "Ne možete da koristite ovu uslugu dok ne ažurirate Vaš enkripcioni ključ." }, "addedItem": { "message": "Stavka je dodata" }, "editedItem": { "message": "Stavka je izmenjena" }, "movedItemToOrg": { "message": "$ITEMNAME$ moved to $ORGNAME$", "placeholders": { "itemname": { "content": "$1", "example": "Secret Item" }, "orgname": { "content": "$2", "example": "Company Name" } } }, "movedItemsToOrg": { "message": "Selected items moved to $ORGNAME$", "placeholders": { "orgname": { "content": "$1", "example": "Company Name" } } }, "deleteItem": { "message": "Obriši stavku" }, "deleteFolder": { "message": "Obriši fasciklu" }, "deleteAttachment": { "message": "Obriši Priloženi Fajl" }, "deleteItemConfirmation": { "message": "Da li zaista želite da obrišete ovu stavku?" }, "deletedItem": { "message": "Stavka poslata u kantu" }, "deletedItems": { "message": "Stavke poslate u kantu" }, "movedItems": { "message": "Stavke su premeštene" }, "overwritePasswordConfirmation": { "message": "Da li zaista želite da izmenite aktuelnu lozinku?" }, "editedFolder": { "message": "Fascikla je izmenjena" }, "addedFolder": { "message": "Fascikla je dodata" }, "deleteFolderConfirmation": { "message": "Da li zaista želite da obrišete ovu fasciklu?" }, "deletedFolder": { "message": "Fascikla je obrisana" }, "loggedOut": { "message": "Odjavljeni ste" }, "loginExpired": { "message": "Vaša sesija je istekla." }, "logOutConfirmation": { "message": "Da li ste sigurni da želite da se odjavite?" }, "logOut": { "message": "Odjava" }, "ok": { "message": "Ok" }, "yes": { "message": "Da" }, "no": { "message": "Ne" }, "loginOrCreateNewAccount": { "message": "Ulogujte se ili napravite novi nalog kako biste pristupili Vašem trezoru." }, "createAccount": { "message": "Napravi Nalog" }, "logIn": { "message": "Prijavi Se" }, "submit": { "message": "Pošalji" }, "emailAddressDesc": { "message": "Koristićete Vašu imejl adresu prilikom prijavljivanja." }, "yourName": { "message": "Vaše Ime" }, "yourNameDesc": { "message": "Kako želite da Vas oslovljavamo?" }, "masterPass": { "message": "Glavna lozinka" }, "masterPassDesc": { "message": "Glavna šifra je šifra koju koristite kako biste pristupili svom trezoru. Veoma je važno da ne zaboravite svoju glavnu šifru. Ukoliko je zaboravite, ne postoji način da je dobijete nazad." }, "masterPassHintDesc": { "message": "A master password hint can help you remember your password if you forget it." }, "reTypeMasterPass": { "message": "Re-type Master Password" }, "masterPassHint": { "message": "Master Password Hint (optional)" }, "masterPassHintLabel": { "message": "Master Password Hint" }, "settings": { "message": "Podešavanja" }, "passwordHint": { "message": "Password Hint" }, "enterEmailToGetHint": { "message": "Enter your account email address to receive your master password hint." }, "getMasterPasswordHint": { "message": "Get master password hint" }, "emailRequired": { "message": "Email adresa je neophodna." }, "invalidEmail": { "message": "Invalid email address." }, "masterPassRequired": { "message": "Master password is required." }, "masterPassLength": { "message": "Master password must be at least 8 characters long." }, "masterPassDoesntMatch": { "message": "Master password confirmation does not match." }, "newAccountCreated": { "message": "Your new account has been created! You may now log in." }, "masterPassSent": { "message": "We've sent you an email with your master password hint." }, "unexpectedError": { "message": "An unexpected error has occurred." }, "emailAddress": { "message": "Imejl Adresa" }, "yourVaultIsLocked": { "message": "Vaš trezor je zaključan. Unesite glavnu lozinku da biste nastavili." }, "unlock": { "message": "Otključaj" }, "loggedInAsEmailOn": { "message": "Logged in as $EMAIL$ on $HOSTNAME$.", "placeholders": { "email": { "content": "$1", "example": "name@example.com" }, "hostname": { "content": "$2", "example": "bitwarden.com" } } }, "invalidMasterPassword": { "message": "Invalid master password" }, "lockNow": { "message": "Lock Now" }, "noItemsInList": { "message": "Nema stavki u listi." }, "noCollectionsInList": { "message": "Nema stavki u listi." }, "noGroupsInList": { "message": "There are no groups to list." }, "noUsersInList": { "message": "There are no users to list." }, "noEventsInList": { "message": "There are no events to list." }, "newOrganization": { "message": "Nova organizacija" }, "noOrganizationsList": { "message": "Ne pripadaš ni jednoj organizaciji. Organizacije ti omogućavaju da bezbedno deliš stavke sa ostalim korisnicima." }, "versionNumber": { "message": "Version $VERSION_NUMBER$", "placeholders": { "version_number": { "content": "$1", "example": "1.2.3" } } }, "enterVerificationCodeApp": { "message": "Enter the 6 digit verification code from your authenticator app." }, "enterVerificationCodeEmail": { "message": "Enter the 6 digit verification code that was emailed to $EMAIL$.", "placeholders": { "email": { "content": "$1", "example": "example@gmail.com" } } }, "verificationCodeEmailSent": { "message": "Verification email sent to $EMAIL$.", "placeholders": { "email": { "content": "$1", "example": "example@gmail.com" } } }, "rememberMe": { "message": "Zapamti me" }, "sendVerificationCodeEmailAgain": { "message": "Send verification code email again" }, "useAnotherTwoStepMethod": { "message": "Use another two-step login method" }, "insertYubiKey": { "message": "Povežite Vaš YubiKey preko USB porta na vašem računaru, pa pritisnite dugme na njemu." }, "insertU2f": { "message": "Povežite Vaš sigurnosni ključ preko USB porta na Vaš računar. Ukoliko ima dugme, pritisnite ga." }, "loginUnavailable": { "message": "Servis za Pristup Nije Dostupan" }, "noTwoStepProviders": { "message": "Verifikacija u dva koraka je omogućena na Vašem nalogu, ali nijedan od pružalaca usluge verifikacije u dva koraka nije podržan od strane ovog pretraživača." }, "noTwoStepProviders2": { "message": "Molimo Vas da koristite neki od pretraživača koji su podržani (poput Chrome-a) i/ili dodajte pružaoce usluga čija podrška obuhvata više pretraživača (poput nekih aplikacija za autentifikaciju)." }, "twoStepOptions": { "message": "Two-step Login Options" }, "recoveryCodeDesc": { "message": "Lost access to all of your two-factor providers? Use your recovery code to disable all two-factor providers from your account." }, "recoveryCodeTitle": { "message": "Recovery Code" }, "authenticatorAppTitle": { "message": "Aplikacija za Autentifikaciju" }, "authenticatorAppDesc": { "message": "Use an authenticator app (such as Authy or Google Authenticator) to generate time-based verification codes.", "description": "'Authy' and 'Google Authenticator' are product names and should not be translated." }, "yubiKeyTitle": { "message": "YubiKey OTP Security Key" }, "yubiKeyDesc": { "message": "Use a YubiKey to access your account. Works with YubiKey 4 series, 5 series, and NEO devices." }, "duoDesc": { "message": "Verify with Duo Security using the Duo Mobile app, SMS, phone call, or U2F security key.", "description": "'Duo Security' and 'Duo Mobile' are product names and should not be translated." }, "duoOrganizationDesc": { "message": "Verify with Duo Security for your organization using the Duo Mobile app, SMS, phone call, or U2F security key.", "description": "'Duo Security' and 'Duo Mobile' are product names and should not be translated." }, "u2fDesc": { "message": "Use any FIDO U2F enabled security key to access your account." }, "u2fTitle": { "message": "FIDO U2F Security Key" }, "webAuthnTitle": { "message": "FIDO2 WebAuthn" }, "webAuthnDesc": { "message": "Use any WebAuthn enabled security key to access your account." }, "webAuthnMigrated": { "message": "(Migrated from FIDO)" }, "emailTitle": { "message": "Email" }, "emailDesc": { "message": "Verification codes will be emailed to you." }, "continue": { "message": "Nastavi" }, "organization": { "message": "Organizacija" }, "organizations": { "message": "Organizacije" }, "moveToOrgDesc": { "message": "Choose an organization that you wish to move this item to. Moving to an organization transfers ownership of the item to that organization. You will no longer be the direct owner of this item once it has been moved." }, "moveManyToOrgDesc": { "message": "Choose an organization that you wish to move these items to. Moving to an organization transfers ownership of the items to that organization. You will no longer be the direct owner of these items once they have been moved." }, "collectionsDesc": { "message": "Edit the collections that this item is being shared with. Only organization users with access to these collections will be able to see this item." }, "deleteSelectedItemsDesc": { "message": "You have selected $COUNT$ item(s) to delete. Are you sure you want to delete all of these items?", "placeholders": { "count": { "content": "$1", "example": "150" } } }, "moveSelectedItemsDesc": { "message": "Choose a folder that you would like to move the $COUNT$ selected item(s) to.", "placeholders": { "count": { "content": "$1", "example": "150" } } }, "moveSelectedItemsCountDesc": { "message": "You have selected $COUNT$ item(s). $MOVEABLE_COUNT$ item(s) can be moved to an organization, $NONMOVEABLE_COUNT$ cannot.", "placeholders": { "count": { "content": "$1", "example": "10" }, "moveable_count": { "content": "$2", "example": "8" }, "nonmoveable_count": { "content": "$3", "example": "2" } } }, "verificationCodeTotp": { "message": "Verification Code (TOTP)" }, "copyVerificationCode": { "message": "Copy Verification Code" }, "warning": { "message": "Upozorenje" }, "confirmVaultExport": { "message": "Confirm Vault Export" }, "exportWarningDesc": { "message": "This export contains your vault data in an unencrypted format. You should not store or send the exported file over unsecure channels (such as email). Delete it immediately after you are done using it." }, "encExportKeyWarningDesc": { "message": "This export encrypts your data using your account's encryption key. If you ever rotate your account's encryption key you should export again since you will not be able to decrypt this export file." }, "encExportAccountWarningDesc": { "message": "Account encryption keys are unique to each Bitwarden user account, so you can't import an encrypted export into a different account." }, "export": { "message": "Export" }, "exportVault": { "message": "Izvezi trezor" }, "fileFormat": { "message": "File Format" }, "exportSuccess": { "message": "Your vault data has been exported." }, "passwordGenerator": { "message": "Generator lozinke" }, "minComplexityScore": { "message": "Minimalna ocena kompleksnosti" }, "minNumbers": { "message": "Minimalno cifara" }, "minSpecial": { "message": "Minimalno specijalnih", "description": "Minimum Special Characters" }, "ambiguous": { "message": "Avoid Ambiguous Characters" }, "regeneratePassword": { "message": "Regeneriši lozinku" }, "length": { "message": "Dužina" }, "numWords": { "message": "Broj Reči" }, "wordSeparator": { "message": "Word Separator" }, "capitalize": { "message": "Capitalize", "description": "Make the first letter of a work uppercase." }, "includeNumber": { "message": "Include Number" }, "passwordHistory": { "message": "Istorija lozinki" }, "noPasswordsInList": { "message": "There are no passwords to list." }, "clear": { "message": "Očisti", "description": "To clear something out. example: To clear browser history." }, "accountUpdated": { "message": "Nalog je Ažuriran" }, "changeEmail": { "message": "Promeni Imejl" }, "changeEmailTwoFactorWarning": { "message": "Proceeding will change your account email address. It will not change the email address used for two-factor authentication. You can change this email address in the Two-Step Login settings." }, "newEmail": { "message": "Novi Imejl" }, "code": { "message": "Kod" }, "changeEmailDesc": { "message": "Poslali smo verifikacioni kod putem imejla na $EMAIL$. Molimo Vas, proverite vaš imejl kako biste pronašli taj kod i uneli ga radi finalizacije procesa promene imejl adrese.", "placeholders": { "email": { "content": "$1", "example": "john.smith@example.com" } } }, "loggedOutWarning": { "message": "Proceeding will log you out of your current session, requiring you to log back in. Active sessions on other devices may continue to remain active for up to one hour." }, "emailChanged": { "message": "Email Changed" }, "logBackIn": { "message": "Please log back in." }, "logBackInOthersToo": { "message": "Please log back in. If you are using other Bitwarden applications log out and back in to those as well." }, "changeMasterPassword": { "message": "Promeni glavnu lozinku" }, "masterPasswordChanged": { "message": "Glavna lozinka je promenjena" }, "currentMasterPass": { "message": "Current Master Password" }, "newMasterPass": { "message": "New Master Password" }, "confirmNewMasterPass": { "message": "Confirm New Master Password" }, "encKeySettings": { "message": "Encryption Key Settings" }, "kdfAlgorithm": { "message": "KDF Algorithm" }, "kdfIterations": { "message": "KDF Iterations" }, "kdfIterationsDesc": { "message": "Higher KDF iterations can help protect your master password from being brute forced by an attacker. We recommend a value of $VALUE$ or more.", "placeholders": { "value": { "content": "$1", "example": "100,000" } } }, "kdfIterationsWarning": { "message": "Setting your KDF iterations too high could result in poor performance when logging into (and unlocking) Bitwarden on devices with slower CPUs. We recommend that you increase the value in increments of $INCREMENT$ and then test all of your devices.", "placeholders": { "increment": { "content": "$1", "example": "50,000" } } }, "changeKdf": { "message": "Change KDF" }, "encKeySettingsChanged": { "message": "Encryption Key Settings Changed" }, "dangerZone": { "message": "Opasna zona" }, "dangerZoneDesc": { "message": "Pažljivo, ove odluke se ne mogu poništiti!" }, "deauthorizeSessions": { "message": "Deauthorize Sessions" }, "deauthorizeSessionsDesc": { "message": "Concerned your account is logged in on another device? Proceed below to deauthorize all computers or devices that you have previously used. This security step is recommended if you previously used a public computer or accidentally saved your password on a device that isn't yours. This step will also clear all previously remembered two-step login sessions." }, "deauthorizeSessionsWarning": { "message": "Proceeding will also log you out of your current session, requiring you to log back in. You will also be prompted for two-step login again, if enabled. Active sessions on other devices may continue to remain active for up to one hour." }, "sessionsDeauthorized": { "message": "All Sessions Deauthorized" }, "purgeVault": { "message": "Purge Vault" }, "purgedOrganizationVault": { "message": "Purged organization vault." }, "vaultAccessedByProvider": { "message": "Vault accessed by provider." }, "purgeVaultDesc": { "message": "Proceed below to delete all items and folders in your vault. Items that belong to an organization that you share with will not be deleted." }, "purgeOrgVaultDesc": { "message": "Proceed below to delete all items in the organization's vault." }, "purgeVaultWarning": { "message": "Purging your vault is permanent. It cannot be undone." }, "vaultPurged": { "message": "Your vault has been purged." }, "deleteAccount": { "message": "Delete Account" }, "deleteAccountDesc": { "message": "Proceed below to delete your account and all associated data." }, "deleteAccountWarning": { "message": "Deleting your account is permanent. It cannot be undone." }, "accountDeleted": { "message": "Nalog je Obrisan" }, "accountDeletedDesc": { "message": "Vaš nalog je zatvoren, a svi povezani podaci su obrisani." }, "myAccount": { "message": "Moj Nalog" }, "tools": { "message": "Alati" }, "importData": { "message": "Uvezi podatke" }, "importError": { "message": "Import Error" }, "importErrorDesc": { "message": "There was a problem with the data you tried to import. Please resolve the errors listed below in your source file and try again." }, "importSuccess": { "message": "Podaci su uspešno uvezeni u Vaš trezor." }, "importWarning": { "message": "You are importing data to $ORGANIZATION$. Your data may be shared with members of this organization. Do you want to proceed?", "placeholders": { "organization": { "content": "$1", "example": "My Org Name" } } }, "importFormatError": { "message": "Podaci nisu ispravnog formata. Molimo Vas da proverite datoteku koji pokušavate da uvezete i pokušate ponovo." }, "importNothingError": { "message": "Nema podataka za uvoz." }, "importEncKeyError": { "message": "Error decrypting the exported file. Your encryption key does not match the encryption key used export the data." }, "selectFormat": { "message": "Izaberite format datoteke za uvoz" }, "selectImportFile": { "message": "Odaberite datoteku za uvoz" }, "orCopyPasteFileContents": { "message": "ili kopirajte/nalepite sadržaj vaše datoteke za uvoz" }, "instructionsFor": { "message": "Instrukcije za $NAME$", "description": "The title for the import tool instructions.", "placeholders": { "name": { "content": "$1", "example": "LastPass (csv)" } } }, "options": { "message": "Opcije" }, "optionsDesc": { "message": "Customize your web vault experience." }, "optionsUpdated": { "message": "Opcije ažurirane" }, "language": { "message": "Jezik" }, "languageDesc": { "message": "Promenite jezik veb trezora." }, "disableIcons": { "message": "Onemogućite Ikonice Vebsajta" }, "disableIconsDesc": { "message": "Vebsajt ikonice predstavljaju prepoznatljivu sliku koja stoji pored svake stavke za prijavljivanje u Vašem trezoru." }, "enableGravatars": { "message": "Omogućite Gravatars", "description": "'Gravatar' is the name of a service. See www.gravatar.com" }, "enableGravatarsDesc": { "message": "Use avatar images loaded from gravatar.com." }, "enableFullWidth": { "message": "Enable Full Width Layout", "description": "Allows scaling the web vault UI's width" }, "enableFullWidthDesc": { "message": "Allow the web vault to expand the full width of the browser window." }, "default": { "message": "Podrazumevano" }, "domainRules": { "message": "Domain Rules" }, "domainRulesDesc": { "message": "If you have the same login across multiple different website domains, you can mark the website as \"equivalent\". \"Global\" domains are ones already created for you by Bitwarden." }, "globalEqDomains": { "message": "Global Equivalent Domains" }, "customEqDomains": { "message": "Custom Equivalent Domains" }, "exclude": { "message": "Izostavi" }, "include": { "message": "Uključi" }, "customize": { "message": "Prilagodi" }, "newCustomDomain": { "message": "New Custom Domain" }, "newCustomDomainDesc": { "message": "Enter a list of domains separated by commas. Only \"base\" domains are allowed. Do not enter subdomains. For example, enter \"google.com\" instead of \"www.google.com\". You can also enter \"androidapp://package.name\" to associate an android app with other website domains." }, "customDomainX": { "message": "Custom Domain $INDEX$", "placeholders": { "index": { "content": "$1", "example": "2" } } }, "domainsUpdated": { "message": "Domeni su ažurirani" }, "twoStepLogin": { "message": "Prijava u dva koraka" }, "twoStepLoginDesc": { "message": "Secure your account by requiring an additional step when logging in." }, "twoStepLoginOrganizationDesc": { "message": "Require two-step login for your organization's users by configuring providers at the organization level." }, "twoStepLoginRecoveryWarning": { "message": "Enabling two-step login can permanently lock you out of your Bitwarden account. A recovery code allows you to access your account in the event that you can no longer use your normal two-step login provider (ex. you lose your device). Bitwarden support will not be able to assist you if you lose access to your account. We recommend you write down or print the recovery code and keep it in a safe place." }, "viewRecoveryCode": { "message": "View Recovery Code" }, "providers": { "message": "Providers", "description": "Two-step login providers such as YubiKey, Duo, Authenticator apps, Email, etc." }, "enable": { "message": "Omogući" }, "enabled": { "message": "Omogućeno" }, "premium": { "message": "Premijum", "description": "Premium Membership" }, "premiumMembership": { "message": "Premium Članstvo" }, "premiumRequired": { "message": "Premium Required" }, "premiumRequiredDesc": { "message": "A premium membership is required to use this feature." }, "youHavePremiumAccess": { "message": "You have premium access" }, "alreadyPremiumFromOrg": { "message": "You already have access to premium features because of an organization you are a member of." }, "manage": { "message": "Upravljaj" }, "disable": { "message": "Disable" }, "twoStepLoginProviderEnabled": { "message": "This two-step login provider is enabled on your account." }, "twoStepLoginAuthDesc": { "message": "Enter your master password to modify two-step login settings." }, "twoStepAuthenticatorDesc": { "message": "Follow these steps to set up two-step login with an authenticator app:" }, "twoStepAuthenticatorDownloadApp": { "message": "Download a two-step authenticator app" }, "twoStepAuthenticatorNeedApp": { "message": "Need a two-step authenticator app? Download one of the following" }, "iosDevices": { "message": "iOS devices" }, "androidDevices": { "message": "Android devices" }, "windowsDevices": { "message": "Windows devices" }, "twoStepAuthenticatorAppsRecommended": { "message": "These apps are recommended, however, other authenticator apps will also work." }, "twoStepAuthenticatorScanCode": { "message": "Scan this QR code with your authenticator app" }, "key": { "message": "Ključ" }, "twoStepAuthenticatorEnterCode": { "message": "Enter the resulting 6 digit verification code from the app" }, "twoStepAuthenticatorReaddDesc": { "message": "In case you need to add it to another device, below is the QR code (or key) required by your authenticator app." }, "twoStepDisableDesc": { "message": "Are you sure you want to disable this two-step login provider?" }, "twoStepDisabled": { "message": "Two-step login provider disabled." }, "twoFactorYubikeyAdd": { "message": "Add a new YubiKey to your account" }, "twoFactorYubikeyPlugIn": { "message": "Plug the YubiKey into your computer's USB port." }, "twoFactorYubikeySelectKey": { "message": "Select the first empty YubiKey input field below." }, "twoFactorYubikeyTouchButton": { "message": "Touch the YubiKey's button." }, "twoFactorYubikeySaveForm": { "message": "Save the form." }, "twoFactorYubikeyWarning": { "message": "Due to platform limitations, YubiKeys cannot be used on all Bitwarden applications. You should enable another two-step login provider so that you can access your account when YubiKeys cannot be used. Supported platforms:" }, "twoFactorYubikeySupportUsb": { "message": "Web vault, desktop application, CLI, and all browser extensions on a device with a USB port that can accept your YubiKey." }, "twoFactorYubikeySupportMobile": { "message": "Mobile apps on a device with NFC capabilities or a data port that can accept your YubiKey." }, "yubikeyX": { "message": "YubiKey $INDEX$", "placeholders": { "index": { "content": "$1", "example": "2" } } }, "u2fkeyX": { "message": "U2F Key $INDEX$", "placeholders": { "index": { "content": "$1", "example": "2" } } }, "webAuthnkeyX": { "message": "WebAuthn Key $INDEX$", "placeholders": { "index": { "content": "$1", "example": "2" } } }, "nfcSupport": { "message": "NFC Support" }, "twoFactorYubikeySupportsNfc": { "message": "One of my keys supports NFC." }, "twoFactorYubikeySupportsNfcDesc": { "message": "If one of your YubiKeys supports NFC (such as a YubiKey NEO), you will be prompted on mobile devices whenever NFC availability is detected." }, "yubikeysUpdated": { "message": "YubiKeys updated" }, "disableAllKeys": { "message": "Disable All Keys" }, "twoFactorDuoDesc": { "message": "Enter the Bitwarden application information from your Duo Admin panel." }, "twoFactorDuoIntegrationKey": { "message": "Integration Key" }, "twoFactorDuoSecretKey": { "message": "Tajni Ključ" }, "twoFactorDuoApiHostname": { "message": "API Hostname" }, "twoFactorEmailDesc": { "message": "Follow these steps to set up two-step login with email:" }, "twoFactorEmailEnterEmail": { "message": "Enter the email that you wish to receive verification codes" }, "twoFactorEmailEnterCode": { "message": "Enter the resulting 6 digit verification code from the email" }, "sendEmail": { "message": "Pošalji email" }, "twoFactorU2fAdd": { "message": "Add a FIDO U2F security key to your account" }, "removeU2fConfirmation": { "message": "Are you sure you want to remove this security key?" }, "twoFactorWebAuthnAdd": { "message": "Add a WebAuthn security key to your account" }, "readKey": { "message": "Read Key" }, "keyCompromised": { "message": "Ključ je kompromitovan." }, "twoFactorU2fGiveName": { "message": "Give the security key a friendly name to identify it." }, "twoFactorU2fPlugInReadKey": { "message": "Plug the security key into your computer's USB port and click the \"Read Key\" button." }, "twoFactorU2fTouchButton": { "message": "If the security key has a button, touch it." }, "twoFactorU2fSaveForm": { "message": "Save the form." }, "twoFactorU2fWarning": { "message": "Due to platform limitations, FIDO U2F cannot be used on all Bitwarden applications. You should enable another two-step login provider so that you can access your account when FIDO U2F cannot be used. Supported platforms:" }, "twoFactorU2fSupportWeb": { "message": "Web vault and browser extensions on a desktop/laptop with a U2F enabled browser (Chrome, Opera, Vivaldi, or Firefox with FIDO U2F enabled)." }, "twoFactorU2fWaiting": { "message": "Waiting for you to touch the button on your security key" }, "twoFactorU2fClickSave": { "message": "Click the \"Save\" button below to enable this security key for two-step login." }, "twoFactorU2fProblemReadingTryAgain": { "message": "There was a problem reading the security key. Try again." }, "twoFactorWebAuthnWarning": { "message": "Due to platform limitations, WebAuthn cannot be used on all Bitwarden applications. You should enable another two-step login provider so that you can access your account when WebAuthn cannot be used. Supported platforms:" }, "twoFactorWebAuthnSupportWeb": { "message": "Web vault and browser extensions on a desktop/laptop with a WebAuthn enabled browser (Chrome, Opera, Vivaldi, or Firefox with FIDO U2F enabled)." }, "twoFactorRecoveryYourCode": { "message": "Your Bitwarden two-step login recovery code" }, "twoFactorRecoveryNoCode": { "message": "You have not enabled any two-step login providers yet. After you have enabled a two-step login provider you can check back here for your recovery code." }, "printCode": { "message": "Print Code", "description": "Print 2FA recovery code" }, "reports": { "message": "Izveštaji" }, "reportsDesc": { "message": "Identify and close security gaps in your online accounts by clicking the reports below." }, "unsecuredWebsitesReport": { "message": "Unsecure Websites" }, "unsecuredWebsitesReportDesc": { "message": "URLs that start with http:// don’t use the best available encryption. Change the Login URIs for these accounts to https:// for safer browsing." }, "unsecuredWebsitesFound": { "message": "Unsecured Websites Found" }, "unsecuredWebsitesFoundDesc": { "message": "We found $COUNT$ items in your vault with unsecured URIs. You should change their URI scheme to https:// if the website allows it.", "placeholders": { "count": { "content": "$1", "example": "8" } } }, "noUnsecuredWebsites": { "message": "No items in your vault have unsecured URIs." }, "inactive2faReport": { "message": "Inactive Two-step Login" }, "inactive2faReportDesc": { "message": "Two-step Login adds a layer of protection to your accounts. Turn on Two-Step Login using Bitwarden Authenticator for these accounts or use an alternative method." }, "inactive2faFound": { "message": "Logins Without 2FA Found" }, "inactive2faFoundDesc": { "message": "We found $COUNT$ website(s) in your vault that may not be configured with two-factor authentication (according to 2fa.directory). To further protect these accounts, you should enable two-factor authentication.", "placeholders": { "count": { "content": "$1", "example": "8" } } }, "noInactive2fa": { "message": "No websites were found in your vault with a missing two-factor authentication configuration." }, "instructions": { "message": "Uputstvo" }, "exposedPasswordsReport": { "message": "Exposed Passwords" }, "exposedPasswordsReportDesc": { "message": "Passwords exposed in a data breach are easy targets for attackers. Change these passwords to prevent potential break-ins." }, "exposedPasswordsFound": { "message": "Exposed Passwords Found" }, "exposedPasswordsFoundDesc": { "message": "We found $COUNT$ items in your vault that have passwords that were exposed in known data breaches. You should change them to use a new password.", "placeholders": { "count": { "content": "$1", "example": "8" } } }, "noExposedPasswords": { "message": "No items in your vault have passwords that have been exposed in known data breaches." }, "checkExposedPasswords": { "message": "Check Exposed Passwords" }, "exposedXTimes": { "message": "Exposed $COUNT$ time(s)", "placeholders": { "count": { "content": "$1", "example": "52" } } }, "weakPasswordsReport": { "message": "Weak Passwords" }, "weakPasswordsReportDesc": { "message": "Weak passwords can be easily guessed by attackers. Change these passwords to strong ones using the Password Generator." }, "weakPasswordsFound": { "message": "Weak Passwords Found" }, "weakPasswordsFoundDesc": { "message": "We found $COUNT$ items in your vault with passwords that are not strong. You should update them to use stronger passwords.", "placeholders": { "count": { "content": "$1", "example": "8" } } }, "noWeakPasswords": { "message": "No items in your vault have weak passwords." }, "reusedPasswordsReport": { "message": "Reused Passwords" }, "reusedPasswordsReportDesc": { "message": "Reusing passwords makes it easier for attackers to break into multiple accounts. Change these passwords so that each is unique." }, "reusedPasswordsFound": { "message": "Reused Passwords Found" }, "reusedPasswordsFoundDesc": { "message": "We found $COUNT$ passwords that are being reused in your vault. You should change them to a unique value.", "placeholders": { "count": { "content": "$1", "example": "8" } } }, "noReusedPasswords": { "message": "No logins in your vault have passwords that are being reused." }, "reusedXTimes": { "message": "Reused $COUNT$ times", "placeholders": { "count": { "content": "$1", "example": "8" } } }, "dataBreachReport": { "message": "Data Breach" }, "breachDesc": { "message": "Breached accounts can expose your personal information. Secure breached accounts by enabling 2FA or creating a stronger password." }, "breachCheckUsernameEmail": { "message": "Check any usernames or email addresses that you use." }, "checkBreaches": { "message": "Check Breaches" }, "breachUsernameNotFound": { "message": "$USERNAME$ was not found in any known data breaches.", "placeholders": { "username": { "content": "$1", "example": "user@example.com" } } }, "goodNews": { "message": "Dobre Vesti", "description": "ex. Good News, No Breached Accounts Found!" }, "breachUsernameFound": { "message": "$USERNAME$ was found in $COUNT$ different data breaches online.", "placeholders": { "username": { "content": "$1", "example": "user@example.com" }, "count": { "content": "$2", "example": "7" } } }, "breachFound": { "message": "Breached Accounts Found" }, "compromisedData": { "message": "Kompromitovani podaci" }, "website": { "message": "Web stranica" }, "affectedUsers": { "message": "Affected Users" }, "breachOccurred": { "message": "Breach Occurred" }, "breachReported": { "message": "Breach Reported" }, "reportError": { "message": "An error occurred trying to load the report. Try again" }, "billing": { "message": "Naplata" }, "accountCredit": { "message": "Account Credit", "description": "Financial term. In the case of Bitwarden, a positive balance means that you owe money, while a negative balance means that you have a credit (Bitwarden owes you money)." }, "accountBalance": { "message": "Account Balance", "description": "Financial term. In the case of Bitwarden, a positive balance means that you owe money, while a negative balance means that you have a credit (Bitwarden owes you money)." }, "addCredit": { "message": "Dodaj Kredit", "description": "Add more credit to your account's balance." }, "amount": { "message": "Iznos", "description": "Dollar amount, or quantity." }, "creditDelayed": { "message": "Added credit will appear on your account after the payment has been fully processed. Some payment methods are delayed and can take longer to process than others." }, "makeSureEnoughCredit": { "message": "Please make sure that your account has enough credit available for this purchase. If your account does not have enough credit available, your default payment method on file will be used for the difference. You can add credit to your account from the Billing page." }, "creditAppliedDesc": { "message": "Your account's credit can be used to make purchases. Any available credit will be automatically applied towards invoices generated for this account." }, "goPremium": { "message": "Pređi na Premijum", "description": "Another way of saying \"Get a premium membership\"" }, "premiumUpdated": { "message": "Unapredili ste svoj nalog na premijum." }, "premiumUpgradeUnlockFeatures": { "message": "Upgrade your account to a premium membership and unlock some great additional features." }, "premiumSignUpStorage": { "message": "1 GB encrypted storage for file attachments." }, "premiumSignUpTwoStep": { "message": "Additional two-step login options such as YubiKey, FIDO U2F, and Duo." }, "premiumSignUpEmergency": { "message": "Emergency Access" }, "premiumSignUpReports": { "message": "Password hygiene, account health, and data breach reports to keep your vault safe." }, "premiumSignUpTotp": { "message": "TOTP verification code (2FA) generator for logins in your vault." }, "premiumSignUpSupport": { "message": "Priority customer support." }, "premiumSignUpFuture": { "message": "All future premium features. More coming soon!" }, "premiumPrice": { "message": "All for just $PRICE$ /year!", "placeholders": { "price": { "content": "$1", "example": "$10" } } }, "addons": { "message": "Dodaci" }, "premiumAccess": { "message": "Premium Access" }, "premiumAccessDesc": { "message": "You can add premium access to all members of your organization for $PRICE$ /$INTERVAL$.", "placeholders": { "price": { "content": "$1", "example": "$3.33" }, "interval": { "content": "$2", "example": "'month' or 'year'" } } }, "additionalStorageGb": { "message": "Additional Storage (GB)" }, "additionalStorageGbDesc": { "message": "# of additional GB" }, "additionalStorageIntervalDesc": { "message": "Your plan comes with $SIZE$ of encrypted file storage. You can add additional storage for $PRICE$ per GB /$INTERVAL$.", "placeholders": { "size": { "content": "$1", "example": "1 GB" }, "price": { "content": "$2", "example": "$4.00" }, "interval": { "content": "$3", "example": "'month' or 'year'" } } }, "summary": { "message": "Summary" }, "total": { "message": "Ukupno" }, "year": { "message": "godina" }, "month": { "message": "mesec" }, "monthAbbr": { "message": "mj.", "description": "Short abbreviation for 'month'" }, "paymentChargedAnnually": { "message": "Your payment method will be charged immediately and then on a recurring basis each year. You may cancel at any time." }, "paymentCharged": { "message": "Your payment method will be charged immediately and then on a recurring basis each $INTERVAL$. You may cancel at any time.", "placeholders": { "interval": { "content": "$1", "example": "month or year" } } }, "paymentChargedWithTrial": { "message": "Your plan comes with a free 7 day trial. Your payment method will not be charged until the trial has ended. You may cancel at any time." }, "paymentInformation": { "message": "Payment Information" }, "billingInformation": { "message": "Billing Information" }, "creditCard": { "message": "Credit Card" }, "paypalClickSubmit": { "message": "Click the PayPal button to log into your PayPal account, then click the Submit button below to continue." }, "cancelSubscription": { "message": "Cancel Subscription" }, "subscriptionCanceled": { "message": "The subscription has been canceled." }, "pendingCancellation": { "message": "Pending Cancellation" }, "subscriptionPendingCanceled": { "message": "The subscription has been marked for cancellation at the end of the current billing period." }, "reinstateSubscription": { "message": "Reinstate Subscription" }, "reinstateConfirmation": { "message": "Are you sure you want to remove the pending cancellation request and reinstate your subscription?" }, "reinstated": { "message": "The subscription has been reinstated." }, "cancelConfirmation": { "message": "Are you sure you want to cancel? You will lose access to all of this subscription's features at the end of this billing cycle." }, "canceledSubscription": { "message": "The subscription has been canceled." }, "neverExpires": { "message": "Never Expires" }, "status": { "message": "Status" }, "nextCharge": { "message": "Sledeće Plaćanje" }, "details": { "message": "Detalji" }, "downloadLicense": { "message": "Download License" }, "updateLicense": { "message": "Update License" }, "updatedLicense": { "message": "Updated license" }, "manageSubscription": { "message": "Manage Subscription" }, "storage": { "message": "Storage" }, "addStorage": { "message": "Add Storage" }, "removeStorage": { "message": "Remove Storage" }, "subscriptionStorage": { "message": "Your subscription has a total of $MAX_STORAGE$ GB of encrypted file storage. You are currently using $USED_STORAGE$.", "placeholders": { "max_storage": { "content": "$1", "example": "4" }, "used_storage": { "content": "$2", "example": "65 MB" } } }, "paymentMethod": { "message": "Način plaćanja" }, "noPaymentMethod": { "message": "No payment method on file." }, "addPaymentMethod": { "message": "Add Payment Method" }, "changePaymentMethod": { "message": "Change Payment Method" }, "invoices": { "message": "Invoices" }, "noInvoices": { "message": "No invoices." }, "paid": { "message": "Plaćeno", "description": "Past tense status of an invoice. ex. Paid or unpaid." }, "unpaid": { "message": "Neplaćeno", "description": "Past tense status of an invoice. ex. Paid or unpaid." }, "transactions": { "message": "Transakcije", "description": "Payment/credit transactions." }, "noTransactions": { "message": "Nema transakcija." }, "chargeNoun": { "message": "Charge", "description": "Noun. A charge from a payment method." }, "refundNoun": { "message": "Povrat novca", "description": "Noun. A refunded payment that was charged." }, "chargesStatement": { "message": "Any charges will appear on your statement as $STATEMENT_NAME$.", "placeholders": { "statement_name": { "content": "$1", "example": "BITWARDEN" } } }, "gbStorageAdd": { "message": "GB of Storage To Add" }, "gbStorageRemove": { "message": "GB of Storage To Remove" }, "storageAddNote": { "message": "Adding storage will result in adjustments to your billing totals and immediately charge your payment method on file. The first charge will be prorated for the remainder of the current billing cycle." }, "storageRemoveNote": { "message": "Removing storage will result in adjustments to your billing totals that will be prorated as credits toward your next billing charge." }, "adjustedStorage": { "message": "Adjusted $AMOUNT$ GB of storage.", "placeholders": { "amount": { "content": "$1", "example": "5" } } }, "contactSupport": { "message": "Contact Customer Support" }, "updatedPaymentMethod": { "message": "Updated payment method." }, "purchasePremium": { "message": "Purchase Premium" }, "licenseFile": { "message": "License File" }, "licenseFileDesc": { "message": "Your license file will be named something like $FILE_NAME$", "placeholders": { "file_name": { "content": "$1", "example": "bitwarden_premium_license.json" } } }, "uploadLicenseFilePremium": { "message": "To upgrade your account to a premium membership you need to upload a valid license file." }, "uploadLicenseFileOrg": { "message": "To create an on-premises hosted organization you need to upload a valid license file." }, "accountEmailMustBeVerified": { "message": "Your account's email address must be verified." }, "newOrganizationDesc": { "message": "Organizations allow you to share parts of your vault with others as well as manage related users for a specific entity such as a family, small team, or large company." }, "generalInformation": { "message": "General Information" }, "organizationName": { "message": "Organization Name" }, "accountOwnedBusiness": { "message": "This account is owned by a business." }, "billingEmail": { "message": "Billing Email" }, "businessName": { "message": "Business Name" }, "chooseYourPlan": { "message": "Choose Your Plan" }, "users": { "message": "Korisnici" }, "userSeats": { "message": "User Seats" }, "additionalUserSeats": { "message": "Additional User Seats" }, "userSeatsDesc": { "message": "# of user seats" }, "userSeatsAdditionalDesc": { "message": "Your plan comes with $BASE_SEATS$ user seats. You can add additional users for $SEAT_PRICE$ per user /month.", "placeholders": { "base_seats": { "content": "$1", "example": "5" }, "seat_price": { "content": "$2", "example": "$2.00" } } }, "userSeatsHowManyDesc": { "message": "How many user seats do you need? You can also add additional seats later if needed." }, "planNameFree": { "message": "Free", "description": "Free as in 'free beer'." }, "planDescFree": { "message": "For testing or personal users to share with $COUNT$ other user.", "placeholders": { "count": { "content": "$1", "example": "1" } } }, "planNameFamilies": { "message": "Families" }, "planDescFamilies": { "message": "For personal use, to share with family & friends." }, "planNameTeams": { "message": "Teams" }, "planDescTeams": { "message": "For businesses and other team organizations." }, "planNameEnterprise": { "message": "Enterprise" }, "planDescEnterprise": { "message": "For businesses and other large organizations." }, "freeForever": { "message": "Free Forever" }, "includesXUsers": { "message": "includes $COUNT$ users", "placeholders": { "count": { "content": "$1", "example": "5" } } }, "additionalUsers": { "message": "Dodatni Korisnici" }, "costPerUser": { "message": "$COST$ po korisniku", "placeholders": { "cost": { "content": "$1", "example": "$3" } } }, "limitedUsers": { "message": "Limited to $COUNT$ users (including you)", "placeholders": { "count": { "content": "$1", "example": "2" } } }, "limitedCollections": { "message": "Limited to $COUNT$ collections", "placeholders": { "count": { "content": "$1", "example": "2" } } }, "addShareLimitedUsers": { "message": "Add and share with up to $COUNT$ users", "placeholders": { "count": { "content": "$1", "example": "5" } } }, "addShareUnlimitedUsers": { "message": "Add and share with unlimited users" }, "createUnlimitedCollections": { "message": "Create unlimited Collections" }, "gbEncryptedFileStorage": { "message": "$SIZE$ encrypted file storage", "placeholders": { "size": { "content": "$1", "example": "1 GB" } } }, "onPremHostingOptional": { "message": "On-premise hosting (optional)" }, "usersGetPremium": { "message": "Users get access to Premium Features" }, "controlAccessWithGroups": { "message": "Control user access with Groups" }, "syncUsersFromDirectory": { "message": "Sync your users and Groups from a directory" }, "trackAuditLogs": { "message": "Track user actions with audit logs" }, "enforce2faDuo": { "message": "Enforce 2FA with Duo" }, "priorityCustomerSupport": { "message": "Priority customer support" }, "xDayFreeTrial": { "message": "$COUNT$ day free trial, cancel anytime", "placeholders": { "count": { "content": "$1", "example": "7" } } }, "monthly": { "message": "Monthly" }, "annually": { "message": "Annually" }, "basePrice": { "message": "Base Price" }, "organizationCreated": { "message": "Organization Created" }, "organizationReadyToGo": { "message": "Your new organization is ready to go!" }, "organizationUpgraded": { "message": "Your organization has been upgraded." }, "leave": { "message": "Leave" }, "leaveOrganizationConfirmation": { "message": "Are you sure you want to leave this organization?" }, "leftOrganization": { "message": "You have left the organization." }, "defaultCollection": { "message": "Default Collection" }, "getHelp": { "message": "Get Help" }, "getApps": { "message": "Get the Apps" }, "loggedInAs": { "message": "Logged in as" }, "eventLogs": { "message": "Event Logs" }, "people": { "message": "People" }, "policies": { "message": "Policies" }, "singleSignOn": { "message": "Single Sign-On" }, "editPolicy": { "message": "Edit Policy" }, "groups": { "message": "Grupe" }, "newGroup": { "message": "Nova Grupa" }, "addGroup": { "message": "Dodaj Grupu" }, "editGroup": { "message": "Uredi Grupu" }, "deleteGroupConfirmation": { "message": "Are you sure you want to delete this group?" }, "removeUserConfirmation": { "message": "Are you sure you want to remove this user?" }, "removeUserConfirmationKeyConnector": { "message": "Warning! This user requires Key Connector to manage their encryption. Removing this user from your organization will permanently disable their account. This action cannot be undone. Do you want to proceed?" }, "externalId": { "message": "External Id" }, "externalIdDesc": { "message": "The external id can be used as a reference or to link this resource to an external system such as a user directory." }, "accessControl": { "message": "Kontrola Pristupa" }, "groupAccessAllItems": { "message": "This group can access and modify all items." }, "groupAccessSelectedCollections": { "message": "This group can access only the selected collections." }, "readOnly": { "message": "Read Only" }, "newCollection": { "message": "New Collection" }, "addCollection": { "message": "Add Collection" }, "editCollection": { "message": "Edit Collection" }, "deleteCollectionConfirmation": { "message": "Are you sure you want to delete this collection?" }, "editUser": { "message": "Edit User" }, "inviteUser": { "message": "Invite User" }, "inviteUserDesc": { "message": "Invite a new user to your organization by entering their Bitwarden account email address below. If they do not have a Bitwarden account already, they will be prompted to create a new account." }, "inviteMultipleEmailDesc": { "message": "You can invite up to $COUNT$ users at a time by comma separating a list of email addresses.", "placeholders": { "count": { "content": "$1", "example": "20" } } }, "userUsingTwoStep": { "message": "This user is using two-step login to protect their account." }, "userAccessAllItems": { "message": "This user can access and modify all items." }, "userAccessSelectedCollections": { "message": "This user can access only the selected collections." }, "search": { "message": "Search" }, "invited": { "message": "Invited" }, "accepted": { "message": "Accepted" }, "confirmed": { "message": "Confirmed" }, "clientOwnerEmail": { "message": "Client Owner Email" }, "owner": { "message": "Owner" }, "ownerDesc": { "message": "The highest access user that can manage all aspects of your organization." }, "clientOwnerDesc": { "message": "This user should be independent of the Provider. If the Provider is disassociated with the organization, this user will maintain ownership of the organization." }, "admin": { "message": "Admin" }, "adminDesc": { "message": "Admins can access and manage all items, collections and users in your organization." }, "user": { "message": "User" }, "userDesc": { "message": "A regular user with access to assigned collections in your organization." }, "manager": { "message": "Manager" }, "managerDesc": { "message": "Managers can access and manage assigned collections in your organization." }, "all": { "message": "All" }, "refresh": { "message": "Refresh" }, "timestamp": { "message": "Timestamp" }, "event": { "message": "Event" }, "unknown": { "message": "Unknown" }, "loadMore": { "message": "Učitaj Još" }, "mobile": { "message": "Mobile", "description": "Mobile app" }, "extension": { "message": "Extension", "description": "Browser extension/addon" }, "desktop": { "message": "Desktop", "description": "Desktop app" }, "webVault": { "message": "Web Vault" }, "loggedIn": { "message": "Logged in." }, "changedPassword": { "message": "Changed account password." }, "enabledUpdated2fa": { "message": "Enabled/updated two-step login." }, "disabled2fa": { "message": "Disabled two-step login." }, "recovered2fa": { "message": "Recovered account from two-step login." }, "failedLogin": { "message": "Login attempt failed with incorrect password." }, "failedLogin2fa": { "message": "Login attempt failed with incorrect two-step login." }, "exportedVault": { "message": "Exported vault." }, "exportedOrganizationVault": { "message": "Exported organization vault." }, "editedOrgSettings": { "message": "Edited organization settings." }, "createdItemId": { "message": "Created item $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "editedItemId": { "message": "Edited item $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "deletedItemId": { "message": "Sent item $ID$ to trash.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "movedItemIdToOrg": { "message": "Moved item $ID$ to an organization.", "placeholders": { "id": { "content": "$1", "example": "'Google'" } } }, "viewedItemId": { "message": "Viewed item $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "viewedPasswordItemId": { "message": "Viewed password for item $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "viewedHiddenFieldItemId": { "message": "Viewed hidden field for item $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "viewedSecurityCodeItemId": { "message": "Viewed security code for item $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "copiedPasswordItemId": { "message": "Copied password for item $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "copiedHiddenFieldItemId": { "message": "Copied hidden field for item $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "copiedSecurityCodeItemId": { "message": "Copied security code for item $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "autofilledItemId": { "message": "Auto-filled item $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "createdCollectionId": { "message": "Created collection $ID$.", "placeholders": { "id": { "content": "$1", "example": "Server Passwords" } } }, "editedCollectionId": { "message": "Edited collection $ID$.", "placeholders": { "id": { "content": "$1", "example": "Server Passwords" } } }, "deletedCollectionId": { "message": "Deleted collection $ID$.", "placeholders": { "id": { "content": "$1", "example": "Server Passwords" } } }, "editedPolicyId": { "message": "Edited policy $ID$.", "placeholders": { "id": { "content": "$1", "example": "Master Password" } } }, "createdGroupId": { "message": "Created group $ID$.", "placeholders": { "id": { "content": "$1", "example": "Developers" } } }, "editedGroupId": { "message": "Edited group $ID$.", "placeholders": { "id": { "content": "$1", "example": "Developers" } } }, "deletedGroupId": { "message": "Deleted group $ID$.", "placeholders": { "id": { "content": "$1", "example": "Developers" } } }, "removedUserId": { "message": "Removed user $ID$.", "placeholders": { "id": { "content": "$1", "example": "John Smith" } } }, "createdAttachmentForItem": { "message": "Created attachment for item $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "deletedAttachmentForItem": { "message": "Deleted attachment for item $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "editedCollectionsForItem": { "message": "Edited collections for item $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "invitedUserId": { "message": "Invited user $ID$.", "placeholders": { "id": { "content": "$1", "example": "John Smith" } } }, "confirmedUserId": { "message": "Confirmed user $ID$.", "placeholders": { "id": { "content": "$1", "example": "John Smith" } } }, "editedUserId": { "message": "Edited user $ID$.", "placeholders": { "id": { "content": "$1", "example": "John Smith" } } }, "editedGroupsForUser": { "message": "Edited groups for user $ID$.", "placeholders": { "id": { "content": "$1", "example": "John Smith" } } }, "unlinkedSsoUser": { "message": "Unlinked SSO for user $ID$.", "placeholders": { "id": { "content": "$1", "example": "John Smith" } } }, "createdOrganizationId": { "message": "Created organization $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "addedOrganizationId": { "message": "Added organization $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "removedOrganizationId": { "message": "Removed organization $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "accessedClientVault": { "message": "Accessed $ID$ organization vault.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "device": { "message": "Device" }, "view": { "message": "View" }, "invalidDateRange": { "message": "Invalid date range." }, "errorOccurred": { "message": "An error has occurred." }, "userAccess": { "message": "User Access" }, "userType": { "message": "User Type" }, "groupAccess": { "message": "Group Access" }, "groupAccessUserDesc": { "message": "Edit the groups that this user belongs to." }, "invitedUsers": { "message": "Invited user(s)." }, "resendInvitation": { "message": "Resend Invitation" }, "resendEmail": { "message": "Resend Email" }, "hasBeenReinvited": { "message": "$USER$ has been reinvited.", "placeholders": { "user": { "content": "$1", "example": "John Smith" } } }, "confirm": { "message": "Confirm" }, "confirmUser": { "message": "Confirm User" }, "hasBeenConfirmed": { "message": "$USER$ has been confirmed.", "placeholders": { "user": { "content": "$1", "example": "John Smith" } } }, "confirmUsers": { "message": "Confirm Users" }, "usersNeedConfirmed": { "message": "You have users that have accepted their invitation, but still need to be confirmed. Users will not have access to the organization until they are confirmed." }, "startDate": { "message": "Start Date" }, "endDate": { "message": "End Date" }, "verifyEmail": { "message": "Verify Email" }, "verifyEmailDesc": { "message": "Verify your account's email address to unlock access to all features." }, "verifyEmailFirst": { "message": "Your account's email address first must be verified." }, "checkInboxForVerification": { "message": "Check your email inbox for a verification link." }, "emailVerified": { "message": "Your email has been verified." }, "emailVerifiedFailed": { "message": "Unable to verify your email. Try sending a new verification email." }, "emailVerificationRequired": { "message": "Email Verification Required" }, "emailVerificationRequiredDesc": { "message": "You must verify your email to use this feature." }, "updateBrowser": { "message": "Update Browser" }, "updateBrowserDesc": { "message": "You are using an unsupported web browser. The web vault may not function properly." }, "joinOrganization": { "message": "Join Organization" }, "joinOrganizationDesc": { "message": "You've been invited to join the organization listed above. To accept the invitation, you need to log in or create a new Bitwarden account." }, "inviteAccepted": { "message": "Invitation Accepted" }, "inviteAcceptedDesc": { "message": "You can access this organization once an administrator confirms your membership. We'll send you an email when that happens." }, "inviteAcceptFailed": { "message": "Unable to accept invitation. Ask an organization admin to send a new invitation." }, "inviteAcceptFailedShort": { "message": "Unable to accept invitation. $DESCRIPTION$", "placeholders": { "description": { "content": "$1", "example": "You must enable 2FA on your user account before you can join this organization." } } }, "rememberEmail": { "message": "Remember email" }, "recoverAccountTwoStepDesc": { "message": "If you cannot access your account through your normal two-step login methods, you can use your two-step login recovery code to disable all two-step providers on your account." }, "recoverAccountTwoStep": { "message": "Recover Account Two-Step Login" }, "twoStepRecoverDisabled": { "message": "Two-step login has been disabled on your account." }, "learnMore": { "message": "Saznaj više" }, "deleteRecoverDesc": { "message": "Enter your email address below to recover and delete your account." }, "deleteRecoverEmailSent": { "message": "If your account exists, we've sent you an email with further instructions." }, "deleteRecoverConfirmDesc": { "message": "You have requested to delete your Bitwarden account. Click the button below to confirm." }, "myOrganization": { "message": "My Organization" }, "deleteOrganization": { "message": "Delete Organization" }, "deletingOrganizationContentWarning": { "message": "Enter the master password to confirm deletion of $ORGANIZATION$ and all associated data. Vault data in $ORGANIZATION$ includes:", "placeholders": { "organization": { "content": "$1", "example": "My Org Name" } } }, "deletingOrganizationActiveUserAccountsWarning": { "message": "User accounts will remain active after deletion but will no longer be associated to this organization." }, "deletingOrganizationIsPermanentWarning": { "message": "Deleting $ORGANIZATION$ is permanent and irreversible.", "placeholders": { "organization": { "content": "$1", "example": "My Org Name" } } }, "organizationDeleted": { "message": "Organization Deleted" }, "organizationDeletedDesc": { "message": "The organization and all associated data has been deleted." }, "organizationUpdated": { "message": "Organization updated" }, "taxInformation": { "message": "Tax Information" }, "taxInformationDesc": { "message": "For customers within the US, ZIP code is required to satisfy sales tax requirements, for other countries you may optionally provide a tax identification number (VAT/GST) and/or address to appear on your invoices." }, "billingPlan": { "message": "Plan", "description": "A billing plan/package. For example: families, teams, enterprise, etc." }, "changeBillingPlan": { "message": "Upgrade Plan", "description": "A billing plan/package. For example: families, teams, enterprise, etc." }, "changeBillingPlanUpgrade": { "message": "Upgrade your account to another plan by providing the information below. Please ensure that you have an active payment method added to the account.", "description": "A billing plan/package. For example: families, teams, enterprise, etc." }, "invoiceNumber": { "message": "Invoice #$NUMBER$", "description": "ex. Invoice #79C66F0-0001", "placeholders": { "number": { "content": "$1", "example": "79C66F0-0001" } } }, "viewInvoice": { "message": "View Invoice" }, "downloadInvoice": { "message": "Download Invoice" }, "verifyBankAccount": { "message": "Verify Bank Account" }, "verifyBankAccountDesc": { "message": "We have made two micro-deposits to your bank account (it may take 1-2 business days to show up). Enter these amounts to verify the bank account." }, "verifyBankAccountInitialDesc": { "message": "Payment with a bank account is only available to customers in the United States. You will be required to verify your bank account. We will make two micro-deposits within the next 1-2 business days. Enter these amounts on the organization's billing page to verify the bank account." }, "verifyBankAccountFailureWarning": { "message": "Failure to verify the bank account will result in a missed payment and your subscription being disabled." }, "verifiedBankAccount": { "message": "Bank account has been verified." }, "bankAccount": { "message": "Bank Account" }, "amountX": { "message": "Amount $COUNT$", "description": "Used in bank account verification of micro-deposits. Amount, as in a currency amount. Ex. Amount 1 is $2.00, Amount 2 is $1.50", "placeholders": { "count": { "content": "$1", "example": "1" } } }, "routingNumber": { "message": "Routing Number", "description": "Bank account routing number" }, "accountNumber": { "message": "Account Number" }, "accountHolderName": { "message": "Account Holder Name" }, "bankAccountType": { "message": "Account Type" }, "bankAccountTypeCompany": { "message": "Company (Business)" }, "bankAccountTypeIndividual": { "message": "Individual (Personal)" }, "enterInstallationId": { "message": "Enter your installation id" }, "limitSubscriptionDesc": { "message": "Set a seat limit for your subscription. Once this limit is reached, you will not be able to invite new users." }, "maxSeatLimit": { "message": "Maximum Seat Limit (optional)", "description": "Upper limit of seats to allow through autoscaling" }, "maxSeatCost": { "message": "Max potential seat cost" }, "addSeats": { "message": "Add Seats", "description": "Seat = User Seat" }, "removeSeats": { "message": "Remove Seats", "description": "Seat = User Seat" }, "subscriptionDesc": { "message": "Adjustments to your subscription will result in prorated changes to your billing totals. If newly invited users exceed your subscription seats, you will immediately receive a prorated charge for the additional users." }, "subscriptionUserSeats": { "message": "Your subscription allows for a total of $COUNT$ users.", "placeholders": { "count": { "content": "$1", "example": "50" } } }, "limitSubscription": { "message": "Limit Subscription (Optional)" }, "subscriptionSeats": { "message": "Subscription Seats" }, "subscriptionUpdated": { "message": "Subscription updated" }, "additionalOptions": { "message": "Additional Options" }, "additionalOptionsDesc": { "message": "For additional help in managing your subscription, please contact Customer Support." }, "subscriptionUserSeatsUnlimitedAutoscale": { "message": "Adjustments to your subscription will result in prorated changes to your billing totals. If newly invited users exceed your subscription seats, you will immediately receive a prorated charge for the additional users." }, "subscriptionUserSeatsLimitedAutoscale": { "message": "Adjustments to your subscription will result in prorated changes to your billing totals. If newly invited users exceed your subscription seats, you will immediately receive a prorated charge for the additional users until your $MAX$ seat limit is reached.", "placeholders": { "max": { "content": "$1", "example": "50" } } }, "subscriptionFreePlan": { "message": "You cannot invite more than $COUNT$ users without upgrading your plan.", "placeholders": { "count": { "content": "$1", "example": "2" } } }, "subscriptionFamiliesPlan": { "message": "You cannot invite more than $COUNT$ users without upgrading your plan. Please contact Customer Support to upgrade.", "placeholders": { "count": { "content": "$1", "example": "6" } } }, "subscriptionSponsoredFamiliesPlan": { "message": "Your subscription allows for a total of $COUNT$ users. Your plan is sponsored and billed to an external organization.", "placeholders": { "count": { "content": "$1", "example": "6" } } }, "subscriptionMaxReached": { "message": "Adjustments to your subscription will result in prorated changes to your billing totals. You cannot invite more than $COUNT$ users without increasing your subscription seats.", "placeholders": { "count": { "content": "$1", "example": "50" } } }, "seatsToAdd": { "message": "Seats To Add" }, "seatsToRemove": { "message": "Seats To Remove" }, "seatsAddNote": { "message": "Adding user seats will result in adjustments to your billing totals and immediately charge your payment method on file. The first charge will be prorated for the remainder of the current billing cycle." }, "seatsRemoveNote": { "message": "Removing user seats will result in adjustments to your billing totals that will be prorated as credits toward your next billing charge." }, "adjustedSeats": { "message": "Adjusted $AMOUNT$ user seats.", "placeholders": { "amount": { "content": "$1", "example": "15" } } }, "keyUpdated": { "message": "Key Updated" }, "updateKeyTitle": { "message": "Update Key" }, "updateEncryptionKey": { "message": "Update Encryption Key" }, "updateEncryptionKeyShortDesc": { "message": "You are currently using an outdated encryption scheme." }, "updateEncryptionKeyDesc": { "message": "We've moved to larger encryption keys that provide better security and access to newer features. Updating your encryption key is quick and easy. Just type your master password below. This update will eventually become mandatory." }, "updateEncryptionKeyWarning": { "message": "After updating your encryption key, you are required to log out and back in to all Bitwarden applications that you are currently using (such as the mobile app or browser extensions). Failure to log out and back in (which downloads your new encryption key) may result in data corruption. We will attempt to log you out automatically, however, it may be delayed." }, "updateEncryptionKeyExportWarning": { "message": "Any encrypted exports that you have saved will also become invalid." }, "subscription": { "message": "Subscription" }, "loading": { "message": "Loading" }, "upgrade": { "message": "Upgrade" }, "upgradeOrganization": { "message": "Upgrade Organization" }, "upgradeOrganizationDesc": { "message": "This feature is not available for free organizations. Switch to a paid plan to unlock more features." }, "createOrganizationStep1": { "message": "Create Organization: Step 1" }, "createOrganizationCreatePersonalAccount": { "message": "Before creating your organization, you first need to create a free personal account." }, "refunded": { "message": "Refunded" }, "nothingSelected": { "message": "You have not selected anything." }, "acceptPolicies": { "message": "By checking this box you agree to the following:" }, "acceptPoliciesError": { "message": "Terms of Service and Privacy Policy have not been acknowledged." }, "termsOfService": { "message": "Terms of Service" }, "privacyPolicy": { "message": "Privacy Policy" }, "filters": { "message": "Filteri" }, "vaultTimeout": { "message": "Vault Timeout" }, "vaultTimeoutDesc": { "message": "Choose when your vault will timeout and perform the selected action." }, "oneMinute": { "message": "1 minute" }, "fiveMinutes": { "message": "5 minutes" }, "fifteenMinutes": { "message": "15 minutes" }, "thirtyMinutes": { "message": "30 minutes" }, "oneHour": { "message": "1 hour" }, "fourHours": { "message": "4 hours" }, "onRefresh": { "message": "On Browser Refresh" }, "dateUpdated": { "message": "Updated", "description": "ex. Date this item was updated" }, "datePasswordUpdated": { "message": "Password Updated", "description": "ex. Date this password was updated" }, "organizationIsDisabled": { "message": "Organization is disabled." }, "licenseIsExpired": { "message": "License is expired." }, "updatedUsers": { "message": "Updated users" }, "selected": { "message": "Selected" }, "ownership": { "message": "Ownership" }, "whoOwnsThisItem": { "message": "Who owns this item?" }, "strong": { "message": "Strong", "description": "ex. A strong password. Scale: Very Weak -> Weak -> Good -> Strong" }, "good": { "message": "Good", "description": "ex. A good password. Scale: Very Weak -> Weak -> Good -> Strong" }, "weak": { "message": "Weak", "description": "ex. A weak password. Scale: Very Weak -> Weak -> Good -> Strong" }, "veryWeak": { "message": "Very Weak", "description": "ex. A very weak password. Scale: Very Weak -> Weak -> Good -> Strong" }, "weakMasterPassword": { "message": "Weak Master Password" }, "weakMasterPasswordDesc": { "message": "The master password you have chosen is weak. You should use a strong master password (or a passphrase) to properly protect your Bitwarden account. Are you sure you want to use this master password?" }, "rotateAccountEncKey": { "message": "Also rotate my account's encryption key" }, "rotateEncKeyTitle": { "message": "Rotate Encryption Key" }, "rotateEncKeyConfirmation": { "message": "Are you sure you want to rotate your account's encryption key?" }, "attachmentsNeedFix": { "message": "This item has old file attachments that need to be fixed." }, "attachmentFixDesc": { "message": "This is an old file attachment the needs to be fixed. Click to learn more." }, "fix": { "message": "Fix", "description": "This is a verb. ex. 'Fix The Car'" }, "oldAttachmentsNeedFixDesc": { "message": "There are old file attachments in your vault that need to be fixed before you can rotate your account's encryption key." }, "yourAccountsFingerprint": { "message": "Your account's fingerprint phrase", "description": "A 'fingerprint phrase' is a unique word phrase (similar to a passphrase) that a user can use to authenticate their public key with another user, for the purposes of sharing." }, "fingerprintEnsureIntegrityVerify": { "message": "To ensure the integrity of your encryption keys, please verify the user's fingerprint phrase before continuing.", "description": "A 'fingerprint phrase' is a unique word phrase (similar to a passphrase) that a user can use to authenticate their public key with another user, for the purposes of sharing." }, "dontAskFingerprintAgain": { "message": "Never prompt to verify fingerprint phrases for invited users (Not recommended)", "description": "A 'fingerprint phrase' is a unique word phrase (similar to a passphrase) that a user can use to authenticate their public key with another user, for the purposes of sharing." }, "free": { "message": "Free", "description": "Free, as in 'Free beer'" }, "apiKey": { "message": "API Key" }, "apiKeyDesc": { "message": "Your API key can be used to authenticate to the Bitwarden public API." }, "apiKeyRotateDesc": { "message": "Rotating the API key will invalidate the previous key. You can rotate your API key if you believe that the current key is no longer safe to use." }, "apiKeyWarning": { "message": "Your API key has full access to the organization. It should be kept secret." }, "userApiKeyDesc": { "message": "Your API key can be used to authenticate in the Bitwarden CLI." }, "userApiKeyWarning": { "message": "Your API key is an alternative authentication mechanism. It should be kept secret." }, "oauth2ClientCredentials": { "message": "OAuth 2.0 Client Credentials", "description": "'OAuth 2.0' is a programming protocol. It should probably not be translated." }, "viewApiKey": { "message": "View API Key" }, "rotateApiKey": { "message": "Rotate API Key" }, "selectOneCollection": { "message": "You must select at least one collection." }, "couldNotChargeCardPayInvoice": { "message": "We were not able to charge your card. Please view and pay the unpaid invoice listed below." }, "inAppPurchase": { "message": "In-app Purchase" }, "cannotPerformInAppPurchase": { "message": "You cannot perform this action while using an in-app purchase payment method." }, "manageSubscriptionFromStore": { "message": "You must manage your subscription from the store where your in-app purchase was made." }, "minLength": { "message": "Minimalna dužina" }, "clone": { "message": "Clone" }, "masterPassPolicyDesc": { "message": "Set minimum requirements for master password strength." }, "twoStepLoginPolicyDesc": { "message": "Require users to set up two-step login on their personal accounts." }, "twoStepLoginPolicyWarning": { "message": "Organization members who are not Owners or Administrators and do not have two-step login enabled for their personal account will be removed from the organization and will receive an email notifying them about the change." }, "twoStepLoginPolicyUserWarning": { "message": "You are a member of an organization that requires two-step login to be enabled on your user account. If you disable all two-step login providers you will be automatically removed from these organizations." }, "passwordGeneratorPolicyDesc": { "message": "Set minimum requirements for password generator configuration." }, "passwordGeneratorPolicyInEffect": { "message": "One or more organization policies are affecting your generator settings." }, "masterPasswordPolicyInEffect": { "message": "One or more organization policies require your master password to meet the following requirements:" }, "policyInEffectMinComplexity": { "message": "Minimalna ocena kompleksnosti od $SCORE$", "placeholders": { "score": { "content": "$1", "example": "4" } } }, "policyInEffectMinLength": { "message": "Minimalna dužina od $LENGTH$", "placeholders": { "length": { "content": "$1", "example": "14" } } }, "policyInEffectUppercase": { "message": "Contain one or more uppercase characters" }, "policyInEffectLowercase": { "message": "Contain one or more lowercase characters" }, "policyInEffectNumbers": { "message": "Contain one or more numbers" }, "policyInEffectSpecial": { "message": "Contain one or more of the following special characters $CHARS$", "placeholders": { "chars": { "content": "$1", "example": "!@#$%^&*" } } }, "masterPasswordPolicyRequirementsNotMet": { "message": "Your new master password does not meet the policy requirements." }, "minimumNumberOfWords": { "message": "Minimalan broj reči" }, "defaultType": { "message": "Default Type" }, "userPreference": { "message": "User Preference" }, "vaultTimeoutAction": { "message": "Vault Timeout Action" }, "vaultTimeoutActionLockDesc": { "message": "A locked vault requires that you re-enter your master password to access it again." }, "vaultTimeoutActionLogOutDesc": { "message": "A logged out vault requires that you re-authenticate to access it again." }, "lock": { "message": "Lock", "description": "Verb form: to make secure or inaccesible by" }, "trash": { "message": "Kanta", "description": "Noun: A special folder for holding deleted items that have not yet been permanently deleted" }, "searchTrash": { "message": "Search Trash" }, "permanentlyDelete": { "message": "Permanently Delete" }, "permanentlyDeleteSelected": { "message": "Permanently Delete Selected" }, "permanentlyDeleteItem": { "message": "Permanently Delete Item" }, "permanentlyDeleteItemConfirmation": { "message": "Are you sure you want to permanently delete this item?" }, "permanentlyDeletedItem": { "message": "Permanently Deleted item" }, "permanentlyDeletedItems": { "message": "Permanently Deleted items" }, "permanentlyDeleteSelectedItemsDesc": { "message": "You have selected $COUNT$ item(s) to permanently delete. Are you sure you want to permanently delete all of these items?", "placeholders": { "count": { "content": "$1", "example": "150" } } }, "permanentlyDeletedItemId": { "message": "Permanently Deleted item $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "restore": { "message": "Restore" }, "restoreSelected": { "message": "Restore Selected" }, "restoreItem": { "message": "Restore Item" }, "restoredItem": { "message": "Restored Item" }, "restoredItems": { "message": "Restored Items" }, "restoreItemConfirmation": { "message": "Are you sure you want to restore this item?" }, "restoreItems": { "message": "Restore items" }, "restoreSelectedItemsDesc": { "message": "You have selected $COUNT$ item(s) to restore. Are you sure you want to restore all of these items?", "placeholders": { "count": { "content": "$1", "example": "150" } } }, "restoredItemId": { "message": "Restored item $ID$.", "placeholders": { "id": { "content": "$1", "example": "Google" } } }, "vaultTimeoutLogOutConfirmation": { "message": "Logging out will remove all access to your vault and requires online authentication after the timeout period. Are you sure you want to use this setting?" }, "vaultTimeoutLogOutConfirmationTitle": { "message": "Timeout Action Confirmation" }, "hidePasswords": { "message": "Hide Passwords" }, "countryPostalCodeRequiredDesc": { "message": "We require this information for calculating sales tax and financial reporting only." }, "includeVAT": { "message": "Include VAT/GST Information (optional)" }, "taxIdNumber": { "message": "VAT/GST Tax ID" }, "taxInfoUpdated": { "message": "Tax information updated." }, "setMasterPassword": { "message": "Set Master Password" }, "ssoCompleteRegistration": { "message": "In order to complete logging in with SSO, please set a master password to access and protect your vault." }, "identifier": { "message": "Identifier" }, "organizationIdentifier": { "message": "Organization Identifier" }, "ssoLogInWithOrgIdentifier": { "message": "Log in using your organization's single sign-on portal. Please enter your organization's identifier to begin." }, "enterpriseSingleSignOn": { "message": "Enterprise Single Sign-On" }, "ssoHandOff": { "message": "You may now close this tab and continue in the extension." }, "includeAllTeamsFeatures": { "message": "All Teams features, plus:" }, "includeSsoAuthentication": { "message": "SSO Authentication via SAML2.0 and OpenID Connect" }, "includeEnterprisePolicies": { "message": "Enterprise Policies" }, "ssoValidationFailed": { "message": "SSO Validation Failed" }, "ssoIdentifierRequired": { "message": "Organization Identifier is required." }, "unlinkSso": { "message": "Unlink SSO" }, "unlinkSsoConfirmation": { "message": "Are you sure you want to unlink SSO for this organization?" }, "linkSso": { "message": "Link SSO" }, "singleOrg": { "message": "Single Organization" }, "singleOrgDesc": { "message": "Restrict users from being able to join any other organizations." }, "singleOrgBlockCreateMessage": { "message": "Your current organization has a policy that does not allow you to join more than one organization. Please contact your organization admins or sign up from a different Bitwarden account." }, "singleOrgPolicyWarning": { "message": "Organization members who are not Owners or Administrators and are already a member of another organization will be removed from your organization." }, "requireSso": { "message": "Single Sign-On Authentication" }, "requireSsoPolicyDesc": { "message": "Require users to log in with the Enterprise Single Sign-On method." }, "prerequisite": { "message": "Prerequisite" }, "requireSsoPolicyReq": { "message": "The Single Organization enterprise policy must be enabled before activating this policy." }, "requireSsoPolicyReqError": { "message": "Single Organization policy not enabled." }, "requireSsoExemption": { "message": "Organization Owners and Administrators are exempt from this policy's enforcement." }, "sendTypeFile": { "message": "File" }, "sendTypeText": { "message": "Text" }, "createSend": { "message": "Napravi novo slanje", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "editSend": { "message": "Izmeni slanje", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "createdSend": { "message": "Napravljena slanja", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "editedSend": { "message": "Izmenjena slanja", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "deletedSend": { "message": "Obrisana slanja", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "deleteSend": { "message": "Obriši slanje", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "deleteSendConfirmation": { "message": "Are you sure you want to delete this Send?", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "whatTypeOfSend": { "message": "What type of Send is this?", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "deletionDate": { "message": "Deletion Date" }, "deletionDateDesc": { "message": "The Send will be permanently deleted on the specified date and time.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "expirationDate": { "message": "Expiration Date" }, "expirationDateDesc": { "message": "If set, access to this Send will expire on the specified date and time.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "maxAccessCount": { "message": "Maximum Access Count" }, "maxAccessCountDesc": { "message": "If set, users will no longer be able to access this Send once the maximum access count is reached.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "currentAccessCount": { "message": "Current Access Count" }, "sendPasswordDesc": { "message": "Optionally require a password for users to access this Send.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendNotesDesc": { "message": "Private notes about this Send.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "disabled": { "message": "Disabled" }, "sendLink": { "message": "Send link", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "copySendLink": { "message": "Copy Send Link", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "removePassword": { "message": "Remove Password" }, "removedPassword": { "message": "Removed Password" }, "removePasswordConfirmation": { "message": "Are you sure you want to remove the password?" }, "hideEmail": { "message": "Hide my email address from recipients." }, "disableThisSend": { "message": "Disable this Send so that no one can access it.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "allSends": { "message": "Sva slanja" }, "maxAccessCountReached": { "message": "Max access count reached", "description": "This text will be displayed after a Send has been accessed the maximum amount of times." }, "pendingDeletion": { "message": "Pending deletion" }, "expired": { "message": "Expired" }, "searchSends": { "message": "Search Sends", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendProtectedPassword": { "message": "This Send is protected with a password. Please type the password below to continue.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendProtectedPasswordDontKnow": { "message": "Don't know the password? Ask the Sender for the password needed to access this Send.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendHiddenByDefault": { "message": "This send is hidden by default. You can toggle its visibility using the button below.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "downloadFile": { "message": "Download File" }, "sendAccessUnavailable": { "message": "The Send you are trying to access does not exist or is no longer available.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "missingSendFile": { "message": "The file associated with this Send could not be found.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "noSendsInList": { "message": "There are no Sends to list.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "emergencyAccess": { "message": "Emergency Access" }, "emergencyAccessDesc": { "message": "Grant and manage emergency access for trusted contacts. Trusted contacts may request access to either View or Takeover your account in case of an emergency. Visit our help page for more information and details into how zero knowledge sharing works." }, "emergencyAccessOwnerWarning": { "message": "You are an Owner of one or more organizations. If you give takeover access to an emergency contact, they will be able to use all your permissions as Owner after a takeover." }, "trustedEmergencyContacts": { "message": "Trusted emergency contacts" }, "noTrustedContacts": { "message": "You have not added any emergency contacts yet, invite a trusted contact to get started." }, "addEmergencyContact": { "message": "Add emergency contact" }, "designatedEmergencyContacts": { "message": "Designated as emergency contact" }, "noGrantedAccess": { "message": "You have not been designated as an emergency contact for anyone yet." }, "inviteEmergencyContact": { "message": "Invite emergency contact" }, "editEmergencyContact": { "message": "Edit emergency contact" }, "inviteEmergencyContactDesc": { "message": "Invite a new emergency contact by entering their Bitwarden account email address below. If they do not have a Bitwarden account already, they will be prompted to create a new account." }, "emergencyAccessRecoveryInitiated": { "message": "Emergency Access Initiated" }, "emergencyAccessRecoveryApproved": { "message": "Emergency Access Approved" }, "viewDesc": { "message": "Can view all items in your own vault." }, "takeover": { "message": "Takeover" }, "takeoverDesc": { "message": "Can reset your account with a new master password." }, "waitTime": { "message": "Wait Time" }, "waitTimeDesc": { "message": "Time required before automatically granting access." }, "oneDay": { "message": "1 day" }, "days": { "message": "$DAYS$ days", "placeholders": { "days": { "content": "$1", "example": "1" } } }, "invitedUser": { "message": "Invited user." }, "acceptEmergencyAccess": { "message": "You've been invited to become an emergency contact for the user listed above. To accept the invitation, you need to log in or create a new Bitwarden account." }, "emergencyInviteAcceptFailed": { "message": "Unable to accept invitation. Ask the user to send a new invitation." }, "emergencyInviteAcceptFailedShort": { "message": "Unable to accept invitation. $DESCRIPTION$", "placeholders": { "description": { "content": "$1", "example": "You must enable 2FA on your user account before you can join this organization." } } }, "emergencyInviteAcceptedDesc": { "message": "You can access the emergency options for this user after your identity has been confirmed. We'll send you an email when that happens." }, "requestAccess": { "message": "Request Access" }, "requestAccessConfirmation": { "message": "Are you sure you want to request emergency access? You will be provided access after $WAITTIME$ day(s) or whenever the user manually approves the request.", "placeholders": { "waittime": { "content": "$1", "example": "1" } } }, "requestSent": { "message": "Emergency access requested for $USER$. We'll notify you by email when it's possible to continue.", "placeholders": { "user": { "content": "$1", "example": "John Smith" } } }, "approve": { "message": "Approve" }, "reject": { "message": "Reject" }, "approveAccessConfirmation": { "message": "Are you sure you want to approve emergency access? This will allow $USER$ to $ACTION$ your account.", "placeholders": { "user": { "content": "$1", "example": "John Smith" }, "action": { "content": "$2", "example": "View" } } }, "emergencyApproved": { "message": "Emergency access approved." }, "emergencyRejected": { "message": "Emergency access rejected" }, "passwordResetFor": { "message": "Password reset for $USER$. You can now login using the new password.", "placeholders": { "user": { "content": "$1", "example": "John Smith" } } }, "personalOwnership": { "message": "Personal Ownership" }, "personalOwnershipPolicyDesc": { "message": "Require users to save vault items to an organization by removing the personal ownership option." }, "personalOwnershipExemption": { "message": "Organization Owners and Administrators are exempt from this policy's enforcement." }, "personalOwnershipSubmitError": { "message": "Due to an enterprise policy, you are restricted from saving items to your personal vault. Change the Ownership option to an organization and choose from available Collections." }, "disableSend": { "message": "Disable Send" }, "disableSendPolicyDesc": { "message": "Do not allow users to create or edit a Bitwarden Send. Deleting an existing Send is still allowed.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "disableSendExemption": { "message": "Organization users that can manage the organization's policies are exempt from this policy's enforcement." }, "sendDisabled": { "message": "Send disabled", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendDisabledWarning": { "message": "Due to an enterprise policy, you are only able to delete an existing Send.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendOptions": { "message": "Send Options", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendOptionsPolicyDesc": { "message": "Set options for creating and editing Sends.", "description": "'Sends' is a plural noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendOptionsExemption": { "message": "Organization users that can manage the organization's policies are exempt from this policy's enforcement." }, "disableHideEmail": { "message": "Do not allow users to hide their email address from recipients when creating or editing a Send.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendOptionsPolicyInEffect": { "message": "The following organization policies are currently in effect:" }, "sendDisableHideEmailInEffect": { "message": "Users are not allowed to hide their email address from recipients when creating or editing a Send.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "modifiedPolicyId": { "message": "Modified policy $ID$.", "placeholders": { "id": { "content": "$1", "example": "Master Password" } } }, "planPrice": { "message": "Plan price" }, "estimatedTax": { "message": "Estimated tax" }, "custom": { "message": "Custom" }, "customDesc": { "message": "Allows more granular control of user permissions for advanced configurations." }, "permissions": { "message": "Permissions" }, "accessEventLogs": { "message": "Access Event Logs" }, "accessImportExport": { "message": "Access Import/Export" }, "accessReports": { "message": "Access Reports" }, "missingPermissions": { "message": "You lack the necessary permissions to perform this action." }, "manageAllCollections": { "message": "Manage All Collections" }, "createNewCollections": { "message": "Create New Collections" }, "editAnyCollection": { "message": "Edit Any Collection" }, "deleteAnyCollection": { "message": "Delete Any Collection" }, "manageAssignedCollections": { "message": "Manage Assigned Collections" }, "editAssignedCollections": { "message": "Edit Assigned Collections" }, "deleteAssignedCollections": { "message": "Delete Assigned Collections" }, "manageGroups": { "message": "Manage Groups" }, "managePolicies": { "message": "Manage Policies" }, "manageSso": { "message": "Manage SSO" }, "manageUsers": { "message": "Manage Users" }, "manageResetPassword": { "message": "Manage Password Reset" }, "disableRequiredError": { "message": "You must manually disable the $POLICYNAME$ policy before this policy can be disabled.", "placeholders": { "policyName": { "content": "$1", "example": "Single Sign-On Authentication" } } }, "personalOwnershipPolicyInEffect": { "message": "An organization policy is affecting your ownership options." }, "personalOwnershipPolicyInEffectImports": { "message": "An organization policy has disabled importing items into your personal vault." }, "personalOwnershipCheckboxDesc": { "message": "Disable personal ownership for organization users" }, "textHiddenByDefault": { "message": "When accessing the Send, hide the text by default", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendNameDesc": { "message": "A friendly name to describe this Send.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendTextDesc": { "message": "The text you want to send." }, "sendFileDesc": { "message": "The file you want to send." }, "copySendLinkOnSave": { "message": "Copy the link to share this Send to my clipboard upon save." }, "sendLinkLabel": { "message": "Pošalji vezu", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "send": { "message": "Slanje", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendAccessTaglineProductDesc": { "message": "Bitwarden Send transmits sensitive, temporary information to others easily and securely.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendAccessTaglineLearnMore": { "message": "Learn more about", "description": "This will be used as part of a larger sentence, broken up to include links. The full sentence will read '**Learn more about** Bitwarden Send or sign up to try it today.'" }, "sendVaultCardProductDesc": { "message": "Share text or files directly with anyone." }, "sendVaultCardLearnMore": { "message": "Saznaj više", "description": "This will be used as part of a larger sentence, broken up to include links. The full sentence will read '**Learn more**, see how it works, or try it now. '" }, "sendVaultCardSee": { "message": "see", "description": "This will be used as part of a larger sentence, broken up to include links. The full sentence will read 'Learn more, **see** how it works, or try it now.'" }, "sendVaultCardHowItWorks": { "message": "how it works", "description": "This will be used as part of a larger sentence, broken up to include links. The full sentence will read 'Learn more, see **how it works**, or try it now.'" }, "sendVaultCardOr": { "message": "ili", "description": "This will be used as part of a larger sentence, broken up to include links. The full sentence will read 'Learn more, see how it works, **or** try it now.'" }, "sendVaultCardTryItNow": { "message": "try it now", "description": "This will be used as part of a larger sentence, broken up to include links. The full sentence will read 'Learn more, see how it works, or **try it now**.'" }, "sendAccessTaglineOr": { "message": "ili", "description": "This will be used as part of a larger sentence, broken up to include links. The full sentence will read 'Learn more about Bitwarden Send **or** sign up to try it today.'" }, "sendAccessTaglineSignUp": { "message": "sign up", "description": "This will be used as part of a larger sentence, broken up to include links. The full sentence will read 'Learn more about Bitwarden Send or **sign up** to try it today.'" }, "sendAccessTaglineTryToday": { "message": "to try it today.", "description": "This will be used as part of a larger sentence, broken up to include links. The full sentence will read 'Learn more about Bitwarden Send or sign up to **try it today.**'" }, "sendCreatorIdentifier": { "message": "Bitwarden user $USER_IDENTIFIER$ shared the following with you", "placeholders": { "user_identifier": { "content": "$1", "example": "An email address" } } }, "viewSendHiddenEmailWarning": { "message": "The Bitwarden user who created this Send has chosen to hide their email address. You should ensure you trust the source of this link before using or downloading its content.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "expirationDateIsInvalid": { "message": "The expiration date provided is not valid." }, "deletionDateIsInvalid": { "message": "The deletion date provided is not valid." }, "expirationDateAndTimeRequired": { "message": "An expiration date and time are required." }, "deletionDateAndTimeRequired": { "message": "A deletion date and time are required." }, "dateParsingError": { "message": "There was an error saving your deletion and expiration dates." }, "webAuthnFallbackMsg": { "message": "To verify your 2FA please click the button below." }, "webAuthnAuthenticate": { "message": "Authenticate WebAuthn" }, "webAuthnNotSupported": { "message": "WebAuthn is not supported in this browser." }, "webAuthnSuccess": { "message": "WebAuthn verified successfully! You may close this tab." }, "hintEqualsPassword": { "message": "Your password hint cannot be the same as your password." }, "enrollPasswordReset": { "message": "Enroll in Password Reset" }, "enrolledPasswordReset": { "message": "Enrolled in Password Reset" }, "withdrawPasswordReset": { "message": "Withdraw from Password Reset" }, "enrollPasswordResetSuccess": { "message": "Enrollment success!" }, "withdrawPasswordResetSuccess": { "message": "Withdrawal success!" }, "eventEnrollPasswordReset": { "message": "User $ID$ enrolled in password reset assistance.", "placeholders": { "id": { "content": "$1", "example": "John Smith" } } }, "eventWithdrawPasswordReset": { "message": "User $ID$ withdrew from password reset assistance.", "placeholders": { "id": { "content": "$1", "example": "John Smith" } } }, "eventAdminPasswordReset": { "message": "Master password reset for user $ID$.", "placeholders": { "id": { "content": "$1", "example": "John Smith" } } }, "eventResetSsoLink": { "message": "Reset Sso link for user $ID$", "placeholders": { "id": { "content": "$1", "example": "John Smith" } } }, "firstSsoLogin": { "message": "$ID$ logged in using Sso for the first time", "placeholders": { "id": { "content": "$1", "example": "John Smith" } } }, "resetPassword": { "message": "Reset Password" }, "resetPasswordLoggedOutWarning": { "message": "Proceeding will log $NAME$ out of their current session, requiring them to log back in. Active sessions on other devices may continue to remain active for up to one hour.", "placeholders": { "name": { "content": "$1", "example": "John Smith" } } }, "thisUser": { "message": "this user" }, "resetPasswordMasterPasswordPolicyInEffect": { "message": "One or more organization policies require the master password to meet the following requirements:" }, "resetPasswordSuccess": { "message": "Password reset success!" }, "resetPasswordEnrollmentWarning": { "message": "Enrollment will allow organization administrators to change your master password. Are you sure you want to enroll?" }, "resetPasswordPolicy": { "message": "Master Password Reset" }, "resetPasswordPolicyDescription": { "message": "Allow administrators in the organization to reset organization users' master password." }, "resetPasswordPolicyWarning": { "message": "Users in the organization will need to self-enroll or be auto-enrolled before administrators can reset their master password." }, "resetPasswordPolicyAutoEnroll": { "message": "Automatic Enrollment" }, "resetPasswordPolicyAutoEnrollDescription": { "message": "All users will be automatically enrolled in password reset once their invite is accepted and will not be allowed to withdraw." }, "resetPasswordPolicyAutoEnrollWarning": { "message": "Users already in the organization will not be retroactively enrolled in password reset. They will need to self-enroll before administrators can reset their master password." }, "resetPasswordPolicyAutoEnrollCheckbox": { "message": "Require new users to be enrolled automatically" }, "resetPasswordAutoEnrollInviteWarning": { "message": "This organization has an enterprise policy that will automatically enroll you in password reset. Enrollment will allow organization administrators to change your master password." }, "resetPasswordOrgKeysError": { "message": "Organization Keys response is null" }, "resetPasswordDetailsError": { "message": "Reset Password Details response is null" }, "trashCleanupWarning": { "message": "Stavke koje su bile u Kanti više od 30 dana će automatski biti obrisane." }, "trashCleanupWarningSelfHosted": { "message": "Items that have been in Trash for a while will be automatically deleted." }, "passwordPrompt": { "message": "Master password re-prompt" }, "passwordConfirmation": { "message": "Master password confirmation" }, "passwordConfirmationDesc": { "message": "This action is protected. To continue, please re-enter your master password to verify your identity." }, "reinviteSelected": { "message": "Resend Invitations" }, "noSelectedUsersApplicable": { "message": "This action is not applicable to any of the selected users." }, "removeUsersWarning": { "message": "Are you sure you want to remove the following users? The process may take a few seconds to complete and cannot be interrupted or canceled." }, "theme": { "message": "Theme" }, "themeDesc": { "message": "Choose a theme for your web vault." }, "themeSystem": { "message": "Use System Theme" }, "themeDark": { "message": "Dark" }, "themeLight": { "message": "Light" }, "confirmSelected": { "message": "Confirm Selected" }, "bulkConfirmStatus": { "message": "Bulk action status" }, "bulkConfirmMessage": { "message": "Confirmed successfully." }, "bulkReinviteMessage": { "message": "Reinvited successfully." }, "bulkRemovedMessage": { "message": "Removed successfully" }, "bulkFilteredMessage": { "message": "Excluded, not applicable for this action." }, "fingerprint": { "message": "Fingerprint" }, "removeUsers": { "message": "Remove Users" }, "error": { "message": "Error" }, "resetPasswordManageUsers": { "message": "Manage Users must also be enabled with the Manage Password Reset permission" }, "setupProvider": { "message": "Provider Setup" }, "setupProviderLoginDesc": { "message": "You've been invited to setup a new provider. To continue, you need to log in or create a new Bitwarden account." }, "setupProviderDesc": { "message": "Please enter the details below to complete the provider setup. Contact Customer Support if you have any questions." }, "providerName": { "message": "Provider Name" }, "providerSetup": { "message": "The provider has been set up." }, "clients": { "message": "Clients" }, "providerAdmin": { "message": "Provider Admin" }, "providerAdminDesc": { "message": "The highest access user that can manage all aspects of your provider as well as access and manage client organizations." }, "serviceUser": { "message": "Service User" }, "serviceUserDesc": { "message": "Service users can access and manage all client organizations." }, "providerInviteUserDesc": { "message": "Invite a new user to your provider by entering their Bitwarden account email address below. If they do not have a Bitwarden account already, they will be prompted to create a new account." }, "joinProvider": { "message": "Join Provider" }, "joinProviderDesc": { "message": "You've been invited to join the provider listed above. To accept the invitation, you need to log in or create a new Bitwarden account." }, "providerInviteAcceptFailed": { "message": "Unable to accept invitation. Ask a provider admin to send a new invitation." }, "providerInviteAcceptedDesc": { "message": "You can access this provider once an administrator confirms your membership. We'll send you an email when that happens." }, "providerUsersNeedConfirmed": { "message": "You have users that have accepted their invitation, but still need to be confirmed. Users will not have access to the provider until they are confirmed." }, "provider": { "message": "Provider" }, "newClientOrganization": { "message": "New Client Organization" }, "newClientOrganizationDesc": { "message": "Create a new client organization that will be associated with you as the provider. You will be able to access and manage this organization." }, "addExistingOrganization": { "message": "Add Existing Organization" }, "myProvider": { "message": "My Provider" }, "addOrganizationConfirmation": { "message": "Are you sure you want to add $ORGANIZATION$ as a client to $PROVIDER$?", "placeholders": { "organization": { "content": "$1", "example": "My Org Name" }, "provider": { "content": "$2", "example": "My Provider Name" } } }, "organizationJoinedProvider": { "message": "Organization was successfully added to the provider" }, "accessingUsingProvider": { "message": "Accessing organization using provider $PROVIDER$", "placeholders": { "provider": { "content": "$1", "example": "My Provider Name" } } }, "providerIsDisabled": { "message": "Provider is disabled." }, "providerUpdated": { "message": "Provider updated" }, "yourProviderIs": { "message": "Your provider is $PROVIDER$. They have administrative and billing privileges for your organization.", "placeholders": { "provider": { "content": "$1", "example": "My Provider Name" } } }, "detachedOrganization": { "message": "The organization $ORGANIZATION$ has been detached from your provider.", "placeholders": { "organization": { "content": "$1", "example": "My Org Name" } } }, "detachOrganizationConfirmation": { "message": "Are you sure you want to detach this organization? The organization will continue to exist but will no longer be managed by the provider." }, "add": { "message": "Add" }, "updatedMasterPassword": { "message": "Updated Master Password" }, "updateMasterPassword": { "message": "Update Master Password" }, "updateMasterPasswordWarning": { "message": "Your Master Password was recently changed by an administrator in your organization. In order to access the vault, you must update your Master Password now. Proceeding will log you out of your current session, requiring you to log back in. Active sessions on other devices may continue to remain active for up to one hour." }, "masterPasswordInvalidWarning": { "message": "Your Master Password does not meet the policy requirements of this organization. In order to join the organization, you must update your Master Password now. Proceeding will log you out of your current session, requiring you to log back in. Active sessions on other devices may continue to remain active for up to one hour." }, "maximumVaultTimeout": { "message": "Vault Timeout" }, "maximumVaultTimeoutDesc": { "message": "Configure a maximum vault timeout for all users." }, "maximumVaultTimeoutLabel": { "message": "Maximum Vault Timeout" }, "invalidMaximumVaultTimeout": { "message": "Invalid Maximum Vault Timeout." }, "hours": { "message": "Hours" }, "minutes": { "message": "Minutes" }, "vaultTimeoutPolicyInEffect": { "message": "Your organization policies are affecting your vault timeout. Maximum allowed Vault Timeout is $HOURS$ hour(s) and $MINUTES$ minute(s)", "placeholders": { "hours": { "content": "$1", "example": "5" }, "minutes": { "content": "$2", "example": "5" } } }, "customVaultTimeout": { "message": "Custom Vault Timeout" }, "vaultTimeoutToLarge": { "message": "Your vault timeout exceeds the restriction set by your organization." }, "disablePersonalVaultExport": { "message": "Disable Personal Vault Export" }, "disablePersonalVaultExportDesc": { "message": "Prohibits users from exporting their private vault data." }, "vaultExportDisabled": { "message": "Vault Export Disabled" }, "personalVaultExportPolicyInEffect": { "message": "One or more organization policies prevents you from exporting your personal vault." }, "selectType": { "message": "Select SSO Type" }, "type": { "message": "Type" }, "openIdConnectConfig": { "message": "OpenID Connect Configuration" }, "samlSpConfig": { "message": "SAML Service Provider Configuration" }, "samlIdpConfig": { "message": "SAML Identity Provider Configuration" }, "callbackPath": { "message": "Callback Path" }, "signedOutCallbackPath": { "message": "Signed Out Callback Path" }, "authority": { "message": "Authority" }, "clientId": { "message": "Client ID" }, "clientSecret": { "message": "Client Secret" }, "metadataAddress": { "message": "Metadata Address" }, "oidcRedirectBehavior": { "message": "OIDC Redirect Behavior" }, "getClaimsFromUserInfoEndpoint": { "message": "Get claims from user info endpoint" }, "additionalScopes": { "message": "Custom Scopes" }, "additionalUserIdClaimTypes": { "message": "Custom User ID Claim Types" }, "additionalEmailClaimTypes": { "message": "Email Claim Types" }, "additionalNameClaimTypes": { "message": "Custom Name Claim Types" }, "acrValues": { "message": "Requested Authentication Context Class Reference values" }, "expectedReturnAcrValue": { "message": "Expected \"acr\" Claim Value In Response" }, "spEntityId": { "message": "SP Entity ID" }, "spMetadataUrl": { "message": "SAML 2.0 Metadata URL" }, "spAcsUrl": { "message": "Assertion Consumer Service (ACS) URL" }, "spNameIdFormat": { "message": "Name ID Format" }, "spOutboundSigningAlgorithm": { "message": "Outbound Signing Algorithm" }, "spSigningBehavior": { "message": "Signing Behavior" }, "spMinIncomingSigningAlgorithm": { "message": "Minimum Incoming Signing Algorithm" }, "spWantAssertionsSigned": { "message": "Expect signed assertions" }, "spValidateCertificates": { "message": "Validate certificates" }, "idpEntityId": { "message": "Entity ID" }, "idpBindingType": { "message": "Binding Type" }, "idpSingleSignOnServiceUrl": { "message": "Single Sign On Service URL" }, "idpSingleLogoutServiceUrl": { "message": "Single Log Out Service URL" }, "idpX509PublicCert": { "message": "X509 Public Certificate" }, "idpOutboundSigningAlgorithm": { "message": "Outbound Signing Algorithm" }, "idpAllowUnsolicitedAuthnResponse": { "message": "Allow unsolicited authentication response" }, "idpAllowOutboundLogoutRequests": { "message": "Allow outbound logout requests" }, "idpSignAuthenticationRequests": { "message": "Sign authentication requests" }, "ssoSettingsSaved": { "message": "Single Sign-On configuration was saved." }, "sponsoredFamilies": { "message": "Free Bitwarden Families" }, "sponsoredFamiliesEligible": { "message": "You and your family are eligible for Free Bitwarden Families. Redeem with your personal email to keep your data secure even when you are not at work." }, "sponsoredFamiliesEligibleCard": { "message": "Redeem your Free Bitwarden for Families plan today to keep your data secure even when you are not at work." }, "sponsoredFamiliesInclude": { "message": "The Bitwarden for Families plan include" }, "sponsoredFamiliesPremiumAccess": { "message": "Premium access for up to 6 users" }, "sponsoredFamiliesSharedCollections": { "message": "Shared collections for Family secrets" }, "badToken": { "message": "The link is no longer valid. Please have the sponsor resend the offer." }, "reclaimedFreePlan": { "message": "Reclaimed free plan" }, "redeem": { "message": "Redeem" }, "sponsoredFamiliesSelectOffer": { "message": "Select the organization you would like sponsored" }, "familiesSponsoringOrgSelect": { "message": "Which Free Families offer would you like to redeem?" }, "sponsoredFamiliesEmail": { "message": "Enter your personal email to redeem Bitwarden Families" }, "sponsoredFamiliesLeaveCopy": { "message": "If you leave or are removed from the sponsoring organization, your Families plan will expire at the end of the billing period." }, "acceptBitwardenFamiliesHelp": { "message": "Accept offer for an existing organization or create a new Families organization." }, "setupSponsoredFamiliesLoginDesc": { "message": "You've been offered a free Bitwarden Families Plan Organization. To continue, you need to log in to the account that received the offer." }, "sponsoredFamiliesAcceptFailed": { "message": "Unable to accept offer. Please resend the offer email from your enterprise account and try again." }, "sponsoredFamiliesAcceptFailedShort": { "message": "Unable to accept offer. $DESCRIPTION$", "placeholders": { "description": { "content": "$1", "example": "You must have at least one existing Families Organization." } } }, "sponsoredFamiliesOffer": { "message": "Accept Free Bitwarden Families" }, "sponsoredFamiliesOfferRedeemed": { "message": "Free Bitwarden Families offer successfully redeemed" }, "redeemed": { "message": "Redeemed" }, "redeemedAccount": { "message": "Redeemed Account" }, "revokeAccount": { "message": "Revoke account $NAME$", "placeholders": { "name": { "content": "$1", "example": "My Sponsorship Name" } } }, "resendEmailLabel": { "message": "Resend Sponsorship email to $NAME$ sponsorship", "placeholders": { "name": { "content": "$1", "example": "My Sponsorship Name" } } }, "freeFamiliesPlan": { "message": "Free Families Plan" }, "redeemNow": { "message": "Redeem Now" }, "recipient": { "message": "Recipient" }, "removeSponsorship": { "message": "Remove Sponsorship" }, "removeSponsorshipConfirmation": { "message": "After removing a sponsorship, you will be responsible for this subscription and related invoices. Are you sure you want to continue?" }, "sponsorshipCreated": { "message": "Sponsorship Created" }, "revoke": { "message": "Revoke" }, "emailSent": { "message": "Email Sent" }, "revokeSponsorshipConfirmation": { "message": "After removing this account, the Families organization owner will be responsible for this subscription and related invoices. Are you sure you want to continue?" }, "removeSponsorshipSuccess": { "message": "Sponsorship Removed" }, "ssoKeyConnectorUnavailable": { "message": "Unable to reach the Key Connector, try again later." }, "keyConnectorUrl": { "message": "Key Connector URL" }, "sendVerificationCode": { "message": "Send a verification code to your email" }, "sendCode": { "message": "Send Code" }, "codeSent": { "message": "Code Sent" }, "verificationCode": { "message": "Verification Code" }, "confirmIdentity": { "message": "Confirm your identity to continue." }, "verificationCodeRequired": { "message": "Verification code is required." }, "invalidVerificationCode": { "message": "Invalid verification code" }, "convertOrganizationEncryptionDesc": { "message": "$ORGANIZATION$ is using SSO with a self-hosted key server. A master password is no longer required to log in for members of this organization.", "placeholders": { "organization": { "content": "$1", "example": "My Org Name" } } }, "leaveOrganization": { "message": "Leave Organization" }, "removeMasterPassword": { "message": "Remove Master Password" }, "removedMasterPassword": { "message": "Master password removed." }, "allowSso": { "message": "Allow SSO authentication" }, "allowSsoDesc": { "message": "Once set up, your configuration will be saved and members will be able to authenticate using their Identity Provider credentials." }, "ssoPolicyHelpStart": { "message": "Enable the", "description": "This will be used as part of a larger sentence, broken up to include links. The full sentence will read 'Enable the SSO Authentication policy to require all members to log in with SSO.'" }, "ssoPolicyHelpLink": { "message": "SSO Authentication policy", "description": "This will be used as part of a larger sentence, broken up to include links. The full sentence will read 'Enable the SSO Authentication policy to require all members to log in with SSO.'" }, "ssoPolicyHelpEnd": { "message": "to require all members to log in with SSO.", "description": "This will be used as part of a larger sentence, broken up to include links. The full sentence will read 'Enable the SSO Authentication policy to require all members to log in with SSO.'" }, "ssoPolicyHelpKeyConnector": { "message": "SSO Authentication and Single Organization policies are required to set up Key Connector decryption." }, "memberDecryptionOption": { "message": "Member Decryption Options" }, "memberDecryptionPassDesc": { "message": "Once authenticated, members will decrypt vault data using their Master Passwords." }, "keyConnector": { "message": "Key Connector" }, "memberDecryptionKeyConnectorDesc": { "message": "Connect Login with SSO to your self-hosted decryption key server. Using this option, members won’t need to use their Master Passwords to decrypt vault data. Contact Bitwarden Support for set up assistance." }, "keyConnectorPolicyRestriction": { "message": "\"Login with SSO and Key Connector Decryption\" is enabled. This policy will only apply to Owners and Admins." }, "enabledSso": { "message": "Enabled SSO" }, "disabledSso": { "message": "Disabled SSO" }, "enabledKeyConnector": { "message": "Enabled Key Connector" }, "disabledKeyConnector": { "message": "Disabled Key Connector" }, "keyConnectorWarning": { "message": "Once members begin using Key Connector, your Organization cannot revert to Master Password decryption. Proceed only if you are comfortable deploying and managing a key server." }, "migratedKeyConnector": { "message": "Migrated to Key Connector" }, "paymentSponsored": { "message": "Please provide a payment method to associate with the organization. Don't worry, we won't charge you anything unless you select additional features or your sponsorship expires. " }, "orgCreatedSponsorshipInvalid": { "message": "The sponsorship offer has expired. You may delete the organization you created to avoid a charge at the end of your 7 day trial. Otherwise you may close this prompt to keep the organization and assume billing responsibility." }, "newFamiliesOrganization": { "message": "New Families Organization" }, "acceptOffer": { "message": "Accept Offer" }, "sponsoringOrg": { "message": "Sponsoring Organization" }, "keyConnectorTest": { "message": "Test" }, "keyConnectorTestSuccess": { "message": "Success! Key Connector reached." }, "keyConnectorTestFail": { "message": "Cannot reach Key Connector. Check URL." }, "sponsorshipTokenHasExpired": { "message": "The sponsorship offer has expired." }, "freeWithSponsorship": { "message": "FREE with sponsorship" }, "formErrorSummaryPlural": { "message": "$COUNT$ fields above need your attention.", "placeholders": { "count": { "content": "$1", "example": "5" } } }, "formErrorSummarySingle": { "message": "1 field above needs your attention." }, "fieldRequiredError": { "message": "$FIELDNAME$ is required.", "placeholders": { "fieldname": { "content": "$1", "example": "Full name" } } }, "required": { "message": "required" }, "idpSingleSignOnServiceUrlRequired": { "message": "Required if Entity ID is not a URL." }, "openIdOptionalCustomizations": { "message": "Optional Customizations" }, "openIdAuthorityRequired": { "message": "Required if Authority is not valid." }, "separateMultipleWithComma": { "message": "Separate multiple with a comma." }, "sessionTimeout": { "message": "Your session has timed out. Please go back and try logging in again." }, "exportingPersonalVaultTitle": { "message": "Exporting Personal Vault" }, "exportingOrganizationVaultTitle": { "message": "Exporting Organization Vault" }, "exportingPersonalVaultDescription": { "message": "Only the personal vault items associated with $EMAIL$ will be exported. Organization vault items will not be included.", "placeholders": { "email": { "content": "$1", "example": "name@example.com" } } }, "exportingOrganizationVaultDescription": { "message": "Only the organization vault associated with $ORGANIZATION$ will be exported. Personal vault items and items from other organizations will not be included.", "placeholders": { "organization": { "content": "$1", "example": "My Org Name" } } }, "backToReports": { "message": "Back to Reports" }, "generator": { "message": "Generator" }, "whatWouldYouLikeToGenerate": { "message": "What would you like to generate?" }, "passwordType": { "message": "Password Type" }, "regenerateUsername": { "message": "Regenerate Username" }, "generateUsername": { "message": "Generate Username" }, "usernameType": { "message": "Username Type" }, "plusAddressedEmail": { "message": "Plus Addressed Email", "description": "Username generator option that appends a random sub-address to the username. For example: address+subaddress@email.com" }, "plusAddressedEmailDesc": { "message": "Use your email provider's sub-addressing capabilities." }, "catchallEmail": { "message": "Catch-all Email" }, "catchallEmailDesc": { "message": "Use your domain's configured catch-all inbox." }, "random": { "message": "Random" }, "randomWord": { "message": "Random Word" }, "service": { "message": "Service" } }
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-label):not(.btn), label.bold { font-weight: 600; @include themify($themes) { color: themed("textHeadingColor"); } } label.form-check-label, .form-control-file { @include themify($themes) { color: themed("textHeadingColor"); } } .form-check-block { .form-check-label { font-weight: 600; > small { display: block; font-weight: normal; @include themify($themes) { color: themed("textMuted"); } } > span { display: block; font-weight: normal; @extend .mt-2; } } } .form-check-block + .form-check-block { &:not(.mt-2) { @extend .mt-3; } } .form-group { .form-group-child-check { @extend .ml-4; } } .form-inline { input[type="datetime-local"] { width: 200px; } } .form-control { @include themify($themes) { background-color: themed("inputBackgroundColor"); border-color: themed("inputBorderColor"); color: themed("inputTextColor"); option { background-color: themed("backgroundColor"); } } &:disabled, &[readonly] { @include themify($themes) { background-color: themed("inputDisabledBackground"); color: themed("inputDisabledColor"); } } } input[type="radio"], input[type="checkbox"] { cursor: pointer; } .form-control.stripe-form-control { padding-top: 0.55rem; &.is-focused { outline: 0; @include themify($themes) { background-color: themed("inputBackgroundColor"); border-color: themed("inputBorderColor"); box-shadow: 0 0 0 $input-focus-width rgba(mix(color-yiq(themed("primary")), themed("primary"), 15%), 0.5); color: themed("inputTextColor"); } &.is-invalid { opacity: 0.75; @include themify($themes) { box-shadow: 0 0 0 $input-focus-width themed("danger"); } } } &.is-invalid { @include themify($themes) { border-color: themed("danger"); } } } .dropdown-menu, .dropdown-item { @include themify($themes) { background-color: themed("dropdownBackground"); color: themed("dropdownTextColor"); } } .dropdown-item { @include themify($themes) { color: themed("dropdownTextColor"); } &.text-danger { @include themify($themes) { color: themed("danger") !important; } } &:hover { @include themify($themes) { background-color: themed("dropdownHover"); } } &:active { background-color: rgba(0, 0, 0, 0.1) !important; } } .dropdown-menu { button { cursor: pointer; } @include themify($themes) { border: 1px solid themed("listItemBorder"); } } .list-group-item { &:focus, &.focus { z-index: 100; } @include themify($themes) { background-color: themed("foregroundColor"); border-color: themed("listItemBorder"); color: themed("textColor"); } > .two-factor-content { justify-content: center; flex-direction: row; display: flex; > .text-col { flex-direction: column; flex: 1; } > .logo-col { min-width: 100px; margin-right: 20px; display: flex; align-items: center; justify-content: center; img { height: fit-content; } } > .btn-col { width: 85px; display: flex; align-items: center; justify-content: center; } } } .list-group-item.active { font-weight: bold !important; padding-left: calc(#{$list-group-item-padding-x} - 3px); @include themify($themes) { border-color: themed("borderColor"); border-left: 3px solid themed("borderPrimaryColor"); color: themed("listItemActive"); } } .section-header { h3, .btn.btn-link { @include themify($themes) { color: themed("headingColor"); } } h3 { font-weight: normal; text-transform: uppercase; } } .error-summary { margin-top: 1rem; } .error-inline { @include themify($themes) { color: themed("danger"); } } // Theming for invalid form elements in the SSO Config Form only // Will be deprecated by component-level styling in the Component Library app-org-manage-sso form { .form-control.ng-invalid, app-input-text.ng-invalid .form-control, app-select.ng-invalid .form-control { @include themify($themes) { border-color: themed("danger"); } } } // Browser specific icons overlayed on input fields. e.g. caps lock indicator on password field ::-webkit-calendar-picker-indicator, input::-webkit-caps-lock-indicator, input::-webkit-credentials-auto-fill-button { @include themify($themes) { filter: themed("browserInputIconsFilter"); } }
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/domain/storageOptions"; import { StateService as BaseStateService } from "jslib-common/services/state.service"; import { StateService as StateServiceAbstraction } from "../abstractions/state.service"; import { Account } from "../models/account"; import { GlobalState } from "../models/globalState"; export class StateService extends BaseStateService<GlobalState, Account> implements StateServiceAbstraction { async addAccount(account: Account) { // Apply web overides to default account values account = new Account(account); await super.addAccount(account); } async getRememberEmail(options?: StorageOptions) { return ( await this.getGlobals(this.reconcileOptions(options, await this.defaultOnDiskLocalOptions())) )?.rememberEmail; } async setRememberEmail(value: boolean, options?: StorageOptions): Promise<void> { const globals = await this.getGlobals( this.reconcileOptions(options, await this.defaultOnDiskLocalOptions()) ); globals.rememberEmail = value; await this.saveGlobals( globals, this.reconcileOptions(options, await this.defaultOnDiskLocalOptions()) ); } async getEncryptedCiphers(options?: StorageOptions): Promise<{ [id: string]: CipherData }> { options = this.reconcileOptions(options, this.defaultInMemoryOptions); return await super.getEncryptedCiphers(options); } async setEncryptedCiphers( value: { [id: string]: CipherData }, options?: StorageOptions ): Promise<void> { options = this.reconcileOptions(options, this.defaultInMemoryOptions); return await super.setEncryptedCiphers(value, options); } async getEncryptedCollections( options?: StorageOptions ): Promise<{ [id: string]: CollectionData }> { options = this.reconcileOptions(options, this.defaultInMemoryOptions); return await super.getEncryptedCollections(options); } async setEncryptedCollections( value: { [id: string]: CollectionData }, options?: StorageOptions ): Promise<void> { options = this.reconcileOptions(options, this.defaultInMemoryOptions); return await super.setEncryptedCollections(value, options); } async getEncryptedFolders(options?: StorageOptions): Promise<{ [id: string]: FolderData }> { options = this.reconcileOptions(options, this.defaultInMemoryOptions); return await super.getEncryptedFolders(options); } async setEncryptedFolders( value: { [id: string]: FolderData }, options?: StorageOptions ): Promise<void> { options = this.reconcileOptions(options, this.defaultInMemoryOptions); return await super.setEncryptedFolders(value, options); } async getEncryptedSends(options?: StorageOptions): Promise<{ [id: string]: SendData }> { options = this.reconcileOptions(options, this.defaultInMemoryOptions); return await super.getEncryptedSends(options); } async setEncryptedSends( value: { [id: string]: SendData }, options?: StorageOptions ): Promise<void> { options = this.reconcileOptions(options, this.defaultInMemoryOptions); return await super.setEncryptedSends(value, options); } override async getLastSync(options?: StorageOptions): Promise<string> { options = this.reconcileOptions(options, this.defaultInMemoryOptions); return await super.getLastSync(options); } override async setLastSync(value: string, options?: StorageOptions): Promise<void> { options = this.reconcileOptions(options, this.defaultInMemoryOptions); return await super.setLastSync(value, options); } }
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> <groupId>com.aitongyi.web</groupId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>bean</artifactId> </project>
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") router.ServeHTTP(rw, req) assertResponse(t, rw, "context-A", 200) // Make sure our buf has something good: logRegexp := regexp.MustCompile("\\[\\d+ .{2}\\] 200 '/action'") if !logRegexp.MatchString(buf.String()) { t.Error("Got invalid log entry: ", buf.String()) } // Do a 404: buf.Reset() rw, req = newTestRequest("GET", "/wat") router.ServeHTTP(rw, req) assertResponse(t, rw, "Not Found", 404) // Make sure our buf has something good: logRegexpNotFound := regexp.MustCompile("\\[\\d+ .{2}\\] 404 '/wat'") if !logRegexpNotFound.MatchString(buf.String()) { t.Error("Got invalid log entry: ", buf.String()) } }
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 := newTestRequest("GET", "/action") router.ServeHTTP(rw, req) assertResponse(t, rw, "context-A", 200) rw, req = newTestRequest("GET", "/"+testFilename()) router.ServeHTTP(rw, req) assertResponse(t, rw, strings.TrimSpace(routerSetupBody()), 200) rw, req = newTestRequest("POST", "/"+testFilename()) router.ServeHTTP(rw, req) assertResponse(t, rw, "Not Found", 404) } // TestStaticMiddlewareIndex will create an assets folder with one nested subfolder. Each folder will have an index.html file. func TestStaticMiddlewareOptionIndex(t *testing.T) { // Create two temporary folders: dirName, err := ioutil.TempDir("", "") if err != nil { panic(err.Error()) } nestedDirName, err := ioutil.TempDir(dirName, "") if err != nil { panic(err.Error()) } // Get the last path segment of the nestedDirName: _, nestedDirSegment := filepath.Split(nestedDirName) // Create first index file indexFilename := filepath.Join(dirName, "index.html") err = ioutil.WriteFile(indexFilename, []byte("index1"), os.ModePerm) if err != nil { panic(err.Error()) } defer os.Remove(indexFilename) // Create second index file nestedIndexFilename := filepath.Join(nestedDirName, "index.html") err = ioutil.WriteFile(nestedIndexFilename, []byte("index2"), os.ModePerm) if err != nil { panic(err.Error()) } defer os.Remove(nestedIndexFilename) // Make router. Static middleware rooted at first temp dir router := New(Context{}) router.Middleware(StaticMiddleware(dirName, StaticOption{IndexFile: "index.html"})) router.Get("/action", (*Context).A) // Getting a root index: rw, req := newTestRequest("GET", "/") router.ServeHTTP(rw, req) assertResponse(t, rw, "index1", 200) // Nested dir rw, req = newTestRequest("GET", "/"+nestedDirSegment) router.ServeHTTP(rw, req) assertResponse(t, rw, "index2", 200) // Nested dir with trailing slash: rw, req = newTestRequest("GET", "/"+nestedDirSegment+"/") router.ServeHTTP(rw, req) assertResponse(t, rw, "index2", 200) } func TestStaticMiddlewareOptionPrefix(t *testing.T) { currentRoot, _ := os.Getwd() router := New(Context{}) router.Middleware(StaticMiddleware(currentRoot, StaticOption{Prefix: "/public"})) router.Get("/action", (*Context).A) rw, req := newTestRequest("GET", "/action") router.ServeHTTP(rw, req) assertResponse(t, rw, "context-A", 200) rw, req = newTestRequest("GET", "/"+testFilename()) router.ServeHTTP(rw, req) assertResponse(t, rw, "Not Found", 404) rw, req = newTestRequest("GET", "/public/"+testFilename()) router.ServeHTTP(rw, req) assertResponse(t, rw, strings.TrimSpace(routerSetupBody()), 200) } func testFilename() string { return "router_setup.go" } func routerSetupBody() string { fileBytes, _ := ioutil.ReadFile(testFilename()) return string(fileBytes) }
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` button on the GitHub page. Next, clone your fork onto your computer (replacing YOUR_USERNAME with your actual GitHub username). ```sh git clone git@github.com:YOUR_USERNAME/web.git ``` Once cloning is complete, change directory to the repository and add the Modern Web project as a remote. ```sh cd web git remote add upstream git@github.com:modernweb-dev/web.git ``` ## Preparing Your Local Environment for Development Now that you have cloned the repository, ensure you have node 18+ installed, then run the following command to set up the development environment. ```sh npm install npm run build ``` This will download and install all packages needed. ## Making Your Changes First, update your fork with the latest code from upstream, then create a new branch for your work. ```sh git checkout master git pull upstream master --rebase git checkout -b my-awesome-fix ``` ### Linting Commits are linted using precommit hooks, meaning that any code that raises a linting error cannot be committed. In order to help avoid that, we recommend using an IDE or editor with an ESLint plugin in order to streamline the development process. Plugins are available for all the popular editors. For more information see [ESLint Integrations](https://eslint.org/docs/user-guide/integrations) ### Running Tests To run the tests of a package, it's recommended to `cd` into the package directory and then using `npm run test` to run them. This way you're only running tests of that specific package. The project needs to have been built at least once with `npm run build` for the tests to run. ### Adding New Packages For all projects, the tsconfig/jsconfig configuration files are auto-generated. You need to add an entry to the [./workspace-packages.mjs](./workspace-packages.mjs) to let it generate a config for you. After adding an entry, run `npm run update:tsconfigs` to generate the files for you. ### Creating a Changeset If you made changes for which you want to trigger a release, you need to create a changeset. This documents your intent to release and allows you to specify a message that will be put into the changelog(s) of the package(s). [More information on changesets](https://github.com/atlassian/changesets) To create a changeset, run: ```sh npx changeset ``` Use the menu to select for which packages you need a release, and then select what kind of release. For the release type, we follow [Semantic Versioning](https://semver.org/), so please take a look if you're unfamiliar. In short: - A documentation change or similar chore usually does not require a release - A bugfix requires a patch - A new feature (feat) requires a minor - A breaking change requires a major Exceptions: - For alpha (<1.0.0), bugfixes and feats are both patches, and breaking changes are allowed as minors. - For release-candidate and other special cases, other rules may follow. ## Committing Your Changes Commit messages must follow the [conventional commit format](https://www.conventionalcommits.org/en/v1.0.0/). Modern Web uses the package name as the scope. So for example if you fix a _terrible bug_ in the package `@web/test-runner`, the commit message should look like this: ```sh fix(test-runner): fix terrible bug ``` ## Create a Pull Request After you commit your changes, it's time to push your branch. ```sh git push -u origin my-awesome-fix ``` After a successful push, visit your fork on GitHub. You should see a button that will allow you to create a pull request.
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 want to write a blog post, or want us to write about a specific topic? [Suggest it!](https://github.com/modernweb-dev/web/issues/new?title=[blog%20post]%20Write%20about%20...&labels=blog%20post&body=I%20would%20like%20to%20write%20about...) _Note: blog posts may age while our guides & docs section will always be up to date_
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. After setting the option, the server will pass the connected web sockets to the `serverStart` hook. <details> <summary>Read more</summary> ```js function myPlugin() { return { name: 'my-plugin', injectWebSocket: true, serverStart({ webSockets }) { // print a console.log in the browser after 1sec setTimeout(() => { webSockets.sendConsoleLog('my-plugin', 'Hello world!'); }, 1000); }, }; } export default { plugins: [myPlugin()], }; ``` </details> &nbsp; ### Built-in messages The web sockets manager has two built-in messages. `sendConsoleLog` is shown above, and will log any message to the browser console. Another built-in message is `sendImport`. This will send a module path to be imported by the browser. You can use this to execute code in the browser. <details> <summary>Read more</summary> In this example, `/foo.js`, will be imported in the browser using a dynamic import. The imported file can be a real file on the file system or a virtual file served by your plugin. The module should have a default export, this is called each time `sendImport` is called. ```js function myPlugin() { let webSockets; return { name: 'my-plugin', injectWebSocket: true, serverStart(options) { ({ webSockets } = options); setTimeout(() => { // this will import /foo.js in the browser webSockets.sendImport('/foo.js'); }, 1000); }, serve(context) { // you can serve a virtual module to be imported if (context.path === '/foo.js') { return 'export default () => console.log("/foo.js");'; } }, }; } ``` You can pass parameters to the function in the browser with the third parameter of the `sendImport` function. ```js function myPlugin() { let webSockets; return { name: 'my-plugin', injectWebSocket: true, serverStart(options) { ({ webSockets } = options); setTimeout(() => { // this will import /foo.js in the browser webSockets.sendImport('/foo.js', ['a', 'b', 'c']); }, 1000); }, serve(context) { // you can serve a virtual module to be imported if (context.path === '/foo.js') { return 'export default (...args) => console.log(...args);'; } }, }; } ``` If the code you want to execute is very simple, you can also send the import as a data URL. Data URLs are valid import paths, and very useful for this use case. ```js function myPlugin() { let webSockets; return { name: 'my-plugin', injectWebSocket: true, serverStart(options) { ({ webSockets } = options); setTimeout(() => { // this will reload the browser webSockets.sendImport('data:text/javascript,window.location.reload()'); }, 1000); }, }; } ``` </details> &nbsp; ### Custom messages To send custom messages to opened web sockets you can use the `send` method. <details> <summary>Read more</summary> ```js function myPlugin() { return { name: 'my-plugin', injectWebSocket: true, serverStart({ webSockets }) { setTimeout(() => { // this will send a message to all opened web sockets // the message must be parsable as JSON webSockets.send(JSON.stringify({ type: 'x' })); }, 1000); }, }; } ``` </details> &nbsp; To respond to messages from the browser, you can listen to the `message` event from the web socket manager. <details> <summary>Read more</summary> ```js function myPlugin() { return { name: 'my-plugin', injectWebSocket: true, serverStart({ webSockets }) { webSockets.on('message', ({ webSocket, data }) => { console.log('received message', data); webSocket.send('message response'); }); }, }; } ``` </details> &nbsp; The message event provides the web socket that fired the event. You can use this to keep track of which sockets send which messages and send messages to specific sockets.
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-dev/web/blob/master/packages/test-runner-core/src/browser-launcher/BrowserLauncher.ts). For a reference implementation, you can take a look at [@web/test-runner-chrome](https://github.com/modernweb-dev/web/tree/master/packages/test-runner-chrome).
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 report is written to disk. **Example config:** ```js // web-test-runner.config.mjs export default { coverageConfig: { report: true, reportDir: 'test-coverage', threshold: { statements: 70, branches: 70, functions: 70, lines: 70, }, }, }; ``` ## Ignoring uncovered lines Web Test Runner uses [`v8-to-istanbul`](https://github.com/istanbuljs/v8-to-istanbul) to covert V8 based code coverage to a form that can be reported by Istanbul. `v8-to-istanbul` allows for ignoring uncovered lines when calculating code coverage through the use of the following custom comment: ```js /* c8 ignore next [line count] */ ``` This is somewhat different than other tools where you might have specifically targetted `if` / `else` branches of logic with an ignore statement. Particularly, V8 does not create phantom `else` statements when calculating coverage, so it is likely that you will be able to use less of these statements than in the past. In this way, you can skip the rest of a line: ```js const text = (falsyOrStringVariableWithTrimmableWhiteSpace || /* c8 ignore next */ '').trim(); ``` You can skip the entire next line: ```js /* c8 ignore next */ if (!requiredVariable) return; ``` Or, you could skip multiple ensuing lines: ```js if (normalCase) { // do normal things /* c8 ignore next 3 */ } else if (specialCase) { // do special things } ``` ## Coverage browser support The default coverage of the test runner uses the ability of Chromium to do native code coverage instrumentation. This gives us the best speed. When testing multiple browsers this should still be fine, you don't need to get code coverage from all browsers. One browser is usually enough. If you need to collect coverage from all browsers, or if you're not testing for Chromium at all, you can use [babel-plugin-istanbul](https://github.com/istanbuljs/babel-plugin-istanbul) to do the code instrumentation. You can use the rollup babel plugin to set this up. This approach is slower and works differently because the instrumentation is done in javascript. If you choose to use the babel plugin, you can turn off native instrumentation by setting `nativeInstrumentation` to false. This avoids double instrumentation. **Example config:** ```js // web-test-runner.config.mjs import { fromRollup } from '@web/dev-server-rollup'; import rollupBabel from '@rollup/plugin-babel'; const babel = fromRollup(rollupBabel); export default { coverage: true, coverageConfig: { nativeInstrumentation: false, }, plugins: [ babel({ // avoid running babel on code that doesn't need it include: ['src/**/*.js'], babelHelpers: 'bundled', plugins: ['babel-plugin-istanbul'], }), ], }; ``` ## Coverage reporting By default coverage reporting uses the lcov reporter. Should you want to use additional reporters, for example, cobertura, then the `reporter` config element should be modified. **Example config:** ```js // web-test-runner.config.mjs export default { coverageConfig: { report: true, reportDir: 'test-coverage', reporters: ['cobertura', 'lcov'] threshold: { statements: 70, branches: 70, functions: 70, lines: 70, }, }, }; ```
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 tutorial of CSS, or even to cover the basics, but rather to highlight some modern CSS techniques and workflows made possible by web standards. Be sure you are familiar with CSS before continuing. If you are unsure check out MDN's [Learn to style HTML using CSS](https://developer.mozilla.org/en-US/docs/Learn/CSS). ## CSS Custom Properties ### Using Variables in CSS In the late 2000s, CSS preprocessors like [LESS](http://lesscss.org) and [SASS](https://sass-lang.com) emerged, offering developers the ability to define variables in CSS just like they would in JavaScript. The advantages to style variables were clear for applications like - Theming - Animations - Maintainability While developers continue to use these preprocessors to define variables in their styles, CSS itself offers the functionality to define variables, called "Custom Properties", and reuse them throughout the app. Custom properties begin with `--`, and can contain any CSS value, like colours, numbers, lengths, or functions like `calc`, `filter`, etc. Define custom properties by setting them on a node, and they're scoped to the node they're defined on, for example: ```css html { --my-background-color: green; --my-font-size: 12px; } article { --my-font-size: 24px; } ``` Then you can use this variable by using `var(--variable-name, optional-fallback)`. ```css p { background-color: var(--my-background-color, cornflowerblue); font-size: var(--my-font-size); padding: 4px var(--p-padding-horizontal, 6px); } ``` You can also declare a variable by using it in scope with a fallback. With this CSS in play, the following document would show two paragraphs, both `cornflowerblue`, one with large text. ```html preview-story <style> :host { --my-background-color: green; --my-font-size: 12px; } article p { --my-font-size: 24px; --my-background-color: cornflowerblue; --p-padding-horizontal: 12px; } p { display: inline-block; border-radius: 4px; padding: 4px var(--p-padding-horizontal, 6px); background-color: var(--my-background-color); font-size: var(--my-font-size); } </style> <p>Hello</p> <article> <p>World</p> </article> ``` The style rules which are ultimately applied to an element depend on all the rules applied to each of its parent elements, going back up to the root of the document. This allows designers to apply multiple stylesheets to a single document. The order and priority by which those rules apply is called the cascade, and that's the "C" in "CSS". ## Style Encapsulation While the cascade is fundamental to CSS, and is certainly useful, it can at times make it more difficult to control the styles applied to a portion of a document. This is particularly important when designing reusable components, which should maintain their style no matter where they're used. While a number of toolchains and techniques exist for achieving style encapsulation, like [BEM](http://getbem.com/introduction/) and [Styled Components](https://github.com/styled-components/styled-components), the web platform itself provides a native mechanism for isolating styles, called [Shadow DOM](https://www.w3.org/TR/shadow-dom/). Isolating a portion of a document within a shadow root allows designers to write the CSS for that component without worrying about how their CSS will affect the rest of the document. Shadow DOM removes the need for complex CSS toolchains or naming conventions. Designers can use simple type, id, or class selectors, in that order. ### Inherited Values Shadow roots prevent their internal styles from "leaking out" to affect the rest of the document, but they do not prevent document styles from "reaching in" to affect the internal styles of an encapsulated component. Specifically, [inherited CSS properties](https://developer.mozilla.org/en-US/docs/Web/CSS/inheritance) are said to "pierce the shadow boundary" in that way. Some commonly-used inherited properties include: - `color` - `font-size` - `pointer-events` All CSS custom properties are inherited, as well, meaning you can use them to pierce Shadow boundaries. This is a common way to apply a theme to a whole page, where individual components apply custom properties internally. ```CSS html { --theme-heading-color: darkblue; --theme-border-radius: 4px; --theme-gap: 16px; } ``` However, you might still need to contain custom properties in a self containing component. For example ```html <my-layout gap="md"> <!-- will set its --layout-gap to 16px --> <my-layout> <!-- --layout-gap is authored to default to an initial value of 4px BUT as its parent layout component pierces the Shadow boundary it'll set this child layout component --layout-gap with the 16px unexpectedly --> </my-layout> </my-layout> ``` In this case, [registering your Custom Property](https://developer.mozilla.org/en-US/docs/Web/CSS/@property) can help prevent inheritance if explicitly set to.
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/> <rect width="100%" height="100%" fill="#38393e"/> <g transform="matrix(0.45, 0, 0, 0.45, 300, 60)">${logo}</g> <g style=" font-size: 70px; text-anchor: middle; font-family: 'Bitstream Vera Sans','Helvetica',sans-serif; font-weight: 700; "> <text x="50%" y="470"> Modern Web </text> <text x="50%" y="520" style="font-size: 30px;"> Guides, tools and libraries for modern web development. </text> </g> </svg> `; }, }); return { socialMediaImage, }; };
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; }); input.focus(); // await 2 frames for IE11 await new Promise(requestAnimationFrame); await new Promise(requestAnimationFrame); expect(firedEvent).to.be.true; });
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', () => { expect({ a: '1', b: '2', c: '3' }).to.equal({ a: '1', b: '5', c: '3', c: 'ewrwekropw' }); });
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, 'logUncaughtErrors.js'), 'utf-8') .replace(REGEXP_SOURCE_MAP, ''); /** * Create the browser script. This project is compiled as CJS because it also needs to run in node, so * we create a small wrapper. * * It can't be ESM anyway, because it should work on older browsers as well. */ export const browserScript = '(function () { var module={};var exports={};\n' + `${serializeScript}\n${logUncaughtErrorsScript}\n` + '\nwindow.__wtr_browser_logs__ = { serialize }; })();';
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 not defined', 'ReferenceError: exports is not defined', ]; /** * @param {string} path */ async function importConfig(path) { try { const config = await import(pathToFileURL(path).href); if (typeof config.default !== 'object') { throw new ConfigLoaderError( `Config at ${path} should have a default export that is an object.`, ); } return config.default; } catch (e) { if (CJS_ERRORS.some(msg => /** @type {Error} */(e).stack?.includes(msg))) { throw new ConfigLoaderError( 'You are using CommonJS syntax such as "require" or "module.exports" in a config loaded as es module. ' + 'Use import/export syntax, or load the file as a CommonJS module by ' + 'using the .cjs file extension or by removing type="module" from your package.json.', ); } throw e; } } module.exports = importConfig;
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, ResolveOptions } from './plugins/Plugin.js'; export { DevServerCoreConfig, MimeTypeMappings } from './server/DevServerCoreConfig.js'; export { WebSocketsManager, WebSocketData } from './web-sockets/WebSocketsManager.js'; export { getRequestBrowserPath, getRequestFilePath, getResponseBody, getHtmlPath, isInlineScriptRequest, } from './utils.js'; export { Logger, ErrorWithLocation } from './logger/Logger.js'; export { PluginSyntaxError } from './logger/PluginSyntaxError.js'; export { PluginError } from './logger/PluginError.js';
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