add profile

build plugin

set env var

change comment

env file

rm console

runtab

rm env
pull/3674/head
filip mertens 2 years ago committed by Aniket
parent 60b5f817bc
commit df3efba104
  1. 2
      apps/remix-ide/project.json
  2. 2
      apps/remix-ide/src/remixAppManager.js
  3. 9
      apps/wallet-connect/project.json
  4. 1
      apps/wallet-connect/src/index.html
  5. 16
      apps/wallet-connect/src/profile.json
  6. 3
      apps/wallet-connect/src/services/constant.ts
  7. 13
      apps/wallet-connect/webpack.config.js

@ -3,7 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json", "$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/remix-ide/src", "sourceRoot": "apps/remix-ide/src",
"projectType": "application", "projectType": "application",
"implicitDependencies": ["doc-gen", "doc-viewer", "etherscan", "vyper"], "implicitDependencies": ["doc-gen", "doc-viewer", "etherscan", "vyper", "wallet-connect"],
"targets": { "targets": {
"build": { "build": {
"executor": "@nrwl/webpack:webpack", "executor": "@nrwl/webpack:webpack",

@ -17,7 +17,7 @@ const requiredModules = [ // services + layout views + system views
// dependentModules shouldn't be manually activated (e.g hardhat is activated by remixd) // dependentModules shouldn't be manually activated (e.g hardhat is activated by remixd)
const dependentModules = ['foundry', 'hardhat', 'truffle', 'slither'] const dependentModules = ['foundry', 'hardhat', 'truffle', 'slither']
const loadLocalPlugins = ["doc-gen", "doc-viewer", "etherscan", "vyper"] const loadLocalPlugins = ["doc-gen", "doc-viewer", "etherscan", "vyper", "wallet-connect"]
const sensitiveCalls = { const sensitiveCalls = {
'fileManager': ['writeFile', 'copyFile', 'rename', 'copyDir'], 'fileManager': ['writeFile', 'copyFile', 'rename', 'copyDir'],

@ -13,14 +13,14 @@
"compiler": "babel", "compiler": "babel",
"outputPath": "dist/apps/wallet-connect", "outputPath": "dist/apps/wallet-connect",
"index": "apps/wallet-connect/src/index.html", "index": "apps/wallet-connect/src/index.html",
"baseHref": "/", "baseHref": "./",
"main": "apps/wallet-connect/src/main.tsx", "main": "apps/wallet-connect/src/main.tsx",
"polyfills": "apps/wallet-connect/src/polyfills.ts", "polyfills": "apps/wallet-connect/src/polyfills.ts",
"tsConfig": "apps/wallet-connect/tsconfig.app.json", "tsConfig": "apps/wallet-connect/tsconfig.app.json",
"assets": ["apps/wallet-connect/src/favicon.ico", "apps/wallet-connect/src/assets"], "assets": ["apps/wallet-connect/src/profile.json"],
"styles": ["apps/wallet-connect/src/css/app.css", "apps/wallet-connect/src/css/index.css"], "styles": ["apps/wallet-connect/src/css/app.css", "apps/wallet-connect/src/css/index.css"],
"scripts": [], "scripts": [],
"webpackConfig": "apps/wallet-connect/webpack.config.js" "webpackConfig": "apps/wallet-connect/webpack.config.js"
}, },
"configurations": { "configurations": {
"development": { "development": {
@ -40,7 +40,8 @@
"defaultConfiguration": "development", "defaultConfiguration": "development",
"options": { "options": {
"buildTarget": "wallet-connect:build", "buildTarget": "wallet-connect:build",
"hmr": true "hmr": true,
"baseHref": "/"
}, },
"configurations": { "configurations": {
"development": { "development": {

@ -6,7 +6,6 @@
<base href="./" /> <base href="./" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous"/> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous"/>
</head> </head>
<body> <body>

@ -0,0 +1,16 @@
{
"name": "wallet-connect",
"kind": "provider",
"displayName": "Wallet Connect",
"events": [],
"version": "2.0.0",
"methods": ["sendAsync", "init"],
"url": "",
"description": "Use an external wallet for transacting",
"icon": "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ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AwMDA5LjAwMDAxODItLjAwMDAxOC4wMDAwMjc3LS4wMDAwMjVsNjAuNDI2MTA2NS01OC45NTgyNTA4YzIuNTc2NTgxLTIuNTEzOTggNi43NTQxNDItMi41MTQwNzQzIDkuMzMwODQtLjAwMDIxMDMuMDAwMDM3LjAwMDAzNTQuMDAwMDcyLjAwMDA3MDkuMDAwMTA3LjAwMDEwNjNsNjAuNDI5MDU2IDU4Ljk1ODM1NDhjLjY0NDE1OS42Mjg0NzkgMS42ODg1NDkuNjI4NDc5IDIuMzMyNzA5IDBsNjAuNDI4MDc5LTU4Ljk1NzE5MjVjMi41NzY2NC0yLjUxMzkyMzEgNi43NTQxOTktMi41MTM5MjMxIDkuMzMwODM5IDB6IiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDk4IDE2MCkiLz48L2c+PC9zdmc+",
"location": "mainPanel",
"documentation": "",
"repo": "https://github.com/yann300/remix-walletconnect/issues",
"maintainedBy": "Remix",
"authorContact": ""
}

@ -1 +1,2 @@
export const PROJECT_ID = 'a4ba105e642ae64cdb5b9a86debc0a66' // @ts-ignore
export const PROJECT_ID = WALLET_CONNECT_PROJECT_ID

@ -3,12 +3,10 @@ const webpack = require('webpack')
const TerserPlugin = require("terser-webpack-plugin") const TerserPlugin = require("terser-webpack-plugin")
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin") const CssMinimizerPlugin = require("css-minimizer-webpack-plugin")
// Nx plugins for webpack. // Nx plugins for webpack.
module.exports = composePlugins(withNx(), (config) => { module.exports = composePlugins(withNx(), (config) => {
// Update the webpack config as needed here. // Update the webpack config as needed here.
// e.g. `config.plugins.push(new MyPlugin())` // e.g. `config.plugins.push(new MyPlugin())`
// add fallback for node modules // add fallback for node modules
config.resolve.fallback = { config.resolve.fallback = {
...config.resolve.fallback, ...config.resolve.fallback,
@ -39,9 +37,7 @@ module.exports = composePlugins(withNx(), (config) => {
} }
// add public path // add public path
config.output.publicPath = '/' config.output.publicPath = './'
// add copy & provide plugin // add copy & provide plugin
config.plugins.push( config.plugins.push(
@ -52,6 +48,13 @@ module.exports = composePlugins(withNx(), (config) => {
}) })
) )
// set the define plugin to load the WALLET_CONNECT_PROJECT_ID
config.plugins.push(
new webpack.DefinePlugin({
WALLET_CONNECT_PROJECT_ID: JSON.stringify(process.env.WALLET_CONNECT_PROJECT_ID),
})
)
// souce-map loader // souce-map loader
config.module.rules.push({ config.module.rules.push({
test: /\.js$/, test: /\.js$/,

Loading…
Cancel
Save