ember-inspector 4.13.1-alpha.2024.8.8 → 4.13.1-alpha.2025.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PRIVACY.md +3 -0
- package/README.md +10 -2
- package/app/components/app-picker.hbs +2 -2
- package/app/components/component-tree-item.hbs +14 -14
- package/app/components/component-tree-toolbar.hbs +17 -3
- package/app/components/{date-property-field.js → date-property-field.ts} +6 -5
- package/app/components/deprecation-item-source.hbs +1 -1
- package/app/components/deprecation-item.hbs +1 -1
- package/app/components/deprecations-toolbar.hbs +1 -1
- package/app/components/item-types.hbs +7 -7
- package/app/components/list-cell.hbs +3 -3
- package/app/components/list-content.hbs +4 -3
- package/app/components/list-content.ts +96 -0
- package/app/components/list.hbs +3 -3
- package/app/components/list.js +7 -7
- package/app/components/model-types-toolbar.hbs +3 -3
- package/app/components/object-inspector/component-parents.hbs +33 -0
- package/app/components/object-inspector/component-parents.js +43 -0
- package/app/components/object-inspector/dependent-keys.hbs +4 -4
- package/app/components/object-inspector/errors.hbs +4 -4
- package/app/components/object-inspector/properties-all.hbs +1 -1
- package/app/components/object-inspector/properties-base.js +2 -0
- package/app/components/object-inspector/properties-grouped.hbs +5 -5
- package/app/components/object-inspector/property.hbs +36 -34
- package/app/components/object-inspector/property.ts +34 -17
- package/app/components/object-inspector/sort-properties.js +12 -4
- package/app/components/object-inspector/toggle.hbs +9 -0
- package/app/components/object-inspector/toggle.js +6 -0
- package/app/components/object-inspector.hbs +11 -9
- package/app/components/object-inspector.js +1 -1
- package/app/components/promise-item.hbs +11 -11
- package/app/components/promise-item.js +8 -6
- package/app/components/promise-tree-toolbar.hbs +5 -5
- package/app/components/records-toolbar.hbs +2 -2
- package/app/components/render-item.hbs +4 -4
- package/app/components/render-item.ts +12 -9
- package/app/components/render-tree-toolbar.hbs +1 -1
- package/app/components/route-cell-name.hbs +1 -1
- package/app/components/route-cell-name.js +3 -2
- package/app/components/route-tree-toolbar.hbs +2 -2
- package/app/components/scroll-container.js +2 -0
- package/app/components/side-nav.hbs +5 -5
- package/app/components/side-nav.js +1 -1
- package/{lib/ui/addon/components → app/components/ui}/drag-handle.hbs +4 -4
- package/{lib/ui/addon/components → app/components/ui}/drag-handle.js +3 -1
- package/{lib/ui/addon/components → app/components/ui}/empty-message.hbs +1 -1
- package/{lib/ui/addon/components → app/components/ui}/error-page.hbs +3 -3
- package/{lib/ui/addon/components → app/components/ui}/resizable-column.js +1 -1
- package/{lib/ui/addon/components → app/components/ui}/toolbar-clear-button.hbs +1 -1
- package/{lib/ui/addon/components → app/components/ui}/toolbar-reload-button.hbs +1 -1
- package/{lib/ui/addon/components → app/components/ui}/toolbar-search-field.hbs +2 -2
- package/app/computed/{debounce.js → debounce.ts} +7 -5
- package/app/config/environment.d.ts +5 -2
- package/app/controllers/app-config.js +1 -0
- package/app/controllers/application.js +36 -71
- package/app/controllers/component-tree.js +26 -7
- package/app/controllers/container-type.js +2 -1
- package/app/controllers/container-types/{index.js → index.ts} +5 -2
- package/app/controllers/container-types.js +3 -6
- package/app/controllers/deprecations.js +16 -11
- package/app/controllers/libraries.js +1 -0
- package/app/controllers/model-types.js +1 -0
- package/app/controllers/promise-tree.ts +149 -0
- package/app/controllers/records.js +18 -26
- package/app/controllers/{render-tree.js → render-tree.ts} +54 -45
- package/app/controllers/route-tree.js +7 -5
- package/app/helpers/build-style.js +1 -1
- package/app/index.html +1 -19
- package/app/initializers/setup.js +1 -1
- package/app/libs/promise-assembler.ts +249 -0
- package/app/libs/resizable-columns.js +10 -10
- package/app/models/{promise.js → promise.ts} +72 -69
- package/app/{router.js → router.ts} +1 -1
- package/app/routes/app-detected.js +3 -5
- package/app/routes/application.js +9 -13
- package/app/routes/deprecations.js +7 -16
- package/app/routes/launch.js +2 -1
- package/app/routes/libraries.js +2 -1
- package/app/routes/model-type.js +2 -3
- package/app/routes/model-types.ts +57 -0
- package/app/routes/promise-tree.ts +63 -0
- package/app/routes/records.ts +78 -0
- package/app/routes/render-tree.ts +93 -0
- package/app/routes/route-tree.js +0 -1
- package/app/routes/{tab.js → tab.ts} +9 -2
- package/app/routes/whats-new.js +2 -2
- package/app/services/adapters/{basic.js → basic.ts} +36 -30
- package/app/services/adapters/{bookmarklet.js → bookmarklet.ts} +17 -24
- package/app/services/adapters/{chrome.js → chrome.ts} +1 -2
- package/app/services/adapters/{web-extension.js → web-extension.ts} +46 -46
- package/app/services/adapters/websocket.ts +40 -0
- package/app/services/layout.ts +124 -0
- package/app/services/port.ts +195 -0
- package/app/services/storage/{local.js → local.ts} +7 -20
- package/app/services/storage/{memory.js → memory.ts} +6 -21
- package/app/services/{storage.js → storage.ts} +9 -20
- package/app/styles/app.scss +1 -0
- package/app/styles/base.scss +6 -2
- package/app/styles/colors.scss +33 -31
- package/app/styles/component_tree.scss +56 -51
- package/app/styles/dropdown.scss +2 -2
- package/app/styles/ember-table.scss +3 -3
- package/app/styles/mixin.scss +26 -26
- package/app/styles/object_inspector.scss +30 -21
- package/{lib/ui/addon/styles → app/styles/ui}/_disclosure-triangle.scss +3 -1
- package/{lib/ui/addon/styles → app/styles/ui}/_drag-handle.scss +7 -7
- package/{lib/ui/addon/styles → app/styles/ui}/_empty-message.scss +1 -1
- package/{lib/ui/addon/styles → app/styles/ui}/_error-page.scss +8 -7
- package/{lib/ui/addon/styles → app/styles/ui}/_list.scss +46 -45
- package/{lib/ui/addon/styles → app/styles/ui}/_nav.scss +29 -27
- package/app/styles/ui/_object-inspector-toggle.scss +4 -0
- package/{lib/ui/addon/styles → app/styles/ui}/_pill.scss +4 -4
- package/{lib/ui/addon/styles → app/styles/ui}/_send-to-console.scss +1 -1
- package/{lib/ui/addon/styles → app/styles/ui}/_split.scss +26 -20
- package/app/styles/ui/_ui.scss +13 -0
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_checkbox.scss +5 -5
- package/app/styles/ui/toolbar/_icon-button.scss +80 -0
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_index.scss +6 -5
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_radio.scss +10 -10
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_search.scss +5 -3
- package/app/styles/utils.scss +408 -122
- package/app/templates/application.hbs +21 -19
- package/app/templates/component-tree.hbs +4 -1
- package/app/templates/deprecations.hbs +2 -3
- package/app/templates/info.hbs +10 -10
- package/app/templates/promise-tree.hbs +1 -1
- package/app/templates/render-tree.hbs +1 -1
- package/app/templates/route-tree.hbs +1 -1
- package/app/utils/escape-reg-exp.ts +3 -2
- package/app/utils/nullish.ts +7 -0
- package/app/utils/parse-text.ts +4 -5
- package/app/utils/truncate.js +0 -1
- package/config/ember-cli-update.json +5 -3
- package/config/ember-try.js +117 -72
- package/config/environment.js +1 -1
- package/config/optional-features.json +2 -1
- package/dist/bookmarklet/load_inspector.js +31 -11
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.524.3530526ca8a0822af855.js +40 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.582.0ae94a39ca88591dff80.js +42 -0
- package/dist/bookmarklet/panes-3-16-0/assets/ember-inspector.css +997 -156
- package/dist/bookmarklet/panes-3-16-0/assets/ember-inspector.js +557 -609
- package/dist/bookmarklet/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/focus-point-round.svg +9 -0
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/bookmarklet/panes-3-16-0/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/bookmarklet/panes-3-16-0/assets/vendor.css +4 -841
- package/dist/bookmarklet/panes-3-16-0/assets/vendor.js +4277 -5152
- package/dist/bookmarklet/panes-3-16-0/base-object-HAEdWjmg.js +59 -0
- package/dist/bookmarklet/panes-3-16-0/basic-DfbgtngO.js +144 -0
- package/dist/bookmarklet/panes-3-16-0/basic-debug.js +6 -0
- package/dist/bookmarklet/panes-3-16-0/bookmarklet-debug.js +34 -0
- package/dist/bookmarklet/panes-3-16-0/chrome-debug.js +12 -0
- package/dist/bookmarklet/panes-3-16-0/ember.js +115 -0
- package/dist/bookmarklet/panes-3-16-0/ember_debug.js +24 -11011
- package/dist/bookmarklet/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/bookmarklet/panes-3-16-0/firefox-debug.js +32 -0
- package/dist/bookmarklet/panes-3-16-0/index.html +4 -23
- package/dist/bookmarklet/panes-3-16-0/internals-CRmXMEzb.js +12 -0
- package/dist/bookmarklet/panes-3-16-0/main.js +7663 -0
- package/dist/bookmarklet/panes-3-16-0/port.js +108 -0
- package/dist/bookmarklet/panes-3-16-0/profile-node.js +60 -0
- package/dist/bookmarklet/panes-3-16-0/promise-assembler.js +218 -0
- package/dist/bookmarklet/panes-3-16-0/runloop-CF-Qpqgy.js +1138 -0
- package/dist/bookmarklet/panes-3-16-0/start-inspector-BPAW_WLv.js +376 -0
- package/dist/bookmarklet/panes-3-16-0/type-check.js +119 -0
- package/dist/bookmarklet/panes-3-16-0/version.js +90 -0
- package/dist/bookmarklet/panes-3-16-0/versions.js +4 -0
- package/dist/bookmarklet/panes-3-16-0/web-extension-C3pMNVSY.js +144 -0
- package/dist/bookmarklet/panes-3-16-0/websocket-debug.js +60 -0
- package/dist/chrome/background.js +26 -21
- package/dist/chrome/boot.js +1 -1
- package/dist/chrome/content-script.js +12 -11
- package/dist/chrome/devtools.js +12 -3
- package/dist/chrome/manifest.json +3 -3
- package/dist/chrome/options.js +17 -12
- package/dist/chrome/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.524.3530526ca8a0822af855.js +40 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.582.0ae94a39ca88591dff80.js +42 -0
- package/dist/chrome/panes-3-16-0/assets/ember-inspector.css +997 -156
- package/dist/chrome/panes-3-16-0/assets/ember-inspector.js +557 -609
- package/dist/chrome/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/focus-point-round.svg +9 -0
- package/dist/chrome/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/chrome/panes-3-16-0/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/chrome/panes-3-16-0/assets/vendor.css +4 -841
- package/dist/chrome/panes-3-16-0/assets/vendor.js +4277 -5152
- package/dist/chrome/panes-3-16-0/base-object-HAEdWjmg.js +59 -0
- package/dist/chrome/panes-3-16-0/basic-DfbgtngO.js +144 -0
- package/dist/chrome/panes-3-16-0/basic-debug.js +6 -0
- package/dist/chrome/panes-3-16-0/bookmarklet-debug.js +34 -0
- package/dist/chrome/panes-3-16-0/chrome-debug.js +12 -0
- package/dist/chrome/panes-3-16-0/ember.js +115 -0
- package/dist/chrome/panes-3-16-0/ember_debug.js +12 -11021
- package/dist/chrome/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/chrome/panes-3-16-0/firefox-debug.js +32 -0
- package/dist/chrome/panes-3-16-0/index.html +4 -23
- package/dist/chrome/panes-3-16-0/internals-CRmXMEzb.js +12 -0
- package/dist/chrome/panes-3-16-0/main.js +7663 -0
- package/dist/chrome/panes-3-16-0/port.js +108 -0
- package/dist/chrome/panes-3-16-0/profile-node.js +60 -0
- package/dist/chrome/panes-3-16-0/promise-assembler.js +218 -0
- package/dist/chrome/panes-3-16-0/runloop-CF-Qpqgy.js +1138 -0
- package/dist/chrome/panes-3-16-0/start-inspector-BPAW_WLv.js +376 -0
- package/dist/chrome/panes-3-16-0/type-check.js +119 -0
- package/dist/chrome/panes-3-16-0/version.js +90 -0
- package/dist/chrome/panes-3-16-0/versions.js +4 -0
- package/dist/chrome/panes-3-16-0/web-extension-C3pMNVSY.js +144 -0
- package/dist/chrome/panes-3-16-0/websocket-debug.js +60 -0
- package/dist/chrome/scripts/in-page-script.js +19 -13
- package/dist/firefox/background.js +26 -21
- package/dist/firefox/boot.js +1 -1
- package/dist/firefox/content-script.js +12 -11
- package/dist/firefox/devtools.js +12 -3
- package/dist/firefox/manifest.json +3 -3
- package/dist/firefox/options.js +17 -12
- package/dist/firefox/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.524.3530526ca8a0822af855.js +40 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.582.0ae94a39ca88591dff80.js +42 -0
- package/dist/firefox/panes-3-16-0/assets/ember-inspector.css +997 -156
- package/dist/firefox/panes-3-16-0/assets/ember-inspector.js +557 -609
- package/dist/firefox/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/focus-point-round.svg +9 -0
- package/dist/firefox/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/firefox/panes-3-16-0/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/firefox/panes-3-16-0/assets/vendor.css +4 -841
- package/dist/firefox/panes-3-16-0/assets/vendor.js +4277 -5152
- package/dist/firefox/panes-3-16-0/base-object-HAEdWjmg.js +59 -0
- package/dist/firefox/panes-3-16-0/basic-DfbgtngO.js +144 -0
- package/dist/firefox/panes-3-16-0/basic-debug.js +6 -0
- package/dist/firefox/panes-3-16-0/bookmarklet-debug.js +34 -0
- package/dist/firefox/panes-3-16-0/chrome-debug.js +12 -0
- package/dist/firefox/panes-3-16-0/ember.js +115 -0
- package/dist/firefox/panes-3-16-0/ember_debug.js +27 -11016
- package/dist/firefox/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/firefox/panes-3-16-0/firefox-debug.js +32 -0
- package/dist/firefox/panes-3-16-0/index.html +4 -23
- package/dist/firefox/panes-3-16-0/internals-CRmXMEzb.js +12 -0
- package/dist/firefox/panes-3-16-0/main.js +7663 -0
- package/dist/firefox/panes-3-16-0/port.js +108 -0
- package/dist/firefox/panes-3-16-0/profile-node.js +60 -0
- package/dist/firefox/panes-3-16-0/promise-assembler.js +218 -0
- package/dist/firefox/panes-3-16-0/runloop-CF-Qpqgy.js +1138 -0
- package/dist/firefox/panes-3-16-0/start-inspector-BPAW_WLv.js +376 -0
- package/dist/firefox/panes-3-16-0/type-check.js +119 -0
- package/dist/firefox/panes-3-16-0/version.js +90 -0
- package/dist/firefox/panes-3-16-0/versions.js +4 -0
- package/dist/firefox/panes-3-16-0/web-extension-C3pMNVSY.js +144 -0
- package/dist/firefox/panes-3-16-0/websocket-debug.js +60 -0
- package/dist/firefox/scripts/in-page-script.js +19 -13
- package/dist/websocket/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/websocket/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/websocket/assets/chunk.524.3530526ca8a0822af855.js +40 -0
- package/dist/websocket/assets/chunk.582.0ae94a39ca88591dff80.js +42 -0
- package/dist/websocket/assets/ember-inspector.css +997 -156
- package/dist/websocket/assets/ember-inspector.js +557 -609
- package/dist/websocket/assets/svg/ellipsis.svg +3 -3
- package/dist/websocket/assets/svg/focus-point-round.svg +9 -0
- package/dist/websocket/assets/svg/nav-bug.svg +1 -1
- package/dist/websocket/assets/svg/nav-components.svg +2 -2
- package/dist/websocket/assets/svg/nav-container.svg +1 -1
- package/dist/websocket/assets/svg/nav-data.svg +1 -1
- package/dist/websocket/assets/svg/nav-deprecations.svg +3 -3
- package/dist/websocket/assets/svg/nav-info.svg +3 -3
- package/dist/websocket/assets/svg/nav-promises.svg +2 -2
- package/dist/websocket/assets/svg/nav-render-performance.svg +2 -2
- package/dist/websocket/assets/svg/nav-route-tree.svg +7 -7
- package/dist/websocket/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/websocket/assets/vendor.css +4 -841
- package/dist/websocket/assets/vendor.js +4277 -5152
- package/dist/websocket/base-object-HAEdWjmg.js +59 -0
- package/dist/websocket/basic-DfbgtngO.js +144 -0
- package/dist/websocket/basic-debug.js +6 -0
- package/dist/websocket/bookmarklet-debug.js +34 -0
- package/dist/websocket/chrome-debug.js +12 -0
- package/dist/websocket/ember.js +115 -0
- package/dist/websocket/ember_debug.js +48 -11009
- package/dist/websocket/evented-BCTya3yE.js +62 -0
- package/dist/websocket/firefox-debug.js +32 -0
- package/dist/websocket/index.html +4 -23
- package/dist/websocket/internals-CRmXMEzb.js +12 -0
- package/dist/websocket/main.js +7663 -0
- package/dist/websocket/port.js +108 -0
- package/dist/websocket/profile-node.js +60 -0
- package/dist/websocket/promise-assembler.js +218 -0
- package/dist/websocket/runloop-CF-Qpqgy.js +1138 -0
- package/dist/websocket/start-inspector-BPAW_WLv.js +376 -0
- package/dist/websocket/type-check.js +119 -0
- package/dist/websocket/version.js +90 -0
- package/dist/websocket/versions.js +4 -0
- package/dist/websocket/web-extension-C3pMNVSY.js +144 -0
- package/dist/websocket/websocket-debug.js +60 -0
- package/ember-cli-build.js +31 -140
- package/ember_debug/adapters/basic.js +10 -29
- package/ember_debug/adapters/bookmarklet.js +1 -0
- package/ember_debug/adapters/firefox.js +3 -3
- package/ember_debug/adapters/web-extension.js +6 -5
- package/ember_debug/adapters/websocket.js +2 -2
- package/ember_debug/babel.config.cjs +11 -0
- package/ember_debug/container-debug.js +1 -1
- package/ember_debug/data-debug.js +7 -8
- package/ember_debug/debug-port.js +1 -1
- package/ember_debug/deprecation-debug.js +14 -14
- package/ember_debug/entrypoints/basic-debug.js +6 -0
- package/ember_debug/entrypoints/bookmarklet-debug.js +6 -0
- package/ember_debug/entrypoints/chrome-debug.js +6 -0
- package/ember_debug/entrypoints/firefox-debug.js +6 -0
- package/ember_debug/entrypoints/websocket-debug.js +6 -0
- package/ember_debug/general-debug.js +4 -4
- package/ember_debug/lib/boot-ember-inspector.js +9 -0
- package/ember_debug/lib/get-applications.js +27 -0
- package/ember_debug/lib/load-ember-debug-in-webpage.js +30 -0
- package/ember_debug/lib/send-apps.js +14 -0
- package/ember_debug/lib/send-version-miss.js +39 -0
- package/ember_debug/lib/setup-instance-initializer.js +16 -0
- package/ember_debug/lib/start-inspector.js +211 -0
- package/ember_debug/lib/version-test.js +73 -0
- package/ember_debug/lib/versions.js +3 -0
- package/ember_debug/libs/capture-render-tree.js +1 -2
- package/ember_debug/libs/promise-assembler.js +5 -4
- package/ember_debug/libs/render-tree.js +37 -44
- package/ember_debug/libs/source-map.js +7 -6
- package/ember_debug/libs/view-inspection.js +25 -17
- package/ember_debug/main.js +18 -21
- package/ember_debug/models/profile-manager.js +6 -6
- package/ember_debug/models/profile-node.js +1 -1
- package/ember_debug/models/promise.js +2 -2
- package/ember_debug/object-inspector.js +71 -65
- package/ember_debug/package.json +27 -0
- package/ember_debug/port.js +5 -4
- package/ember_debug/promise-debug.js +5 -5
- package/ember_debug/render-debug.js +5 -5
- package/ember_debug/rollup.config.js +24 -0
- package/ember_debug/route-debug.js +10 -9
- package/ember_debug/services/session.js +2 -2
- package/ember_debug/utils/classify.js +1 -1
- package/ember_debug/utils/ember/object/internals.js +1 -11
- package/ember_debug/utils/ember/own-runloop.js +1 -1
- package/ember_debug/utils/ember/runloop.js +7 -10
- package/ember_debug/utils/ember-object-names.js +7 -8
- package/ember_debug/utils/ember.js +120 -14
- package/ember_debug/utils/evented.js +1 -1
- package/ember_debug/utils/get-object-name.js +3 -3
- package/ember_debug/utils/type-check.js +9 -5
- package/ember_debug/view-debug.js +12 -6
- package/eslint.config.mjs +173 -0
- package/gulpfile.js +1 -1
- package/package.json +97 -95
- package/pnpm-workspace.yaml +3 -0
- package/public/assets/svg/ellipsis.svg +3 -3
- package/public/assets/svg/focus-point-round.svg +9 -0
- package/public/assets/svg/nav-bug.svg +1 -1
- package/public/assets/svg/nav-components.svg +2 -2
- package/public/assets/svg/nav-container.svg +1 -1
- package/public/assets/svg/nav-data.svg +1 -1
- package/public/assets/svg/nav-deprecations.svg +3 -3
- package/public/assets/svg/nav-info.svg +3 -3
- package/public/assets/svg/nav-promises.svg +2 -2
- package/public/assets/svg/nav-render-performance.svg +2 -2
- package/public/assets/svg/nav-route-tree.svg +7 -7
- package/public/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/scripts/download-panes.js +1 -1
- package/skeletons/bookmarklet/load_inspector.js +31 -11
- package/skeletons/web-extension/background.js +26 -21
- package/skeletons/web-extension/boot.js +1 -1
- package/skeletons/web-extension/content-script.js +12 -11
- package/skeletons/web-extension/devtools.js +12 -3
- package/skeletons/web-extension/manifest.json +3 -3
- package/skeletons/web-extension/options.js +17 -12
- package/skeletons/web-extension/scripts/in-page-script.js +19 -13
- package/testem.js +0 -1
- package/tests/acceptance/app-picker-test.js +4 -4
- package/tests/acceptance/component-tree-test.js +96 -57
- package/tests/acceptance/container-test.js +0 -2
- package/tests/acceptance/data-test.js +8 -10
- package/tests/acceptance/deprecation-test.js +8 -12
- package/tests/acceptance/info-test.js +2 -2
- package/tests/acceptance/object-inspector-test.js +62 -110
- package/tests/acceptance/promise-test.js +1 -11
- package/tests/acceptance/render-tree-test.js +2 -2
- package/tests/acceptance/route-tree-test.js +12 -14
- package/tests/acceptance/whats-new-test.js +4 -4
- package/tests/ember_debug/container-debug-test.js +4 -4
- package/tests/ember_debug/deprecation-debug-test.js +8 -5
- package/tests/ember_debug/ember-debug-test.js +1 -4
- package/tests/ember_debug/object-inspector-test.js +108 -49
- package/tests/ember_debug/profile-manager-test.js +142 -169
- package/tests/ember_debug/profile-node-test.js +4 -4
- package/tests/ember_debug/promise-assembler-test.js +13 -10
- package/tests/ember_debug/promise-debug-test.js +5 -6
- package/tests/ember_debug/route-debug-test.js +8 -7
- package/tests/ember_debug/view-debug-test.js +257 -182
- package/tests/helpers/{index.js → index.ts} +6 -5
- package/tests/helpers/setup-ember-debug-test.js +14 -0
- package/tests/index.html +1 -2
- package/tests/integration/injection-test.js +14 -15
- package/tests/test-adapter.js +15 -15
- package/tests/test-helper.js +6 -4
- package/tests/unit/check-current-route-test.js +0 -4
- package/tests/unit/resizable-columns-test.js +53 -51
- package/tests/unit/utils/parse-text-test.js +3 -3
- package/tests/unit/utils/search-match-test.js +5 -5
- package/tests/unit/utils/type-check-test.js +22 -0
- package/tsconfig.json +3 -1
- package/types/ember-inspector/index.d.ts +2 -1
- package/types/global.d.ts +1 -7
- package/.editorconfig +0 -19
- package/.ember-cli +0 -15
- package/.eslintignore +0 -33
- package/.eslintrc.js +0 -86
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -30
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.github/dependabot.yml +0 -14
- package/.github/pull_request_template.md +0 -4
- package/.github/workflows/build.yml +0 -339
- package/.github/workflows/plan-release.yml +0 -83
- package/.github/workflows/publish.yml +0 -60
- package/.prettierignore +0 -25
- package/.prettierrc.js +0 -14
- package/.release-plan.json +0 -17
- package/.stylelintrc.js +0 -3
- package/.template-lintrc.js +0 -12
- package/.tool-versions +0 -2
- package/.watchmanconfig +0 -3
- package/app/components/.gitkeep +0 -0
- package/app/components/list-content.js +0 -130
- package/app/controllers/.gitkeep +0 -0
- package/app/controllers/promise-tree.js +0 -130
- package/app/helpers/.gitkeep +0 -0
- package/app/libs/promise-assembler.js +0 -169
- package/app/models/.gitkeep +0 -0
- package/app/routes/.gitkeep +0 -0
- package/app/routes/model-types.js +0 -47
- package/app/routes/promise-tree.js +0 -48
- package/app/routes/records.js +0 -55
- package/app/routes/render-tree.js +0 -66
- package/app/services/adapters/websocket.js +0 -31
- package/app/services/layout.js +0 -39
- package/app/services/port.js +0 -90
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.143.152107b52f1d9b56abd2.js +0 -28
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.178.fd17fd3a54b4e3a24554.js +0 -9
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.143.152107b52f1d9b56abd2.js +0 -28
- package/dist/chrome/panes-3-16-0/assets/chunk.178.fd17fd3a54b4e3a24554.js +0 -9
- package/dist/chrome/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/chrome/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.143.152107b52f1d9b56abd2.js +0 -28
- package/dist/firefox/panes-3-16-0/assets/chunk.178.fd17fd3a54b4e3a24554.js +0 -9
- package/dist/firefox/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/firefox/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/websocket/assets/chunk.143.152107b52f1d9b56abd2.js +0 -28
- package/dist/websocket/assets/chunk.178.fd17fd3a54b4e3a24554.js +0 -9
- package/dist/websocket/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/websocket/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/websocket/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/websocket/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/websocket/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/websocket/assets/fonts/Inter-Regular.woff2 +0 -0
- package/ember_debug/.eslintrc.js +0 -13
- package/ember_debug/utils/ember/debug.js +0 -20
- package/ember_debug/utils/ember/instrumentation.js +0 -11
- package/ember_debug/utils/ember/loader.js +0 -22
- package/ember_debug/utils/rsvp.js +0 -20
- package/ember_debug/vendor/loader.js +0 -54
- package/ember_debug/vendor/startup-wrapper.js +0 -399
- package/lib/ui/addon/styles/_object-inspector-toggle.scss +0 -12
- package/lib/ui/addon/styles/addon.scss +0 -13
- package/lib/ui/addon/styles/toolbar/_icon-button.scss +0 -61
- package/lib/ui/app/components/ui/disclosure-triangle.js +0 -1
- package/lib/ui/app/components/ui/disclosure.js +0 -1
- package/lib/ui/app/components/ui/drag-handle.js +0 -1
- package/lib/ui/app/components/ui/draggable-column.js +0 -1
- package/lib/ui/app/components/ui/empty-message.js +0 -1
- package/lib/ui/app/components/ui/error-page.js +0 -1
- package/lib/ui/app/components/ui/open-links-in-new-window.js +0 -1
- package/lib/ui/app/components/ui/resizable-column.js +0 -1
- package/lib/ui/app/components/ui/send-to-console.js +0 -1
- package/lib/ui/app/components/ui/toolbar-clear-button.js +0 -1
- package/lib/ui/app/components/ui/toolbar-divider.js +0 -1
- package/lib/ui/app/components/ui/toolbar-reload-button.js +0 -1
- package/lib/ui/app/components/ui/toolbar-search-field.js +0 -1
- package/lib/ui/app/components/ui/warning-message.js +0 -1
- package/lib/ui/index.js +0 -34
- package/lib/ui/package.json +0 -13
- package/public/assets/fonts/Inter-Bold.woff +0 -0
- package/public/assets/fonts/Inter-Bold.woff2 +0 -0
- package/public/assets/fonts/Inter-Regular.woff +0 -0
- package/public/assets/fonts/Inter-Regular.woff2 +0 -0
- package/tests/helpers/trigger-port.js +0 -6
- package/tests/unit/.gitkeep +0 -0
- /package/app/{app.js → app.ts} +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/disclosure-triangle.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/disclosure.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/disclosure.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/draggable-column.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/draggable-column.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/open-links-in-new-window.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/open-links-in-new-window.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/resizable-column.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/send-to-console.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/toolbar-divider.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/toolbar-search-field.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/warning-message.hbs +0 -0
- /package/app/controllers/{info.js → info.ts} +0 -0
- /package/app/services/adapters/{firefox.js → firefox.ts} +0 -0
- /package/{lib/ui/addon/styles → app/styles/ui}/_goto-source.scss +0 -0
- /package/{lib/ui/addon/styles → app/styles/ui}/_warning.scss +0 -0
- /package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_divider.scss +0 -0
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import Controller from '@ember/controller';
|
|
2
2
|
import { action } from '@ember/object';
|
|
3
|
+
import type RouterService from '@ember/routing/router-service';
|
|
3
4
|
import { inject as service } from '@ember/service';
|
|
4
5
|
|
|
6
|
+
import type PortService from '../../services/port';
|
|
7
|
+
|
|
5
8
|
export default class ContainerTypesIndexController extends Controller {
|
|
6
|
-
@service port;
|
|
7
|
-
@service router;
|
|
9
|
+
@service declare port: PortService;
|
|
10
|
+
@service declare router: RouterService;
|
|
8
11
|
|
|
9
12
|
@action
|
|
10
13
|
refresh() {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line ember/no-computed-properties-in-native-classes
|
|
1
2
|
import { sort } from '@ember/object/computed';
|
|
2
3
|
import { inject as service } from '@ember/service';
|
|
3
4
|
import Controller from '@ember/controller';
|
|
@@ -5,11 +6,7 @@ import Controller from '@ember/controller';
|
|
|
5
6
|
export default class ContainerTypesController extends Controller {
|
|
6
7
|
@service router;
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
9
|
+
sortProperties = ['name'];
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
}
|
|
11
|
+
@sort('model', 'sortProperties') sorted;
|
|
15
12
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { action
|
|
1
|
+
import { action } from '@ember/object';
|
|
2
2
|
import { inject as service } from '@ember/service';
|
|
3
3
|
import Controller from '@ember/controller';
|
|
4
|
+
import { tracked } from '@glimmer/tracking';
|
|
5
|
+
|
|
6
|
+
import { TrackedArray } from 'tracked-built-ins';
|
|
7
|
+
|
|
4
8
|
import debounceComputed from 'ember-inspector/computed/debounce';
|
|
5
9
|
import searchMatch from 'ember-inspector/utils/search-match';
|
|
6
10
|
|
|
@@ -8,32 +12,33 @@ export default class DeprecationsController extends Controller {
|
|
|
8
12
|
@service adapter;
|
|
9
13
|
@service port;
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
deprecations = new TrackedArray([]);
|
|
16
|
+
@tracked search = null;
|
|
17
|
+
@tracked toggleDeprecationWorkflow = false;
|
|
13
18
|
|
|
14
19
|
@debounceComputed('search', 300) searchValue;
|
|
15
20
|
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
set(this, 'deprecations', []);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
21
|
@action
|
|
22
22
|
changeDeprecationWorkflow(e) {
|
|
23
|
-
this.
|
|
23
|
+
this.toggleDeprecationWorkflow = e.target.checked;
|
|
24
24
|
|
|
25
25
|
this.port.send('deprecation:setOptions', {
|
|
26
26
|
options: { toggleDeprecationWorkflow: this.toggleDeprecationWorkflow },
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
@computed('deprecations.@each.message', 'search')
|
|
31
30
|
get filtered() {
|
|
32
31
|
return this.deprecations.filter((item) =>
|
|
33
|
-
searchMatch(item.message, this.search)
|
|
32
|
+
searchMatch(item.message, this.search),
|
|
34
33
|
);
|
|
35
34
|
}
|
|
36
35
|
|
|
36
|
+
@action
|
|
37
|
+
clear() {
|
|
38
|
+
this.port.send('deprecation:clear');
|
|
39
|
+
this.deprecations.splice(0, this.deprecations.length);
|
|
40
|
+
}
|
|
41
|
+
|
|
37
42
|
@action
|
|
38
43
|
openResource(item) {
|
|
39
44
|
this.adapter.openResource(item.fullSource, item.line);
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { action } from '@ember/object';
|
|
2
|
+
import Controller from '@ember/controller';
|
|
3
|
+
import { inject as service } from '@ember/service';
|
|
4
|
+
import { debounce, once } from '@ember/runloop';
|
|
5
|
+
import { tracked } from '@glimmer/tracking';
|
|
6
|
+
|
|
7
|
+
// @ts-expect-error We should move away from observers.
|
|
8
|
+
import { observes } from '@ember-decorators/object';
|
|
9
|
+
|
|
10
|
+
import type PortService from '../services/port';
|
|
11
|
+
import type PromiseModel from '../models/promise';
|
|
12
|
+
import type WebExtension from '../services/adapters/web-extension';
|
|
13
|
+
import { isNullish } from 'ember-inspector/utils/nullish';
|
|
14
|
+
|
|
15
|
+
export default class PromiseTreeController extends Controller {
|
|
16
|
+
queryParams = ['filter'];
|
|
17
|
+
|
|
18
|
+
declare model: Array<PromiseModel>;
|
|
19
|
+
|
|
20
|
+
@service declare adapter: WebExtension;
|
|
21
|
+
@service declare port: PortService;
|
|
22
|
+
|
|
23
|
+
@tracked createdAfter: Date | null = null;
|
|
24
|
+
@tracked effectiveSearch: string | null = null;
|
|
25
|
+
@tracked filter = 'all';
|
|
26
|
+
// Keep track of promise stack traces.
|
|
27
|
+
// It is opt-in due to performance reasons.
|
|
28
|
+
@tracked instrumentWithStack = false;
|
|
29
|
+
@tracked searchValue: string | null = null;
|
|
30
|
+
|
|
31
|
+
// below used to show the "refresh" message
|
|
32
|
+
get isEmpty() {
|
|
33
|
+
return this.model.length === 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
get neverCleared() {
|
|
37
|
+
return !this.wasCleared;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
get shouldRefresh() {
|
|
41
|
+
return this.isEmpty && this.neverCleared;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
get wasCleared() {
|
|
45
|
+
return Boolean(this.createdAfter);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
get filtered() {
|
|
49
|
+
return this.model.filter((item) => {
|
|
50
|
+
// exclude cleared promises
|
|
51
|
+
if (this.createdAfter && item.createdAt < this.createdAfter) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (!item.isVisible) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Exclude non-filter complying promises
|
|
60
|
+
// If at least one of their children passes the filter,
|
|
61
|
+
// then they pass
|
|
62
|
+
let include = true;
|
|
63
|
+
if (this.filter === 'pending') {
|
|
64
|
+
include = item.pendingBranch;
|
|
65
|
+
} else if (this.filter === 'rejected') {
|
|
66
|
+
include = item.rejectedBranch;
|
|
67
|
+
} else if (this.filter === 'fulfilled') {
|
|
68
|
+
include = item.fulfilledBranch;
|
|
69
|
+
}
|
|
70
|
+
if (!include) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Search filter
|
|
75
|
+
// If they or at least one of their children
|
|
76
|
+
// match the search, then include them
|
|
77
|
+
const search = this.effectiveSearch;
|
|
78
|
+
if (!isNullish(search)) {
|
|
79
|
+
return item.matches(search);
|
|
80
|
+
}
|
|
81
|
+
return true;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// eslint-disable-next-line ember/no-observers, @typescript-eslint/no-unsafe-call
|
|
86
|
+
@observes('searchValue')
|
|
87
|
+
searchChanged() {
|
|
88
|
+
// eslint-disable-next-line ember/no-runloop
|
|
89
|
+
debounce(this, this.updateEffectiveSearch, 500);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
updateEffectiveSearch = () => {
|
|
93
|
+
this.effectiveSearch = this.searchValue;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
@action
|
|
97
|
+
toggleExpand(promise: PromiseModel) {
|
|
98
|
+
const isExpanded = !promise.isExpanded;
|
|
99
|
+
promise.isManuallyExpanded = isExpanded;
|
|
100
|
+
promise.recalculateExpanded();
|
|
101
|
+
const children = promise._allChildren();
|
|
102
|
+
if (isExpanded) {
|
|
103
|
+
children.forEach((child) => {
|
|
104
|
+
if (isNullish(child.isManuallyExpanded)) {
|
|
105
|
+
child.isManuallyExpanded = isExpanded;
|
|
106
|
+
child.recalculateExpanded();
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@action
|
|
113
|
+
tracePromise(promise: PromiseModel) {
|
|
114
|
+
this.port.send('promise:tracePromise', { promiseId: promise.guid });
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@action
|
|
118
|
+
inspectObject() {
|
|
119
|
+
// @ts-expect-error TODO: figure this out later
|
|
120
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, prefer-rest-params
|
|
121
|
+
this.target.send('inspectObject', ...arguments);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@action
|
|
125
|
+
sendValueToConsole(promise: PromiseModel) {
|
|
126
|
+
this.port.send('promise:sendValueToConsole', {
|
|
127
|
+
promiseId: promise.guid,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@action
|
|
132
|
+
setFilter(filter: string) {
|
|
133
|
+
this.filter = filter;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@action
|
|
137
|
+
updateInstrumentWithStack(instrumentWithStack: boolean) {
|
|
138
|
+
this.port.send('promise:setInstrumentWithStack', {
|
|
139
|
+
instrumentWithStack,
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@action
|
|
144
|
+
clear() {
|
|
145
|
+
this.createdAfter = new Date();
|
|
146
|
+
// eslint-disable-next-line ember/no-runloop
|
|
147
|
+
once(this, this.updateEffectiveSearch);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import { isEmpty } from '@ember/utils';
|
|
2
|
-
import { action,
|
|
2
|
+
import { action, get, set } from '@ember/object';
|
|
3
3
|
import Controller, { inject as controller } from '@ember/controller';
|
|
4
4
|
import { inject as service } from '@ember/service';
|
|
5
|
-
import
|
|
5
|
+
import { tracked } from '@glimmer/tracking';
|
|
6
|
+
|
|
7
|
+
import escapeRegExp from '../utils/escape-reg-exp';
|
|
6
8
|
|
|
7
9
|
export default class RecordsController extends Controller {
|
|
10
|
+
queryParams = ['filterValue', 'searchValue'];
|
|
11
|
+
|
|
8
12
|
@controller application;
|
|
9
13
|
@service port;
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
@tracked filterValue = null;
|
|
16
|
+
@tracked filters = [];
|
|
17
|
+
@tracked modelType;
|
|
18
|
+
@tracked searchValue = '';
|
|
19
|
+
@tracked sorts = undefined;
|
|
15
20
|
|
|
16
21
|
recordToString(record) {
|
|
17
22
|
return (record.searchKeywords || []).join(' ').toLowerCase();
|
|
@@ -32,22 +37,16 @@ export default class RecordsController extends Controller {
|
|
|
32
37
|
* @property schema
|
|
33
38
|
* @type {Object}
|
|
34
39
|
*/
|
|
35
|
-
@computed('modelType.columns')
|
|
36
40
|
get columns() {
|
|
37
|
-
return this.
|
|
41
|
+
return this.modelType.columns.map(({ desc, name }) => ({
|
|
38
42
|
valuePath: `columnValues.${name}`,
|
|
39
43
|
name: desc,
|
|
40
44
|
}));
|
|
41
45
|
}
|
|
42
46
|
|
|
43
|
-
@computed(
|
|
44
|
-
'searchValue',
|
|
45
|
-
'model.@each.{columnValues,filterValues}',
|
|
46
|
-
'filterValue'
|
|
47
|
-
)
|
|
48
47
|
get filteredRecords() {
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
const search = this.searchValue;
|
|
49
|
+
const filter = this.filterValue;
|
|
51
50
|
|
|
52
51
|
return this.model.filter((item) => {
|
|
53
52
|
// check filters
|
|
@@ -59,34 +58,27 @@ export default class RecordsController extends Controller {
|
|
|
59
58
|
if (!isEmpty(search)) {
|
|
60
59
|
let searchString = this.recordToString(item);
|
|
61
60
|
return !!searchString.match(
|
|
62
|
-
new RegExp(`.*${escapeRegExp(search.toLowerCase())}.*`)
|
|
61
|
+
new RegExp(`.*${escapeRegExp(search.toLowerCase())}.*`),
|
|
63
62
|
);
|
|
64
63
|
}
|
|
65
64
|
return true;
|
|
66
65
|
});
|
|
67
66
|
}
|
|
68
67
|
|
|
69
|
-
constructor() {
|
|
70
|
-
super(...arguments);
|
|
71
|
-
|
|
72
|
-
this.filters = [];
|
|
73
|
-
this.sorts = undefined;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
68
|
@action
|
|
77
69
|
setFilter(val) {
|
|
78
70
|
val = val || null;
|
|
79
|
-
this.
|
|
71
|
+
this.filterValue = val;
|
|
80
72
|
}
|
|
81
73
|
|
|
82
74
|
@action
|
|
83
75
|
inspectModel([record]) {
|
|
84
|
-
|
|
76
|
+
set(this, 'selection', record);
|
|
85
77
|
this.port.send('data:inspectModel', { objectId: record.objectId });
|
|
86
78
|
}
|
|
87
79
|
|
|
88
80
|
@action
|
|
89
81
|
updateSorts(newSorts) {
|
|
90
|
-
this.
|
|
82
|
+
this.sorts = newSorts;
|
|
91
83
|
}
|
|
92
84
|
}
|
|
@@ -1,65 +1,71 @@
|
|
|
1
|
+
/* eslint-disable ember/no-computed-properties-in-native-classes */
|
|
1
2
|
import { action, computed } from '@ember/object';
|
|
2
3
|
import { tracked } from '@glimmer/tracking';
|
|
3
|
-
import { isEmpty } from '@ember/utils';
|
|
4
4
|
import Controller from '@ember/controller';
|
|
5
5
|
import { inject as service } from '@ember/service';
|
|
6
|
-
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
|
|
7
|
+
import escapeRegExp from '../utils/escape-reg-exp';
|
|
8
|
+
import debounceComputed from '../computed/debounce';
|
|
9
|
+
import type WebExtension from '../services/adapters/web-extension';
|
|
10
|
+
import type PortService from '../services/port';
|
|
11
|
+
import type StorageService from '../services/storage';
|
|
12
|
+
import type { RenderTreeModel } from '../routes/render-tree';
|
|
13
|
+
import { isNullish } from '../utils/nullish';
|
|
9
14
|
|
|
10
15
|
export default class RenderTreeController extends Controller {
|
|
11
|
-
@service adapter;
|
|
12
|
-
@service port;
|
|
16
|
+
@service declare adapter: WebExtension;
|
|
17
|
+
@service declare port: PortService;
|
|
13
18
|
/**
|
|
14
19
|
* Storage is needed for remembering if the user closed the warning
|
|
15
|
-
*
|
|
16
|
-
* @property storage
|
|
17
|
-
* @type {Service}
|
|
18
20
|
*/
|
|
19
|
-
@service storage;
|
|
21
|
+
@service declare storage: StorageService;
|
|
22
|
+
|
|
23
|
+
declare model: RenderTreeModel;
|
|
20
24
|
|
|
21
|
-
initialEmpty = false;
|
|
25
|
+
@tracked initialEmpty = false;
|
|
22
26
|
@tracked shouldHighlightRender = false;
|
|
23
27
|
@tracked search = '';
|
|
24
28
|
|
|
25
|
-
|
|
26
|
-
|
|
29
|
+
get escapedSearch() {
|
|
30
|
+
return escapeRegExp(this.search?.toLowerCase());
|
|
31
|
+
}
|
|
27
32
|
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Indicate the table's header's height in pixels.
|
|
35
|
+
*
|
|
36
|
+
* @property headerHeight
|
|
37
|
+
* @type {Number}
|
|
38
|
+
*/
|
|
39
|
+
get headerHeight() {
|
|
40
|
+
return this.isWarningClosed ? 31 : 56;
|
|
41
|
+
}
|
|
30
42
|
|
|
31
43
|
/**
|
|
32
44
|
* Checks if the user previously closed the warning by referencing localStorage
|
|
33
|
-
*
|
|
34
|
-
* @property isWarningClosed
|
|
35
|
-
* @type {Boolean}
|
|
36
45
|
*/
|
|
37
46
|
get isWarningClosed() {
|
|
38
|
-
return !!this.storage.getItem(
|
|
47
|
+
return !!this.storage.getItem(
|
|
48
|
+
'is-render-tree-warning-closed' as keyof object,
|
|
49
|
+
);
|
|
39
50
|
}
|
|
40
51
|
|
|
41
52
|
set isWarningClosed(value) {
|
|
53
|
+
// @ts-expect-error Ignore this boolean/string mismatch for now.
|
|
42
54
|
this.storage.setItem('is-render-tree-warning-closed', value);
|
|
43
55
|
}
|
|
44
56
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
get headerHeight() {
|
|
52
|
-
return this.isWarningClosed ? 31 : 56;
|
|
57
|
+
get modelEmpty() {
|
|
58
|
+
return this.model.profiles.length === 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
get showEmpty() {
|
|
62
|
+
return this.initialEmpty && this.modelEmpty;
|
|
53
63
|
}
|
|
54
64
|
|
|
55
65
|
// bound to the input field, updates the `search` property
|
|
56
66
|
// 300ms after changing
|
|
57
67
|
@debounceComputed('search', 300)
|
|
58
|
-
searchValue;
|
|
59
|
-
|
|
60
|
-
get escapedSearch() {
|
|
61
|
-
return escapeRegExp(this.search?.toLowerCase());
|
|
62
|
-
}
|
|
68
|
+
declare searchValue: string;
|
|
63
69
|
|
|
64
70
|
@computed('model.isHighlightSupported')
|
|
65
71
|
get isHighlightEnabled() {
|
|
@@ -68,14 +74,16 @@ export default class RenderTreeController extends Controller {
|
|
|
68
74
|
|
|
69
75
|
@computed('escapedSearch', 'model.profiles.@each.name', 'search')
|
|
70
76
|
get filtered() {
|
|
71
|
-
if (
|
|
77
|
+
if (isNullish(this.escapedSearch)) {
|
|
72
78
|
return this.model.profiles;
|
|
73
79
|
}
|
|
74
80
|
|
|
75
|
-
return this.model.profiles.filter(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
return this.model.profiles.filter(
|
|
82
|
+
(item: RenderTreeModel['profiles'][number]) => {
|
|
83
|
+
const regExp = new RegExp(this.escapedSearch as string);
|
|
84
|
+
return recursiveMatch(item, regExp);
|
|
85
|
+
},
|
|
86
|
+
);
|
|
79
87
|
}
|
|
80
88
|
|
|
81
89
|
@action
|
|
@@ -85,7 +93,7 @@ export default class RenderTreeController extends Controller {
|
|
|
85
93
|
|
|
86
94
|
@action
|
|
87
95
|
closeWarning() {
|
|
88
|
-
this.
|
|
96
|
+
this.isWarningClosed = true;
|
|
89
97
|
}
|
|
90
98
|
|
|
91
99
|
@action
|
|
@@ -98,18 +106,19 @@ export default class RenderTreeController extends Controller {
|
|
|
98
106
|
}
|
|
99
107
|
}
|
|
100
108
|
|
|
101
|
-
function recursiveMatch(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
109
|
+
function recursiveMatch(
|
|
110
|
+
item: RenderTreeModel['profiles'][number],
|
|
111
|
+
regExp: string | RegExp,
|
|
112
|
+
) {
|
|
113
|
+
if (item.name.toLowerCase().match(regExp)) {
|
|
105
114
|
return true;
|
|
106
115
|
}
|
|
107
|
-
|
|
108
|
-
for (
|
|
109
|
-
child = children[i];
|
|
116
|
+
|
|
117
|
+
for (const child of item.children) {
|
|
110
118
|
if (recursiveMatch(child, regExp)) {
|
|
111
119
|
return true;
|
|
112
120
|
}
|
|
113
121
|
}
|
|
122
|
+
|
|
114
123
|
return false;
|
|
115
124
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
// eslint-disable-next-line ember/no-computed-properties-in-native-classes
|
|
1
2
|
import { alias } from '@ember/object/computed';
|
|
3
|
+
// eslint-disable-next-line ember/no-computed-properties-in-native-classes
|
|
2
4
|
import { action, computed, set } from '@ember/object';
|
|
3
5
|
import Controller, { inject as controller } from '@ember/controller';
|
|
4
6
|
import { inject as service } from '@ember/service';
|
|
@@ -22,7 +24,7 @@ export default class RouteTreeController extends Controller {
|
|
|
22
24
|
'model.[]',
|
|
23
25
|
'options.{hideRoutes,hideSubstates}',
|
|
24
26
|
'currentRoute.{name,url}',
|
|
25
|
-
'searchValue'
|
|
27
|
+
'searchValue',
|
|
26
28
|
)
|
|
27
29
|
get filtered() {
|
|
28
30
|
if (!Array.isArray(this.model)) {
|
|
@@ -30,8 +32,8 @@ export default class RouteTreeController extends Controller {
|
|
|
30
32
|
}
|
|
31
33
|
return this.model.filter((routeItem) => {
|
|
32
34
|
let currentRoute = this.currentRoute;
|
|
33
|
-
let hideRoutes = this.
|
|
34
|
-
let hideSubstates = this.
|
|
35
|
+
let hideRoutes = this.options.hideRoutes;
|
|
36
|
+
let hideSubstates = this.options.hideSubstates;
|
|
35
37
|
|
|
36
38
|
if (hideRoutes && currentRoute) {
|
|
37
39
|
return checkCurrentRoute(currentRoute, routeItem.value);
|
|
@@ -60,8 +62,8 @@ export default class RouteTreeController extends Controller {
|
|
|
60
62
|
});
|
|
61
63
|
}
|
|
62
64
|
|
|
63
|
-
|
|
64
|
-
super
|
|
65
|
+
constructor() {
|
|
66
|
+
super(...arguments);
|
|
65
67
|
|
|
66
68
|
set(this, 'model', []);
|
|
67
69
|
set(this, 'options', {
|
|
@@ -15,7 +15,7 @@ const { keys } = Object;
|
|
|
15
15
|
|
|
16
16
|
export function buildStyle(_, options) {
|
|
17
17
|
return htmlSafe(
|
|
18
|
-
keys(options).reduce((style, key) => `${style}${key}:${options[key]};`, '')
|
|
18
|
+
keys(options).reduce((style, key) => `${style}${key}:${options[key]};`, ''),
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
21
|
|
package/app/index.html
CHANGED
|
@@ -8,30 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
{{content-for "head"}}
|
|
10
10
|
|
|
11
|
-
<style type="text/css">
|
|
12
|
-
@font-face {
|
|
13
|
-
font-display: swap;
|
|
14
|
-
font-family: 'Inter';
|
|
15
|
-
font-style: normal;
|
|
16
|
-
font-weight: 400;
|
|
17
|
-
src: url("{{rootURL}}assets/fonts/Inter-Regular.woff2?v=3.12") format("woff2"), url("{{rootURL}}assets/fonts/Inter-Regular.woff?v=3.12") format("woff");
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@font-face {
|
|
21
|
-
font-display: swap;
|
|
22
|
-
font-family: 'Inter';
|
|
23
|
-
font-style: normal;
|
|
24
|
-
font-weight: 700;
|
|
25
|
-
src: url("{{rootURL}}assets/fonts/Inter-Bold.woff2?v=3.12") format("woff2"), url("{{rootURL}}assets/fonts/Inter-Bold.woff?v=3.12") format("woff");
|
|
26
|
-
}
|
|
27
|
-
</style>
|
|
28
|
-
|
|
29
11
|
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
|
|
30
12
|
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/ember-inspector.css">
|
|
31
13
|
|
|
32
14
|
{{content-for "head-footer"}}
|
|
33
15
|
</head>
|
|
34
|
-
<body class="theme
|
|
16
|
+
<body class="theme-light">
|
|
35
17
|
{{content-for "body"}}
|
|
36
18
|
|
|
37
19
|
<script src="{{rootURL}}assets/vendor.js"></script>
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
initialize(instance) {
|
|
6
6
|
// {{EMBER_DIST}} is replaced by the build process (basic, chrome, etc)
|
|
7
7
|
let Adapter = instance.resolveRegistration(
|
|
8
|
-
`service:adapters/{{EMBER_DIST}}
|
|
8
|
+
`service:adapters/{{EMBER_DIST}}`,
|
|
9
9
|
);
|
|
10
10
|
|
|
11
11
|
// register the adapter service
|