diff --git a/.prettierrc.json b/.prettierrc.json index 1513817e2a..07681f5b0a 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,5 +1,7 @@ { "tabWidth": 2, + "printWidth": 500, + "bracketSpacing": false, "useTabs": false, "semi": false, "singleQuote": true, diff --git a/README.md b/README.md index 00ebb8c51d..a1c4a4e1b6 100644 --- a/README.md +++ b/README.md @@ -279,7 +279,6 @@ parameters: default: true ``` - ## Important Links - Official website: https://remix-project.org diff --git a/apps/compile-details/project.json b/apps/compile-details/project.json new file mode 100644 index 0000000000..7d512b6137 --- /dev/null +++ b/apps/compile-details/project.json @@ -0,0 +1,61 @@ +{ + "name": "compile-details", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/compile-details/src", + "projectType": "application", + "implicitDependencies": [ + ], + "targets": { + "build": { + "executor": "@nrwl/webpack:webpack", + "outputs": ["{options.outputPath}"], + "defaultConfiguration": "development", + "options": { + "compiler": "babel", + "outputPath": "dist/apps/compile-details", + "index": "apps/compile-details/src/index.html", + "baseHref": "./", + "main": "apps/compile-details/src/main.tsx", + "tsConfig": "apps/compile-details/tsconfig.app.json", + "assets": [ + "apps/compile-details/src/favicon.ico", + "apps/compile-details/src/profile.json" + ], + "styles": [], + "scripts": [], + "webpackConfig": "apps/compile-details/webpack.config.js" + }, + "configurations": { + "development": { + }, + "production": { + "fileReplacements": [ + { + "replace": "apps/compile-details/src/environments/environment.ts", + "with": "apps/compile-details/src/environments/environment.prod.ts" + } + ] + } + } + }, + "serve": { + "executor": "@nrwl/webpack:dev-server", + "defaultConfiguration": "development", + "options": { + "buildTarget": "compile-details:build", + "hmr": true, + "baseHref": "/" + }, + "configurations": { + "development": { + "buildTarget": "compile-details:build:development", + "port": 6003 + }, + "production": { + "buildTarget": "compile-details:build:production" + } + } + } + }, + "tags": [] +} diff --git a/apps/compile-details/src/index.html b/apps/compile-details/src/index.html new file mode 100644 index 0000000000..6f9d486efb --- /dev/null +++ b/apps/compile-details/src/index.html @@ -0,0 +1,13 @@ + + +
+ +{details[propertyName]}@@ -156,6 +156,14 @@ export const ContractSelection = (props: ContractSelectionProps) => { return
{node || ''}} + const payload = { + saveAs: saveAs, + contractProperties: {}, + selectedContract: '', + help: {}, + insertValue: insertValue + } + const details = () => { _paq.push(['trackEvent', 'compiler', 'compilerDetails', 'display']) if (!selectedContract) throw new Error('No contract compiled yet') @@ -182,10 +190,14 @@ export const ContractSelection = (props: ContractSelectionProps) => { // Make 'compilerInput' first field to display it as first item in 'Compilation Details' modal if (compilerInput) contractProperties.compilerInput = compilerInput contractProperties = Object.assign(contractProperties, contractsDetails[selectedContract]) + payload.contractProperties = contractProperties + payload.selectedContract = selectedContract + payload.help = help + payload.insertValue = insertValue const log = (