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 = new RemixEngine()
self.engine.register(appManager) self.engine.register(appManager)
const queryParams = new QueryParams() // const queryParams = new QueryParams()
const params = queryParams.get() // const params = queryParams.get()
self.startWalkthroughService = () => { self.walkthroughService = new WalkthroughService(localStorage)
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 hosts = ['127.0.0.1:8080', '192.168.0.101:8080', 'localhost:8080'] const hosts = ['127.0.0.1:8080', '192.168.0.101:8080', 'localhost:8080']
// workaround for Electron support // workaround for Electron support

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

@ -1,7 +1,10 @@
import { ViewPlugin } from '@remixproject/engine-web'
const introJs = require('intro.js') const introJs = require('intro.js')
export class WalkthroughService { export class WalkthroughService extends ViewPlugin {
constructor (params) { constructor (params) {
super()
this.params = params 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 _paq = window._paq = window._paq || []
const MatomoDialog = (props) => { const MatomoDialog = (props) => {
const { settings, registry, startWalkthroughService } = useContext(AppContext) const { settings, registry } = useContext(AppContext)
const [visible, setVisible] = useState<boolean>(props.hide) const [visible, setVisible] = useState<boolean>(props.hide)
useEffect(() => { useEffect(() => {
const matomoDomains = { const matomoDomains = {

@ -57,7 +57,7 @@ const RemixApp = (props: IRemixAppUi) => {
} }
return ( 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> <RemixSplashScreen hide={appReady}></RemixSplashScreen>
<AlertModal></AlertModal> <AlertModal></AlertModal>
<MatomoDialog hide={!appReady}></MatomoDialog> <MatomoDialog hide={!appReady}></MatomoDialog>

Loading…
Cancel
Save