diff --git a/.babelrc b/.babelrc index 411e2be344..070570723d 100644 --- a/.babelrc +++ b/.babelrc @@ -8,7 +8,7 @@ ["module-resolver", { "root": [ - "./packages/devtools-local-toolbox/public/js", + "./packages/devtools-local-toolbox/src", ], "alias": { "devtools/client/shared/vendor/react": "react", diff --git a/.eslintignore b/.eslintignore index eb19348c3e..8cc2ec2de5 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,14 +1,9 @@ -public/build/* -public/js/lib/tree.js -public/js/utils/imstruct.js -public/js/test/examples/** -public/js/test/integration/** -public/js/test/unit-sources/** -public/js/test/mochitest/head.js -public/js/test/mochitest/examples/** +assets/* +src/test/examples/** +src/test/integration/** +src/test/unit-sources/** +src/test/mochitest/head.js +src/test/mochitest/examples/** webpack.config.* - -packages/devtools-modules/**/*.js -packages/devtools-sham-modules/**/*.js bin/ diff --git a/.storybook/config.js b/.storybook/config.js index 97bd460913..8b2976677e 100644 --- a/.storybook/config.js +++ b/.storybook/config.js @@ -1,11 +1,11 @@ const { configure } = require("@kadira/storybook"); const { setConfig } = require("../config/feature"); -require("../public/js/lib/themes/light-theme.css"); +require("../src/lib/themes/light-theme.css"); setConfig(DebuggerConfig); function loadStories() { - require("../public/js/components/stories"); + require("../src/components/stories"); } configure(loadStories, module); diff --git a/.stylelintignore b/.stylelintignore index 4635268b16..743fb24026 100644 --- a/.stylelintignore +++ b/.stylelintignore @@ -1,2 +1,2 @@ -public/js/components/SplitBox.css -public/js/components/reps.css +src/components/SplitBox.css +src/components/reps.css diff --git a/public/images/Svg.js b/assets/images/Svg.js similarity index 100% rename from public/images/Svg.js rename to assets/images/Svg.js diff --git a/public/images/angle-brackets.svg b/assets/images/angle-brackets.svg similarity index 100% rename from public/images/angle-brackets.svg rename to assets/images/angle-brackets.svg diff --git a/public/images/arrow.svg b/assets/images/arrow.svg similarity index 100% rename from public/images/arrow.svg rename to assets/images/arrow.svg diff --git a/public/images/blackBox.svg b/assets/images/blackBox.svg similarity index 100% rename from public/images/blackBox.svg rename to assets/images/blackBox.svg diff --git a/public/images/breakpoint.svg b/assets/images/breakpoint.svg similarity index 100% rename from public/images/breakpoint.svg rename to assets/images/breakpoint.svg diff --git a/public/images/close.svg b/assets/images/close.svg similarity index 100% rename from public/images/close.svg rename to assets/images/close.svg diff --git a/public/images/domain.svg b/assets/images/domain.svg similarity index 100% rename from public/images/domain.svg rename to assets/images/domain.svg diff --git a/public/images/favicon.png b/assets/images/favicon.png similarity index 100% rename from public/images/favicon.png rename to assets/images/favicon.png diff --git a/public/images/file.svg b/assets/images/file.svg similarity index 100% rename from public/images/file.svg rename to assets/images/file.svg diff --git a/public/images/folder.svg b/assets/images/folder.svg similarity index 100% rename from public/images/folder.svg rename to assets/images/folder.svg diff --git a/public/images/globe.svg b/assets/images/globe.svg similarity index 100% rename from public/images/globe.svg rename to assets/images/globe.svg diff --git a/public/images/magnifying-glass.svg b/assets/images/magnifying-glass.svg similarity index 100% rename from public/images/magnifying-glass.svg rename to assets/images/magnifying-glass.svg diff --git a/public/images/pause-exceptions.svg b/assets/images/pause-exceptions.svg similarity index 100% rename from public/images/pause-exceptions.svg rename to assets/images/pause-exceptions.svg diff --git a/public/images/pause.svg b/assets/images/pause.svg similarity index 100% rename from public/images/pause.svg rename to assets/images/pause.svg diff --git a/public/images/plus.svg b/assets/images/plus.svg similarity index 100% rename from public/images/plus.svg rename to assets/images/plus.svg diff --git a/public/images/prettyPrint.svg b/assets/images/prettyPrint.svg similarity index 100% rename from public/images/prettyPrint.svg rename to assets/images/prettyPrint.svg diff --git a/public/images/resume.svg b/assets/images/resume.svg similarity index 100% rename from public/images/resume.svg rename to assets/images/resume.svg diff --git a/public/images/sad-face.svg b/assets/images/sad-face.svg similarity index 100% rename from public/images/sad-face.svg rename to assets/images/sad-face.svg diff --git a/public/images/settings.svg b/assets/images/settings.svg similarity index 100% rename from public/images/settings.svg rename to assets/images/settings.svg diff --git a/public/images/stepIn.svg b/assets/images/stepIn.svg similarity index 100% rename from public/images/stepIn.svg rename to assets/images/stepIn.svg diff --git a/public/images/stepOut.svg b/assets/images/stepOut.svg similarity index 100% rename from public/images/stepOut.svg rename to assets/images/stepOut.svg diff --git a/public/images/stepOver.svg b/assets/images/stepOver.svg similarity index 100% rename from public/images/stepOver.svg rename to assets/images/stepOver.svg diff --git a/public/images/subSettings.svg b/assets/images/subSettings.svg similarity index 100% rename from public/images/subSettings.svg rename to assets/images/subSettings.svg diff --git a/public/images/toggle-breakpoints.svg b/assets/images/toggle-breakpoints.svg similarity index 100% rename from public/images/toggle-breakpoints.svg rename to assets/images/toggle-breakpoints.svg diff --git a/public/images/worker.svg b/assets/images/worker.svg similarity index 100% rename from public/images/worker.svg rename to assets/images/worker.svg diff --git a/public/debugger.properties b/assets/locales/debugger.properties similarity index 100% rename from public/debugger.properties rename to assets/locales/debugger.properties diff --git a/bin/cypress-server.js b/bin/cypress-server.js index 0ec1282145..e989431fec 100755 --- a/bin/cypress-server.js +++ b/bin/cypress-server.js @@ -6,14 +6,14 @@ const fs = require('fs'); const path = require('path'); /** - saves a fixture file to public/js/test/fixtures + saves a fixture file to src/test/fixtures @param name - name of the fixture file @param text - fixture json text */ function saveFixture(name, text) { function getFixtureFile(name) { - const fixturePath = path.join(__dirname, "../public/js/test/fixtures"); + const fixturePath = path.join(__dirname, "../src/test/fixtures"); const fixtureFile = path.join(fixturePath, name + ".json"); if (!fs.existsSync(fixturePath)) { throw new Error("Could not find fixture " + name); diff --git a/bin/import-deps.js b/bin/import-deps.js index 347da92bb9..63c0724501 100644 --- a/bin/import-deps.js +++ b/bin/import-deps.js @@ -14,10 +14,10 @@ if (!geckoDir) { exit(); } -glob("public/js/lib/devtools/**/*.js").forEach((debuggerFile) => { +glob("src/lib/devtools/**/*.js").forEach((debuggerFile) => { const geckoFilePath = path.join( geckoDir, - path.relative("public/js/lib/", debuggerFile) + path.relative("src/lib/", debuggerFile) ); if (fs.existsSync(geckoFilePath)) { diff --git a/bin/make-firefox-bundle b/bin/make-firefox-bundle index 4b33389359..0e88902215 100755 --- a/bin/make-firefox-bundle +++ b/bin/make-firefox-bundle @@ -31,18 +31,18 @@ fi TARGET=firefox-panel node_modules/.bin/webpack -echo "// Generated from: $REV\n" | cat - public/build/bundle.js > "$DEBUGGER_PATH/bundle.js" -cp public/build/source-map-worker.js "$DEBUGGER_PATH" -cp public/build/pretty-print-worker.js "$DEBUGGER_PATH" -cp public/build/styles.css "$DEBUGGER_PATH" -cp public/images/* "$DEBUGGER_PATH/images" -cp public/debugger.properties "$PROPERTIES_PATH" +echo "// Generated from: $REV\n" | cat - assets/build/bundle.js > "$DEBUGGER_PATH/bundle.js" +cp assets/build/source-map-worker.js "$DEBUGGER_PATH" +cp assets/build/pretty-print-worker.js "$DEBUGGER_PATH" +cp assets/build/styles.css "$DEBUGGER_PATH" +cp assets/images/* "$DEBUGGER_PATH/images" +cp assets/locales/debugger.properties "$PROPERTIES_PATH" rm -r "$DEBUGGER_PATH/test/mochitest" if [ -n "$SYMLINK_MOCHITESTS" ]; then - ln -s `pwd -P`"/$ROOT/../public/js/test/mochitest/" "$DEBUGGER_PATH/test/mochitest" + ln -s `pwd -P`"/$ROOT/../src/test/mochitest/" "$DEBUGGER_PATH/test/mochitest" else - rsync -avz public/js/test/mochitest/ "$DEBUGGER_PATH/test/mochitest" + rsync -avz src/test/mochitest/ "$DEBUGGER_PATH/test/mochitest" fi # Make sure a rebuild uses the new tests diff --git a/bin/mocha-server.js b/bin/mocha-server.js index 99d8ca24dc..145f622ab1 100755 --- a/bin/mocha-server.js +++ b/bin/mocha-server.js @@ -35,7 +35,7 @@ function getTestPaths(dir) { }); } -const testPaths = getTestPaths(path.join(__dirname, "../public/js")); +const testPaths = getTestPaths(path.join(__dirname, "../src")); projectConfig.entry.bundle = projectConfig.entry.bundle.concat(testPaths); const config = Object.assign({}, projectConfig, {}); diff --git a/bin/run-mochitests-docker b/bin/run-mochitests-docker index 8adb45e98b..812aa91398 100755 --- a/bin/run-mochitests-docker +++ b/bin/run-mochitests-docker @@ -3,12 +3,12 @@ TARGET=firefox-panel node_modules/.bin/webpack docker run -it \ - -v `pwd`/public/build/bundle.js:/firefox/devtools/client/debugger/new/bundle.js \ - -v `pwd`/public/build/source-map-worker.js:/firefox/devtools/client/debugger/new/source-map-worker.js \ - -v `pwd`/public/build/pretty-print-worker.js:/firefox/devtools/client/debugger/new/pretty-print-worker.js \ - -v `pwd`/public/build/styles.css:/firefox/devtools/client/debugger/new/styles.css \ - -v `pwd`/public/images:/firefox/devtools/client/debugger/new/images \ - -v `pwd`/public/js/test/mochitest:/firefox/devtools/client/debugger/new/test/mochitest \ + -v `pwd`/assets/build/bundle.js:/firefox/devtools/client/debugger/new/bundle.js \ + -v `pwd`/assets/build/source-map-worker.js:/firefox/devtools/client/debugger/new/source-map-worker.js \ + -v `pwd`/assets/build/pretty-print-worker.js:/firefox/devtools/client/debugger/new/pretty-print-worker.js \ + -v `pwd`/assets/build/styles.css:/firefox/devtools/client/debugger/new/styles.css \ + -v `pwd`/assets/images:/firefox/devtools/client/debugger/new/images \ + -v `pwd`/src/test/mochitest:/firefox/devtools/client/debugger/new/test/mochitest \ -v "/tmp/.X11-unix:/tmp/.X11-unix:rw" \ -e "DISPLAY=unix$DISPLAY" \ --ipc host \ diff --git a/circle.yml b/circle.yml index 16a394ab4b..d599544b7a 100644 --- a/circle.yml +++ b/circle.yml @@ -15,7 +15,7 @@ checkout: test: override: - mkdir -p $CIRCLE_TEST_REPORTS/mocha - - node public/js/test/node-unit-tests.js --ci + - node src/test/node-unit-tests.js --ci - ./bin/run-mochitests-docker - npm run firefox-unit-test pre: diff --git a/docs/debugger-html-react-redux-overview.md b/docs/debugger-html-react-redux-overview.md index ade3edd0ff..15438429fd 100644 --- a/docs/debugger-html-react-redux-overview.md +++ b/docs/debugger-html-react-redux-overview.md @@ -54,12 +54,12 @@ is not modified. React uses a Virtual DOM; only required changes to the actual DOM will be rendered. -#[Components](https://github.com/devtools-html/debugger.html/tree/master/public/js/components) +#[Components](https://github.com/devtools-html/debugger.html/tree/master/src/components) -debbuger.html uses React [Components](https://github.com/devtools-html/debugger.html/tree/master/public/js/components) to render portions of the +debbuger.html uses React [Components](https://github.com/devtools-html/debugger.html/tree/master/src/components) to render portions of the application. Each component’s source code is located under the -public/js/components folder. In this section we will cover how the +src/components folder. In this section we will cover how the presentation pieces fit together; later we will discuss how debugger.html uses Redux to wire up data to each of the components. @@ -167,10 +167,10 @@ the Redux state. Finally, all of the actions in the actions folder are combined and the contained actionCreators in each of the files are setup so the actions can be called directly from the component. -#[Reducers](https://github.com/devtools-html/debugger.html/tree/master/public/js/reducers) +#[Reducers](https://github.com/devtools-html/debugger.html/tree/master/src/reducers) -The [Reducers](https://github.com/devtools-html/debugger.html/tree/master/public/js/reducers) are all located in the public/js/reducers folder and are +The [Reducers](https://github.com/devtools-html/debugger.html/tree/master/src/reducers) are all located in the src/reducers folder and are all combined using Redux’s combineReducters() function. This function is executed in main.js as follows: @@ -243,7 +243,7 @@ The following action types are handled: removing a breakpoint. If the breakpoint is being disabled the disabled attribute of the breakpoint is set to false. If the breakpoint is removed it is deleted from the breakpoints state. - + The breakpoints reducer additionally supplies functions to retrieve information from the breakpoints state. For example the @@ -431,10 +431,10 @@ The tabs reducer handles the following action types: - SELECT\_TAB – This action type is triggered when a specific application is selected for debugging. -#[Actions](https://github.com/devtools-html/debugger.html/tree/master/public/js/actions) +#[Actions](https://github.com/devtools-html/debugger.html/tree/master/src/actions) -The [actions](https://github.com/devtools-html/debugger.html/tree/master/public/js/actions) in debugger.html are all located in the -public/js/actions folder; there is an action file corresponding to +The [actions](https://github.com/devtools-html/debugger.html/tree/master/src/actions) in debugger.html are all located in the +src/actions folder; there is an action file corresponding to each reducer, which is responsible for dispatching the proper event when the application state needs to be modified. In this section we will cover each action file. As stated earlier, many of the @@ -497,7 +497,7 @@ The event-listeners file exports the following functions: currently have listeners bound for the application being debugged. Once retrieved the fetchEventListeners() function dispatches the FETCH\_EVENT\_LISTENERS action. - + ##pause The **pause** action file handles all functions responsible for @@ -505,8 +505,8 @@ pausing, resuming and manipulating the debugger by stepping through code. The functions contained in this file handle several calls back and forth with the connected client (Firefox, Chrome, Node). Most of the client functions are defined in the -public/js/clients/specificclient/events.js and -public/js/clients/specificclient/commands.js files. The pause action +src/clients/specificclient/events.js and +src/clients/specificclient/commands.js files. The pause action file exports the following functions: - addExpression() – Called from the @@ -543,7 +543,7 @@ file exports the following functions: RightSideBar component. This is a generic function that sends different commands to the connected client. After the command is executed the COMMAND action is dispatched. The client commands are - defined in the public/js/clients/specificclient/commands.js file. + defined in the src/clients/specificclient/commands.js file. - stepIn() – This function is called from the RightSideBar. This function calls the command() function to pass it @@ -565,7 +565,7 @@ file exports the following functions: pause button is pressed and the debugger is currently not paused. This function calls the connected clients breakOnNext() function, which is defined in the - public/js/clients/specificclient/commands.js file. After returning + src/clients/specificclient/commands.js file. After returning from the client call the BREAK\_ON\_NEXT action is dispatched. - selectFrame() – This function is called from the Frames component when @@ -581,8 +581,8 @@ file exports the following functions: the variable tree is expanded. The function calls the connected client to retrieve the values and dispatches the LOAD\_OBJECT\_PROPERTIES action. - - + + ##sources The **sources** action is responsible for providing functions that @@ -591,7 +591,7 @@ editor and supplying black box and pretty print functionality. The sources action file exports the following functions: - newSource() – This function is called from the connected - client as defined in public/js/clients/specificclient/events.js when + client as defined in src/clients/specificclient/events.js when a project is loaded. In addition newSource() is called whenever a source map is loaded to add it to the project. This function checks to see if a source map needs to be loaded and if so dispatches the @@ -612,7 +612,7 @@ action file exports the following functions: promise completes and the text is loaded. - selectSourceURL() – Currently this function is only exposed in the - public/js/main.js file to external clients. The function first + src/main.js file to external clients. The function first dispatches a SELECT\_SOURCE action and then dispatches the SELECT\_SOURCE\_URL action. As stated above the text is loaded with the selectSource() function. @@ -634,7 +634,7 @@ action file exports the following functions: adds the new file to the project. Next, the function dispatches a TOGGLE\_PRETTY\_PRINT action, which contains a promise that starts a Worker thread to transform the source. The worker is defined - in public/build/pretty-print-worker.js. The selectSource() function is then + in assets/build/pretty-print-worker.js. The selectSource() function is then called to select the new source. - loadSourceText() – This function is called whenever a source is @@ -654,22 +654,20 @@ action file exports the following functions: - getTextForSources() – This function takes a set of source files and calls loadSourceText() to load each file. Currently this function is not used in debugger.html. - + ##tabs The **tabs** action is responsible for gathering all connected clients that can be debugged, and gathering the tabs for each application that can be debugged on the connected client. The tabs action file exports the following functions: -- newTabs() – This function is called from public/js/main.js and sets +- newTabs() – This function is called from src/main.js and sets the action type to ADD\_TABS. The action is dispatched from the - public/js/main.js when debugger.html is loading and displaying + src/main.js when debugger.html is loading and displaying the main page or when starting to debug when a specific tab is selected. -- selectTab() – This function is called from public/js/main.js when a +- selectTab() – This function is called from src/main.js when a user has selected a specific tab from a connected application to debug. It sets the action type to SELECT\_TAB and the action is - then dispatched in public/js/main.js. - - + then dispatched in src/main.js. diff --git a/docs/local-development.md b/docs/local-development.md index 50983c61ba..3773edaa79 100644 --- a/docs/local-development.md +++ b/docs/local-development.md @@ -57,7 +57,7 @@ The Debugger supports two types of internationalization RTL (right to left) layo **L10N** -[L10N](https://github.com/devtools-html/debugger.html/blob/master/packages/devtools-local-toolbox/public/js/utils/L10N.js) is a global module with two methods `getStr` and `getFormatStr`. +[L10N](https://github.com/devtools-html/debugger.html/blob/master/packages/devtools-local-toolbox/src/utils/L10N.js) is a global module with two methods `getStr` and `getFormatStr`. ```js L10N.getStr("scopes.header") @@ -91,7 +91,7 @@ html[dir="rtl"] .source-footer .command-bar { } ``` -Translated strings are added to the local [strings](https://github.com/devtools-html/debugger.html/blob/master/public/js/strings.json) +Translated strings are added to the local [strings](https://github.com/devtools-html/debugger.html/blob/master/src/strings.json) file and m-c [debugger properties](https://dxr.mozilla.org/mozilla-central/source/devtools/client/locales/en-US/debugger.properties) file. ### Flow @@ -129,6 +129,6 @@ Storybook is a local development environment for react components for viewing co **Getting Started:** * install storybook `npm i -g @kadira/storybook` + start storybook `npm run storybook` -+ edit a component story in `public/js/components/stories` ++ edit a component story in `src/components/stories` ![](./screenshots/storybook.png) diff --git a/docs/mochitests.md b/docs/mochitests.md index 6b9b7f2d91..112d51a28c 100644 --- a/docs/mochitests.md +++ b/docs/mochitests.md @@ -2,7 +2,7 @@ We use [mochitests](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Mo Mochitests require a local checkout of the Firefox source code. This is because they are used to test a lot of Firefox, and you would usually run them inside Firefox. We are developing the debugger outside of Firefox, but still want to test it as a devtools panel, so we've figured out a way to use them. It may not be elegant, but it allows us to ensure a high quality Firefox debugger. -Mochitests live in `public/js/test/mochitest`. +Mochitests live in `src/test/mochitest`. ## Getting Started @@ -28,7 +28,7 @@ cd firefox ./mach mochitest --subsuite devtools devtools/client/debugger/new/test/mochitest/ ``` -This works because we've symlinked the local mochitests into where the debugger lives in Firefox. Any changes to the tests in `public/js/test/mochitest` will be reflected and you can re-run the tests. +This works because we've symlinked the local mochitests into where the debugger lives in Firefox. Any changes to the tests in `src/test/mochitest` will be reflected and you can re-run the tests. Visit the [mochitest](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Mochitest) MDN page to learn more about mochitests and more advanced arguments. A few tips: diff --git a/docs/reference/index.html b/docs/reference/index.html index a116c5e499..c2556d2acd 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -64,33 +64,6 @@

- - - - - -
  • - utils/source-map-worker - - - -
  • @@ -178,12 +151,47 @@

  • - reducers/ui - + href='#utilssource' + class=" toggle-sibling"> + utils/source + + +
  • @@ -260,9 +268,9 @@

  • - utils/source + utils/source-map-worker @@ -272,27 +280,9 @@

  • Static members
  • - .trimUrlQuery -
  • - -
  • - .isJavaScript -
  • - -
  • - .isPretty -
  • - -
  • - .getFilename + ._setSourceMapRoot
  • @@ -304,6 +294,16 @@

    +
  • + reducers/ui + + + +
  • + +
  • @@ -359,9 +359,9 @@

  • - utils/makeRecord + reducers/sources @@ -371,15 +371,15 @@

  • Static members
  • - .Record + .updateTabList
  • - .makeRecord + .getNewSelectedSourceId
  • @@ -392,9 +392,19 @@

  • + reducers/breakpoints + + + +
  • + + +
  • - reducers/sources + utils/makeRecord @@ -404,15 +414,15 @@

  • Static members
  • - .updateTabList + .Record
  • - .getNewSelectedSourceId + .makeRecord
  • @@ -424,16 +434,6 @@

    -
  • - reducers/breakpoints - - - -
  • - -
  • @@ -492,39 +492,6 @@

    - - -
  • - - -
  • - actions/event-listeners - - - -
  • @@ -594,6 +561,72 @@

    + + + + + +
  • + actions/event-listeners + + + + + +
  • + + +
  • + utils/create-store + + + +
  • @@ -699,9 +732,9 @@

  • - utils/source-search + actions/navigation @@ -711,123 +744,108 @@

  • Static members
  • - .SearchState + .willNavigate
  • - .getSearchState + .navigated
  • + + + + + + + + + +
  • + utils/source-search + + + + - -
  • - - -
  • - utils/create-store - - - - - -
  • - - -
  • - actions/navigation - - - - + +
  • + + +
  • + mochitest/asserts + + + + + +
  • + + +
  • + mochitest/waits + + + +
  • @@ -1161,9 +1269,9 @@

  • - mochitest/waits + mochitest @@ -1173,105 +1281,15 @@

  • Static members
  • - .waitForDispatch -
  • - -
  • - .waitForThreadEvents -
  • - -
  • - .waitForState -
  • - -
  • - .waitForSources + .initDebugger
  • - .waitForPaused -
  • - - - - - - - - - - -
  • - mochitest/asserts - - - - - -
  • - - -
  • - mochitest - - - - - - - - - - - - - - - - - - -
    - - -
    -

    - utils/source-map-worker -

    - -
    - - -

    Source Map Worker

    - - -
    utils/source-map-worker
    - - - - - - - - - - - - - - - - - - - - -
    Static Members
    -
    - -
    -
    -
    - - _setSourceMapRoot(sourceMap, absSourceMapURL, source) -
    -
    - @@ -2398,61 +2295,17 @@

    -

    - reducers/ui -

    - -
    - - -

    UI reducer

    - - -
    reducers/ui
    - - - - - - - - - - - - - - - - - - - - - - - - -

    - - - - -
    - - -
    -

    - utils/test-head +

    + utils/source

    -

    Utils for Sources Tree Component

    +

    Utils for working with Source URLs

    -
    utils/test-head
    +
    utils/source
    @@ -2476,11 +2329,11 @@

    Static Members
    -
    +
    - createStore(client, [initialState]) + trimUrlQuery(url)
    -
    +
    - commonLog(msg, [data]) + isJavaScript(url, [contentType])
    -
    +
    - makeSource(name, [props]) + isPretty(source)
    -
    +
    - waitForState(store, predicate) + getFilename(source)

    - - - - - - - - - - - - - - - - -
    - - -
    -

    - utils/source -

    - -
    - - -

    Utils for working with Source URLs

    - - -
    utils/source
    - - - - - - - - - - - - - - - - - - - - -
    Static Members
    -
    - -
    -
    -
    - - trimUrlQuery(url) -
    -
    -
    -
    +
    - isJavaScript(url, [contentType]) + commonLog(msg, [data])
    -
    +
    - isPretty(source) + makeSource(name, [props])
    -
    +
    - getFilename(source) + waitForState(store, predicate)
    + + + + +
    + + +
    +

    + utils/fromJS +

    + +
    + + +

    Immutable JS conversion utils

    + + +
    utils/fromJS
    @@ -3424,11 +3208,11 @@

    Static Members
    -
    +
    - Record + fromJS(value)
    -
    +
    + + + + + + +

    + + + + +
    + + +
    +

    + Task +

    + +
    + + +

    This object provides the public module functions.

    + + +
    Task
    + + + + + + + + + + + + + + + + + + + + +
    Static Members
    +
    + +
    - makeRecord(spec) + spawn(task)
    + + + + +
    + + +
    +

    + actions/breakpoints +

    + +
    + + +

    Redux actions for breakpoints

    + + +
    actions/breakpoints
    + + + + + + + + + + + + + + + + + + + + +
    Static Members
    +
    + +
    +
    +
    + + ThunkArgs +
    +
    + +
    + +
    +
    +
    + + enableBreakpoint(location) +
    +
    + +
    + +
    +
    addBreakpoint(location, $1) @@ -4192,7 +4210,7 @@

    - setBreakpointCondition(location, condition) + setBreakpointCondition(location, condition, $1)
    +
    +
    + $1 (Object + (default {}) + ) +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    $1.condition Any +
    $1.getTextForLine Any +
    + +
    +

    @@ -4278,17 +4332,17 @@

    -

    - actions/event-listeners +

    + actions/sources

    -

    Redux actions for the event listeners state

    +

    Redux actions for the sources state

    -
    actions/event-listeners
    +
    actions/sources
    @@ -4312,11 +4366,11 @@

    Static Members
    -
    +
    - fetchEventListeners() + newSource(source)
    -
    +
    - updateEventBreakpoints(eventNames) + loadSourceMap(generatedSource)
    -
    +
    +
    +
    + + selectSourceURL(url, [options]) +
    +
    + +
    + +
    - newSource(source) + selectSource(id, [options])
    -
    +
    - loadSourceMap(generatedSource) + closeTab(id)
    -
    +
    - selectSourceURL(url, [options]) + togglePrettyPrint(string, sourceId)
    -
    +
    - selectSource(id, [options]) + loadSourceText(source)
    + + + + + + + + + + + + + + + +

    + + + + +
    +
    +
    + + getTextForSources(array, actors) +
    +
    + +
    + + + + + + + + + + + + + +
    + + +
    +

    + actions/event-listeners +

    + +
    + + +

    Redux actions for the event listeners state

    + + +
    actions/event-listeners
    + + + + + + + + + + + + + + + + + + + + +
    Static Members
    +
    + +
    +
    +
    + + fetchEventListeners() +
    +
    +
    -
    +
    - closeTab(id) + updateEventBreakpoints(eventNames)
    -
    -
    -
    - - togglePrettyPrint(string, sourceId) -
    -
    - - - - - -
    Parameters
    -
    - -
    -
    - string (Any) id The source form from the RDP. +
    - - - -
    -
    - sourceId (string) -
    + -
    - - - - - +
    +
    +

    + utils/create-store +

    -
    Returns
    - Any: - Promise -A promise that resolves to -[aSource, prettyText] - or rejects to +
    + -[aSource, error] -. +

    Redux store utils

    + + +
    utils/create-store
    - - + + + + @@ -4841,16 +5074,18 @@

    -

    - - -
    + + +
    Static Members
    +
    + +
    - loadSourceText(source) + ReduxStoreOptions