Files
react-native/packages/debugger-frontend/dist/third-party/front_end/panels/changes/changes-meta.js
T
Alex Hunt 817f610983 Update debugger-frontend from 24b0c81...141c8c93
Summary:
This is a major sync, featuring our recent rebase of `chromium/6344`.

Changelog: [Internal]

Reviewed By: motiz88

Differential Revision: D56884975

fbshipit-source-id: bc91f66bfc92464ab8fa99893ab0181077041b79
2024-05-02 09:15:24 -07:00

2 lines
1.2 KiB
JavaScript

import*as e from"../../core/i18n/i18n.js";import*as n from"../../ui/legacy/legacy.js";let a;const t={changes:"Changes",showChanges:"Show Changes",revertAllChangesToCurrentFile:"Revert all changes to current file",copyAllChangesFromCurrentFile:"Copy all changes from current file"},i=e.i18n.registerUIStrings("panels/changes/changes-meta.ts",t),s=e.i18n.getLazilyComputedLocalizedString.bind(void 0,i);async function o(){return a||(a=await import("./changes.js")),a}function r(e){return void 0===a?[]:e(a)}n.ViewManager.registerViewExtension({location:"drawer-view",id:"changes.changes",title:s(t.changes),commandPrompt:s(t.showChanges),persistence:"closeable",loadView:async()=>new((await o()).ChangesView.ChangesView)}),n.ActionRegistration.registerActionExtension({actionId:"changes.revert",category:"CHANGES",title:s(t.revertAllChangesToCurrentFile),iconClass:"undo",loadActionDelegate:async()=>new((await o()).ChangesView.ActionDelegate),contextTypes:()=>r((e=>[e.ChangesView.ChangesView]))}),n.ActionRegistration.registerActionExtension({actionId:"changes.copy",category:"CHANGES",title:s(t.copyAllChangesFromCurrentFile),iconClass:"copy",loadActionDelegate:async()=>new((await o()).ChangesView.ActionDelegate),contextTypes:()=>r((e=>[e.ChangesView.ChangesView]))});