Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
e499d6ad
Commit
e499d6ad
authored
Sep 08, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Matomo trackEvent
parent
348f2d6a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
0 deletions
+25
-0
test-tab.js
apps/remix-ide/src/app/tabs/test-tab.js
+4
-0
blockchain.js
apps/remix-ide/src/blockchain/blockchain.js
+3
-0
compileTabLogic.ts
...mix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts
+9
-0
remix-ui-static-analyser.tsx
...x-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
+9
-0
No files found.
apps/remix-ide/src/app/tabs/test-tab.js
View file @
e499d6ad
...
...
@@ -9,6 +9,8 @@ var Renderer = require('../ui/renderer')
var
css
=
require
(
'./styles/test-tab-styles'
)
var
{
UnitTestRunner
}
=
require
(
'@remix-project/remix-tests'
)
const
_paq
=
window
.
_paq
=
window
.
_paq
||
[]
const
TestTabLogic
=
require
(
'./testTab/testTab'
)
const
profile
=
{
...
...
@@ -230,6 +232,7 @@ module.exports = class TestTab extends ViewPlugin {
}
finalLogs
=
finalLogs
+
' '
+
formattedLog
+
'
\
n'
}
_paq
.
push
([
'trackEvent'
,
'solidityUnitTesting'
,
'hardhat'
,
'console.log'
])
this
.
call
(
'terminal'
,
'log'
,
{
type
:
'info'
,
value
:
finalLogs
})
}
...
...
@@ -569,6 +572,7 @@ module.exports = class TestTab extends ViewPlugin {
const
tests
=
this
.
data
.
selectedTests
if
(
!
tests
)
return
this
.
resultStatistics
.
hidden
=
tests
.
length
===
0
_paq
.
push
([
'trackEvent'
,
'solidityUnitTesting'
,
'runTests'
])
async
.
eachOfSeries
(
tests
,
(
value
,
key
,
callback
)
=>
{
if
(
this
.
hasBeenStopped
)
return
this
.
runTest
(
value
,
callback
)
...
...
apps/remix-ide/src/blockchain/blockchain.js
View file @
e499d6ad
...
...
@@ -13,6 +13,8 @@ const { txFormat, txExecution, typeConversion, txListener: Txlistener, TxRunner,
const
{
txResultHelper
:
resultToRemixTx
}
=
helpers
const
packageJson
=
require
(
'../../../../package.json'
)
const
_paq
=
window
.
_paq
=
window
.
_paq
||
[]
//eslint-disable-line
const
profile
=
{
name
:
'blockchain'
,
displayName
:
'Blockchain'
,
...
...
@@ -515,6 +517,7 @@ class Blockchain extends Plugin {
}
finalLogs
=
finalLogs
+
' '
+
formattedLog
+
'
\
n'
}
_paq
.
push
([
'trackEvent'
,
'udapp'
,
'hardhat'
,
'console.log'
])
this
.
call
(
'terminal'
,
'log'
,
{
type
:
'info'
,
value
:
finalLogs
})
}
execResult
=
await
this
.
web3
().
eth
.
getExecutionResultFromSimulator
(
txResult
.
transactionHash
)
...
...
libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts
View file @
e499d6ad
...
...
@@ -10,6 +10,14 @@ const profile = {
methods
:
[
'getCompilerState'
],
version
:
packageJson
.
version
}
declare
global
{
interface
Window
{
_paq
:
any
}
}
const
_paq
=
window
.
_paq
=
window
.
_paq
||
[]
//eslint-disable-line
export
class
CompileTab
extends
Plugin
{
public
compiler
public
optimize
...
...
@@ -115,6 +123,7 @@ export class CompileTab extends Plugin {
`
const
configFilePath
=
'remix-compiler.config.js'
this
.
api
.
writeFile
(
configFilePath
,
fileContent
)
_paq
.
push
([
'trackEvent'
,
'compiler'
,
'compileWithHardhat'
])
this
.
call
(
'hardhat'
,
'compile'
,
configFilePath
).
then
((
result
)
=>
{
this
.
call
(
'terminal'
,
'log'
,
{
type
:
'info'
,
value
:
result
})
}).
catch
((
error
)
=>
{
...
...
libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
View file @
e499d6ad
...
...
@@ -11,6 +11,13 @@ import { OverlayTrigger, Tooltip } from 'react-bootstrap'// eslint-disable-line
const
StaticAnalysisRunner
=
require
(
'@remix-project/remix-analyzer'
).
CodeAnalysis
const
utils
=
remixLib
.
util
declare
global
{
interface
Window
{
_paq
:
any
}
}
const
_paq
=
window
.
_paq
=
window
.
_paq
||
[]
//eslint-disable-line
/* eslint-disable-next-line */
export
interface
RemixUiStaticAnalyserProps
{
registry
:
any
,
...
...
@@ -154,6 +161,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
const
warningErrors
=
[]
// Remix Analysis
_paq
.
push
([
'trackEvent'
,
'solidityStaticAnalyzer'
,
'analyzeWithRemixAnalyzer'
])
runner
.
run
(
lastCompilationResult
,
categoryIndex
,
results
=>
{
results
.
map
((
result
)
=>
{
let
moduleName
...
...
@@ -212,6 +220,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
props
.
analysisModule
.
call
(
'solidity-logic'
,
'getCompilerState'
).
then
(
async
(
compilerState
)
=>
{
const
{
currentVersion
,
optimize
,
evmVersion
}
=
compilerState
props
.
analysisModule
.
call
(
'terminal'
,
'log'
,
{
type
:
'info'
,
value
:
'[Slither Analysis]: Running...'
})
_paq
.
push
([
'trackEvent'
,
'solidityStaticAnalyzer'
,
'analyzeWithSlither'
])
props
.
analysisModule
.
call
(
'slither'
,
'analyse'
,
state
.
file
,
{
currentVersion
,
optimize
,
evmVersion
}).
then
(
async
(
result
)
=>
{
if
(
result
.
status
)
{
props
.
analysisModule
.
call
(
'terminal'
,
'log'
,
{
type
:
'info'
,
value
:
`[Slither Analysis]: Analysis Completed!!
${
result
.
count
}
warnings found.`
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment