pull/1840/head
bunsenstraat 3 years ago
parent 6adfafc752
commit 5085b53fe7
  1. 14
      apps/remix-ide/src/app-component.js
  2. 2
      apps/remix-ide/src/index.tsx
  3. 8
      apps/remix-ide/src/walkthroughService.js
  4. 2
      libs/remix-ui/app/src/lib/remix-app/modals/matomo.tsx
  5. 2
      libs/remix-ui/app/src/lib/remix-app/remix-app.tsx

@ -86,17 +86,9 @@ class AppComponent {
self.engine = new RemixEngine()
self.engine.register(appManager)
const queryParams = new QueryParams()
const params = queryParams.get()
self.startWalkthroughService = () => {
console.log('start walkthrough')
const walkthroughService = new WalkthroughService(localStorage)
if (!params.code && !params.url && !params.minimizeterminal && !params.gist && !params.minimizesidepanel) {
walkthroughService.start()
}
}
self.startWalkthroughService()
// const queryParams = new QueryParams()
// const params = queryParams.get()
self.walkthroughService = new WalkthroughService(localStorage)
const hosts = ['127.0.0.1:8080', '192.168.0.101:8080', 'localhost:8080']
// workaround for Electron support

@ -1,7 +1,7 @@
// eslint-disable-next-line no-use-before-define
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import App from './app'
ReactDOM.render(
<React.StrictMode>

@ -1,7 +1,10 @@
import { ViewPlugin } from '@remixproject/engine-web'
const introJs = require('intro.js')
export class WalkthroughService {
export class WalkthroughService extends ViewPlugin {
constructor (params) {
super()
this.params = params
}
@ -52,7 +55,4 @@ export class WalkthroughService {
}
})
}
startFeatureTour () {
}
}

@ -4,7 +4,7 @@ import AppContext from '../context/context'
const _paq = window._paq = window._paq || []
const MatomoDialog = (props) => {
const { settings, registry, startWalkthroughService } = useContext(AppContext)
const { settings, registry } = useContext(AppContext)
const [visible, setVisible] = useState<boolean>(props.hide)
useEffect(() => {
const matomoDomains = {

@ -57,7 +57,7 @@ const RemixApp = (props: IRemixAppUi) => {
}
return (
<AppContext.Provider value={{ settings: props.app.settings, registry: props.app.registry, startWalkthroughService: props.app.startWalkthroughService }}>
<AppContext.Provider value={{ settings: props.app.settings, registry: props.app.registry }}>
<RemixSplashScreen hide={appReady}></RemixSplashScreen>
<AlertModal></AlertModal>
<MatomoDialog hide={!appReady}></MatomoDialog>

Loading…
Cancel
Save