Created
October 27, 2016 19:25
-
-
Save jasonLaster/416d43026dc6620d9e567cfd68426b7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/packages/devtools-local-toolbox/package.json b/packages/devtools-local-toolbox/package.json | |
index fb17cd9..9bb685a 100644 | |
--- a/packages/devtools-local-toolbox/package.json | |
+++ b/packages/devtools-local-toolbox/package.json | |
@@ -19,8 +19,7 @@ | |
"engines": { | |
"node": ">=5.0.0" | |
}, | |
- "dependencies": { | |
- }, | |
+ "dependencies": {}, | |
"devDependencies": { | |
"amd-loader": "0.0.5", | |
"body-parser": "^1.15.0", | |
@@ -34,6 +33,7 @@ | |
"devtools-sham-modules": "^0.0.3", | |
"express": "^4.13.4", | |
"extract-text-webpack-plugin": "^1.0.1", | |
+ "java-properties-loader": "^0.2.0", | |
"json-loader": "^0.5.4", | |
"lodash": "^4.13.1", | |
"minimist": "^1.2.0", | |
@@ -42,8 +42,8 @@ | |
"rimraf": "^2.5.2", | |
"webpack": "1.13.1", | |
"webpack-dev-middleware": "^1.6.1", | |
- "webpack-hot-middleware": "^2.12.0", | |
"webpack-env-loader-plugin": "^0.1.4", | |
+ "webpack-hot-middleware": "^2.12.0", | |
"ws": "^1.0.1" | |
}, | |
"files": [ | |
diff --git a/packages/devtools-local-toolbox/webpack.config.js b/packages/devtools-local-toolbox/webpack.config.js | |
index 4143485..f08c2bf 100644 | |
--- a/packages/devtools-local-toolbox/webpack.config.js | |
+++ b/packages/devtools-local-toolbox/webpack.config.js | |
@@ -4,6 +4,7 @@ require("babel-register"); | |
const path = require("path"); | |
const webpack = require("webpack"); | |
const ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
+// const ExtractTextPlugin = require("java-properties-loader"); | |
const { isDevelopment, isFirefoxPanel, getValue } = require("devtools-config"); | |
const { getConfig } = require("../devtools-config/registerConfig"); | |
@@ -27,21 +28,21 @@ module.exports = webpackConfig => { | |
}; | |
webpackConfig.module = { | |
+ preloaders: [ | |
+ { test: /\.properties$/, loader: "json!java-properties" }, | |
+ ], | |
loaders: [ | |
- { test: /\.json$/, | |
- loader: "json" }, | |
- { test: /\.js$/, | |
- exclude: /(node_modules|bower_components|fs)/, | |
- loaders: [ | |
- "babel?" + | |
- defaultBabelPlugins.map(p => "plugins[]=" + p) + | |
- "&ignore=public/js/lib" | |
- ], | |
- isJavaScriptLoader: true | |
- }, | |
- { test: /\.svg$/, | |
- exclude: /lkdjlskdjslkdjsdlk/, | |
- loader: "svg-inline" } | |
+ { test: /\.json$/, loader: "json" }, | |
+ { test: /\.js$/, | |
+ exclude: /(node_modules|bower_components|fs|properties)/, | |
+ loaders: [ | |
+ "babel?" + | |
+ defaultBabelPlugins.map(p => "plugins[]=" + p) + | |
+ "&ignore=public/js/lib" | |
+ ], | |
+ isJavaScriptLoader: true | |
+ }, | |
+ { test: /\.svg$/, loader: "svg-inline" } | |
] | |
}; | |
@@ -58,7 +59,6 @@ module.exports = webpackConfig => { | |
if (isDevelopment()) { | |
webpackConfig.module.loaders.push({ | |
test: /\.css$/, | |
- exclude: /lkjsdflksdjlksdj/, | |
loader: "style!css" | |
}); | |
diff --git a/public/debugger.properties b/public/debugger.properties | |
new file mode 100644 | |
index 0000000..4b9acb6 | |
--- /dev/null | |
+++ b/public/debugger.properties | |
@@ -0,0 +1,351 @@ | |
+# This Source Code Form is subject to the terms of the Mozilla Public | |
+# License, v. 2.0. If a copy of the MPL was not distributed with this | |
+# file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
+ | |
+# LOCALIZATION NOTE These strings are used inside the Debugger | |
+# which is available from the Web Developer sub-menu -> 'Debugger'. | |
+# The correct localization of this file might be to keep it in | |
+# English, or another language commonly spoken among web developers. | |
+# You want to make that choice consistent across the developer tools. | |
+# A good criteria is the language in which you'd find the best | |
+# documentation on web development on the web. | |
+ | |
+# LOCALIZATION NOTE (collapsePanes): This is the tooltip for the button | |
+# that collapses the left and right panes in the debugger UI. | |
+collapsePanes=Collapse panes | |
+ | |
+# LOCALIZATION NOTE (expandPanes): This is the tooltip for the button | |
+# that expands the left and right panes in the debugger UI. | |
+expandPanes=Expand panes | |
+ | |
+# LOCALIZATION NOTE (pauseButtonTooltip): The tooltip that is displayed for the pause | |
+# button when the debugger is in a running state. | |
+pauseButtonTooltip=Click to pause (%S) | |
+ | |
+# LOCALIZATION NOTE (pausePendingButtonTooltip): The tooltip that is displayed for | |
+# the pause button after it's been clicked but before the next JavaScript to run. | |
+pausePendingButtonTooltip=Waiting for next execution | |
+ | |
+# LOCALIZATION NOTE (resumeButtonTooltip): The label that is displayed on the pause | |
+# button when the debugger is in a paused state. | |
+resumeButtonTooltip=Click to resume (%S) | |
+ | |
+# LOCALIZATION NOTE (stepOverTooltip): The label that is displayed on the | |
+# button that steps over a function call. | |
+stepOverTooltip=Step Over (%S) | |
+ | |
+# LOCALIZATION NOTE (stepInTooltip): The label that is displayed on the | |
+# button that steps into a function call. | |
+stepInTooltip=Step In (%S) | |
+ | |
+# LOCALIZATION NOTE (stepOutTooltip): The label that is displayed on the | |
+# button that steps out of a function call. | |
+stepOutTooltip=Step Out (%S) | |
+ | |
+# LOCALIZATION NOTE (noWorkersText): The text to display in the workers list | |
+# when there are no workers. | |
+noWorkersText=This page has no workers. | |
+ | |
+# LOCALIZATION NOTE (noSourcesText): The text to display in the sources list | |
+# when there are no sources. | |
+noSourcesText=This page has no sources. | |
+ | |
+# LOCALIZATION NOTE (noEventListenersText): The text to display in the events tab | |
+# when there are no events. | |
+noEventListenersText=No event listeners to display | |
+ | |
+# LOCALIZATION NOTE (noStackFramesText): The text to display in the call stack tab | |
+# when there are no stack frames. | |
+noStackFramesText=No stack frames to display | |
+ | |
+# LOCALIZATION NOTE (eventCheckboxTooltip): The tooltip text to display when | |
+# the user hovers over the checkbox used to toggle an event breakpoint. | |
+eventCheckboxTooltip=Toggle breaking on this event | |
+ | |
+# LOCALIZATION NOTE (eventOnSelector): The text to display in the events tab | |
+# for every event item, between the event type and event selector. | |
+eventOnSelector=on | |
+ | |
+# LOCALIZATION NOTE (eventInSource): The text to display in the events tab | |
+# for every event item, between the event selector and listener's owner source. | |
+eventInSource=in | |
+ | |
+# LOCALIZATION NOTE (eventNodes): The text to display in the events tab when | |
+# an event is listened on more than one target node. | |
+eventNodes=%S nodes | |
+ | |
+# LOCALIZATION NOTE (eventNative): The text to display in the events tab when | |
+# a listener is added from plugins, thus getting translated to native code. | |
+eventNative=[native code] | |
+ | |
+# LOCALIZATION NOTE (*Events): The text to display in the events tab for | |
+# each group of sub-level event entries. | |
+animationEvents=Animation | |
+audioEvents=Audio | |
+batteryEvents=Battery | |
+clipboardEvents=Clipboard | |
+compositionEvents=Composition | |
+deviceEvents=Device | |
+displayEvents=Display | |
+dragAndDropEvents=Drag and Drop | |
+gamepadEvents=Gamepad | |
+indexedDBEvents=IndexedDB | |
+interactionEvents=Interaction | |
+keyboardEvents=Keyboard | |
+mediaEvents=HTML5 Media | |
+mouseEvents=Mouse | |
+mutationEvents=Mutation | |
+navigationEvents=Navigation | |
+pointerLockEvents=Pointer Lock | |
+sensorEvents=Sensor | |
+storageEvents=Storage | |
+timeEvents=Time | |
+touchEvents=Touch | |
+otherEvents=Other | |
+ | |
+# LOCALIZATION NOTE (blackBoxCheckboxTooltip): The tooltip text to display when | |
+# the user hovers over the checkbox used to toggle black boxing its associated | |
+# source. | |
+blackBoxCheckboxTooltip=Toggle black boxing | |
+ | |
+# LOCALIZATION NOTE (noMatchingStringsText): The text to display in the | |
+# global search results when there are no matching strings after filtering. | |
+noMatchingStringsText=No matches found | |
+ | |
+# LOCALIZATION NOTE (emptySearchText): This is the text that appears in the | |
+# filter text box when it is empty and the scripts container is selected. | |
+emptySearchText=Search scripts (%S) | |
+ | |
+# LOCALIZATION NOTE (emptyVariablesFilterText): This is the text that | |
+# appears in the filter text box for the variables view container. | |
+emptyVariablesFilterText=Filter variables | |
+ | |
+# LOCALIZATION NOTE (emptyPropertiesFilterText): This is the text that | |
+# appears in the filter text box for the editor's variables view bubble. | |
+emptyPropertiesFilterText=Filter properties | |
+ | |
+# LOCALIZATION NOTE (searchPanelFilter): This is the text that appears in the | |
+# filter panel popup for the filter scripts operation. | |
+searchPanelFilter=Filter scripts (%S) | |
+ | |
+# LOCALIZATION NOTE (searchPanelGlobal): This is the text that appears in the | |
+# filter panel popup for the global search operation. | |
+searchPanelGlobal=Search in all files (%S) | |
+ | |
+# LOCALIZATION NOTE (searchPanelFunction): This is the text that appears in the | |
+# filter panel popup for the function search operation. | |
+searchPanelFunction=Search for function definition (%S) | |
+ | |
+# LOCALIZATION NOTE (searchPanelToken): This is the text that appears in the | |
+# filter panel popup for the token search operation. | |
+searchPanelToken=Find in this file (%S) | |
+ | |
+# LOCALIZATION NOTE (searchPanelGoToLine): This is the text that appears in the | |
+# filter panel popup for the line search operation. | |
+searchPanelGoToLine=Go to line (%S) | |
+ | |
+# LOCALIZATION NOTE (searchPanelVariable): This is the text that appears in the | |
+# filter panel popup for the variables search operation. | |
+searchPanelVariable=Filter variables (%S) | |
+ | |
+# LOCALIZATION NOTE (breakpointMenuItem): The text for all the elements that | |
+# are displayed in the breakpoints menu item popup. | |
+breakpointMenuItem.setConditional=Configure conditional breakpoint | |
+breakpointMenuItem.enableSelf=Enable breakpoint | |
+breakpointMenuItem.disableSelf=Disable breakpoint | |
+breakpointMenuItem.deleteSelf=Remove breakpoint | |
+breakpointMenuItem.enableOthers=Enable others | |
+breakpointMenuItem.disableOthers=Disable others | |
+breakpointMenuItem.deleteOthers=Remove others | |
+breakpointMenuItem.enableAll=Enable all breakpoints | |
+breakpointMenuItem.disableAll=Disable all breakpoints | |
+breakpointMenuItem.deleteAll=Remove all breakpoints | |
+ | |
+# LOCALIZATION NOTE (breakpoints.header): Breakpoints right sidebar pane header. | |
+breakpoints.header=Breakpoints | |
+ | |
+# LOCALIZATION NOTE (callStack.header): Call Stack right sidebar pane header. | |
+callStack.header=Call Stack | |
+ | |
+# LOCALIZATION NOTE (callStack.notPaused): Call Stack right sidebar pane | |
+# message when not paused. | |
+callStack.notPaused=Not Paused | |
+ | |
+# LOCALIZATION NOTE (callStack.collapse): Call Stack right sidebar pane | |
+# message to hide some of the frames that are shown. | |
+callStack.collapse=Collapse Rows | |
+ | |
+# LOCALIZATION NOTE (callStack.expand): Call Stack right sidebar pane | |
+# message to show more of the frames. | |
+callStack.expand=Expand Rows | |
+ | |
+# LOCALIZATION NOTE (editor.searchResults): Editor Search bar message | |
+# for the summarizing the selected search result. e.g. 5 of 10 results. | |
+editor.searchResults=%d of %d results | |
+ | |
+# LOCALIZATION NOTE (editor.noResults): Editor Search bar message | |
+# for when no results found. | |
+editor.noResults=no results | |
+ | |
+# LOCALIZATION NOTE (scopes.header): Scopes right sidebar pane header. | |
+scopes.header=Scopes | |
+ | |
+# LOCALIZATION NOTE (scopes.notAvailable): Scopes right sidebar pane message | |
+# for when the debugger is paused, but there isn't pause data. | |
+scopes.notAvailable=Scopes Unavailable | |
+ | |
+# LOCALIZATION NOTE (scopes.notPaused): Scopes right sidebar pane message | |
+# for when the debugger is not paused. | |
+scopes.notPaused=Not Paused | |
+ | |
+# LOCALIZATION NOTE (sources.header): Sources left sidebar header | |
+sources.header=Sources | |
+ | |
+# LOCALIZATION NOTE (sources.search): Sources left sidebar prompt | |
+# e.g. Cmd+P to search. On a mac, we use the command unicode character. | |
+# On windows, it's ctrl. | |
+sources.search=%S to search | |
+ | |
+# LOCALIZATION NOTE (watchExpressions.header): Watch Expressions right sidebar | |
+# pane header. | |
+watchExpressions.header=Watch Expressions | |
+ | |
+# LOCALIZATION NOTE (welcome.search): The center pane welcome panel's | |
+# search prompt. e.g. cmd+p to search for files. On windows, it's ctrl, on | |
+# a mac we use the unicode character. | |
+welcome.search=%S to search for files | |
+ | |
+# LOCALIZATION NOTE (sourceSearch.search): The center pane Source Search | |
+# prompt for searching for files. | |
+sourceSearch.search=Search... | |
+ | |
+# LOCALIZATION NOTE (sourceSearch.noResults): The center pane Source Search | |
+# message when the query did not match any of the sources. | |
+sourceSearch.noResults=No files matching %S found | |
+ | |
+# LOCALIZATION NOTE (ignoreExceptions): The pause on exceptions button tooltip | |
+# when the debugger will not pause on exceptions. | |
+ignoreExceptions=Ignore exceptions. Click to pause on uncaught exceptions | |
+ | |
+# LOCALIZATION NOTE (pauseOnUncaughtExceptions): The pause on exceptions button | |
+# tooltip when the debugger will pause on uncaught exceptions. | |
+pauseOnUncaughtExceptions=Pause on uncaught exceptions. Click to pause on all exceptions | |
+ | |
+# LOCALIZATION NOTE (pauseOnExceptions): The pause on exceptions button tooltip | |
+# when the debugger will pause on all exceptions. | |
+pauseOnExceptions=Pause on all exceptions. Click to ignore exceptions | |
+ | |
+# LOCALIZATION NOTE (loadingText): The text that is displayed in the script | |
+# editor when the loading process has started but there is no file to display | |
+# yet. | |
+loadingText=Loading\u2026 | |
+ | |
+# LOCALIZATION NOTE (errorLoadingText2): The text that is displayed in the debugger | |
+# viewer when there is an error loading a file | |
+errorLoadingText2=Error loading this URL: %S | |
+ | |
+# LOCALIZATION NOTE (addWatchExpressionText): The text that is displayed in the | |
+# watch expressions list to add a new item. | |
+addWatchExpressionText=Add watch expression | |
+ | |
+# LOCALIZATION NOTE (addWatchExpressionButton): The button that is displayed in the | |
+# variables view popup. | |
+addWatchExpressionButton=Watch | |
+ | |
+# LOCALIZATION NOTE (emptyVariablesText): The text that is displayed in the | |
+# variables pane when there are no variables to display. | |
+emptyVariablesText=No variables to display | |
+ | |
+# LOCALIZATION NOTE (scopeLabel): The text that is displayed in the variables | |
+# pane as a header for each variable scope (e.g. "Global scope, "With scope", | |
+# etc.). | |
+scopeLabel=%S scope | |
+ | |
+# LOCALIZATION NOTE (watchExpressionsScopeLabel): The name of the watch | |
+# expressions scope. This text is displayed in the variables pane as a header for | |
+# the watch expressions scope. | |
+watchExpressionsScopeLabel=Watch expressions | |
+ | |
+# LOCALIZATION NOTE (globalScopeLabel): The name of the global scope. This text | |
+# is added to scopeLabel and displayed in the variables pane as a header for | |
+# the global scope. | |
+globalScopeLabel=Global | |
+ | |
+# LOCALIZATION NOTE (variablesViewErrorStacktrace): This is the text that is | |
+# shown before the stack trace in an error. | |
+variablesViewErrorStacktrace=Stack trace: | |
+ | |
+# LOCALIZATION NOTE (variablesViewMoreObjects): the text that is displayed | |
+# when you have an object preview that does not show all of the elements. At the end of the list | |
+# you see "N more..." in the web console output. | |
+# This is a semi-colon list of plural forms. | |
+# See: http://developer.mozilla.org/en/docs/Localization_and_Plurals | |
+# #1 number of remaining items in the object | |
+# example: 3 more… | |
+variablesViewMoreObjects=#1 more…;#1 more… | |
+ | |
+# LOCALIZATION NOTE (variablesEditableNameTooltip): The text that is displayed | |
+# in the variables list on an item with an editable name. | |
+variablesEditableNameTooltip=Double click to edit | |
+ | |
+# LOCALIZATION NOTE (variablesEditableValueTooltip): The text that is displayed | |
+# in the variables list on an item with an editable value. | |
+variablesEditableValueTooltip=Click to change value | |
+ | |
+# LOCALIZATION NOTE (variablesCloseButtonTooltip): The text that is displayed | |
+# in the variables list on an item which can be removed. | |
+variablesCloseButtonTooltip=Click to remove | |
+ | |
+# LOCALIZATION NOTE (variablesEditButtonTooltip): The text that is displayed | |
+# in the variables list on a getter or setter which can be edited. | |
+variablesEditButtonTooltip=Click to set value | |
+ | |
+# LOCALIZATION NOTE (variablesEditableValueTooltip): The text that is displayed | |
+# in a tooltip on the "open in inspector" button in the the variables list for a | |
+# DOMNode item. | |
+variablesDomNodeValueTooltip=Click to select the node in the inspector | |
+ | |
+# LOCALIZATION NOTE (configurable|...|Tooltip): The text that is displayed | |
+# in the variables list on certain variables or properties as tooltips. | |
+# Expanations of what these represent can be found at the following links: | |
+# https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty | |
+# https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/isExtensible | |
+# https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/isFrozen | |
+# https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/isSealed | |
+# It's probably best to keep these in English. | |
+configurableTooltip=configurable | |
+enumerableTooltip=enumerable | |
+writableTooltip=writable | |
+frozenTooltip=frozen | |
+sealedTooltip=sealed | |
+extensibleTooltip=extensible | |
+overriddenTooltip=overridden | |
+WebIDLTooltip=WebIDL | |
+ | |
+# LOCALIZATION NOTE (variablesSeparatorLabel): The text that is displayed | |
+# in the variables list as a separator between the name and value. | |
+variablesSeparatorLabel=: | |
+ | |
+# LOCALIZATION NOTE (watchExpressionsSeparatorLabel2): The text that is displayed | |
+# in the watch expressions list as a separator between the code and evaluation. | |
+watchExpressionsSeparatorLabel2=\u0020→ | |
+ | |
+# LOCALIZATION NOTE (functionSearchSeparatorLabel): The text that is displayed | |
+# in the functions search panel as a separator between function's inferred name | |
+# and its real name (if available). | |
+functionSearchSeparatorLabel=← | |
+ | |
+# LOCALIZATION NOTE (resumptionOrderPanelTitle): This is the text that appears | |
+# as a description in the notification panel popup, when multiple debuggers are | |
+# open in separate tabs and the user tries to resume them in the wrong order. | |
+# The substitution parameter is the URL of the last paused window that must be | |
+# resumed first. | |
+resumptionOrderPanelTitle=There are one or more paused debuggers. Please resume the most-recently paused debugger first at: %S | |
+ | |
+variablesViewOptimizedOut=(optimized away) | |
+variablesViewUninitialized=(uninitialized) | |
+variablesViewMissingArgs=(unavailable) | |
+ | |
+anonymousSourcesLabel=Anonymous Sources | |
+ | |
+experimental=This is an experimental feature | |
diff --git a/public/js/main.js b/public/js/main.js | |
index 3cf9420..3ada6d1 100644 | |
--- a/public/js/main.js | |
+++ b/public/js/main.js | |
@@ -27,7 +27,9 @@ const store = createStore(combineReducers(reducers)); | |
const actions = bindActionCreators(require("./actions"), store.dispatch); | |
if (process.env.TARGET !== "firefox-panel") { | |
- L10N.setBundle(require("./strings.json")); | |
+ debugger; | |
+ const x = require("../debugger.properties"); | |
+ L10N.setBundle(x); | |
} | |
window.appStore = store; | |
diff --git a/webpack.config.js b/webpack.config.js | |
index 321f759..f2b5b82 100644 | |
--- a/webpack.config.js | |
+++ b/webpack.config.js | |
@@ -4,6 +4,8 @@ const buildToolboxConfig = | |
const path = require("path"); | |
const projectPath = path.join(__dirname, "public/js"); | |
+console.log("fooy") | |
+ | |
let webpackConfig = { | |
entry: { | |
bundle: [path.join(projectPath, "main.js")], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment