builtincomp
Aniket-Engg 2 years ago committed by Aniket
parent b05172453c
commit 7d12ab25fb
  1. 3
      libs/remix-ui/home-tab/src/lib/components/customButtonGroupAsArrows.tsx
  2. 6
      libs/remix-ui/home-tab/src/lib/components/homeTabGetStarted.tsx
  3. 8
      libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx
  4. 4
      libs/remix-ws-templates/src/templates/ozerc1155/index.ts
  5. 4
      libs/remix-ws-templates/src/templates/ozerc20/index.ts
  6. 4
      libs/remix-ws-templates/src/templates/ozerc721/index.ts

@ -14,8 +14,7 @@ function CustomButtonGroupAsArrows ({ next, previous }) {
<button onClick={previous}>Prev</button>
<button onClick={next}>Next</button>
</div>
)
}
)
}
export default CustomButtonGroupAsArrows

@ -21,9 +21,9 @@ function HomeTabGetStarted ({plugin}: HomeTabGetStartedProps) {
const createWorkspace = async (templateName) => {
await plugin.appManager.activatePlugin('filePanel')
const timeStump = Date.now
await plugin.call('filePanel', 'createWorkspace', templateName + "_" + timeStump, templateName)
await plugin.call('filePanel', 'setWorkspace', templateName + "_" + timeStump)
const timeStamp = Date.now()
await plugin.call('filePanel', 'createWorkspace', templateName + "_" + timeStamp, templateName)
await plugin.call('filePanel', 'setWorkspace', templateName + "_" + timeStamp)
console.log("templateName ", templateName)
plugin.verticalIcons.select('filePanel')
_paq.push(['trackEvent', 'homeGetStarted', templateName])

@ -3,7 +3,6 @@ import React, { useState, useRef, useEffect, useReducer } from 'react' // eslint
import './remix-ui-home-tab.css'
import { ThemeContext, themes } from './themeContext'
import { RSSFeed } from './components/rssFeed'
import BasicLogo from 'libs/remix-ui/vertical-icons-panel/src/lib/components/BasicLogo'
import HomeTabTitle from './components/homeTabTitle'
import HomeTabFile from './components/homeTabFile'
import HomeTabLearn from './components/homeTabLearn'
@ -70,10 +69,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
}
}, [])
const maxHeight = Math.max(window.innerHeight - 150, 250) + 'px'
const elHeight = '4000px'
return (
<div className="d-flex flex-row w-100" id="remixUIHTAll">
@ -98,6 +94,10 @@ export default RemixUiHomeTab
/*
const maxHeight = Math.max(window.innerHeight - 150, 250) + 'px'
const elHeight = '4000px'
<div className="d-flex flex-column ml-4" id="remixUiRightPanel">
<div className="border-bottom d-flex flex-column mr-4 pb-3 mb-3">
<div className="pt-2 d-flex justify-content-between">

@ -8,7 +8,7 @@ export default async (opts) => {
}
const filesObj = {
'contracts/MyToken.sol': erc1155.print({ ...erc1155.defaults, upgradeable: opts.upgradeable}),
'contracts/MyToken.sol': erc1155.print({ ...erc1155.defaults, upgradeable: opts && opts.upgradeable ? opts.upgradeable : false}),
// @ts-ignore
'scripts/deploy_with_ethers.ts': (await import('!!raw-loader!./scripts/deploy_with_ethers.ts')).default,
// @ts-ignore
@ -21,6 +21,6 @@ export default async (opts) => {
// If no options is selected, opts.upgradeable will be undefined
// We do not show test file for upgradeable contract
// @ts-ignore
if (opts.upgradeable === undefined || !opts.upgradeable) filesObj['tests/MyToken_test.sol'] = (await import('raw-loader!./tests/MyToken_test.sol')).default
if (!opts || opts.upgradeable === undefined || !opts.upgradeable) filesObj['tests/MyToken_test.sol'] = (await import('raw-loader!./tests/MyToken_test.sol')).default
return filesObj
}

@ -8,7 +8,7 @@ export default async (opts) => {
}
const filesObj = {
'contracts/MyToken.sol': erc20.print({ ...erc20.defaults, upgradeable: opts.upgradeable}),
'contracts/MyToken.sol': erc20.print({ ...erc20.defaults, upgradeable: opts && opts.upgradeable ? opts.upgradeable : false }),
// @ts-ignore
'scripts/deploy_with_ethers.ts': (await import('!!raw-loader!./scripts/deploy_with_ethers.ts')).default,
// @ts-ignore
@ -22,6 +22,6 @@ export default async (opts) => {
// If no options is selected, opts.upgradeable will be undefined
// We do not show test file for upgradeable contract
// @ts-ignore
if (opts && (opts.upgradeable === undefined || !opts.upgradeable)) filesObj['tests/MyToken_test.sol'] = (await import('raw-loader!./tests/MyToken_test.sol')).default
if (!opts || opts.upgradeable === undefined || !opts.upgradeable) filesObj['tests/MyToken_test.sol'] = (await import('raw-loader!./tests/MyToken_test.sol')).default
return filesObj
}

@ -8,7 +8,7 @@ export default async (opts) => {
}
const filesObj = {
'contracts/MyToken.sol': erc721.print({ ...erc721.defaults, upgradeable: opts.upgradeable}),
'contracts/MyToken.sol': erc721.print({ ...erc721.defaults, upgradeable: opts && opts.upgradeable ? opts.upgradeable : false }),
// @ts-ignore
'scripts/deploy_with_ethers.ts': (await import('!!raw-loader!./scripts/deploy_with_ethers.ts')).default,
// @ts-ignore
@ -22,6 +22,6 @@ export default async (opts) => {
// If no options is selected, opts.upgradeable will be undefined
// We do not show test file for upgradeable contract
// @ts-ignore
if (opts.upgradeable === undefined || !opts.upgradeable) filesObj['tests/MyToken_test.sol'] = (await import('raw-loader!./tests/MyToken_test.sol')).default
if (!opts || opts.upgradeable === undefined || !opts.upgradeable) filesObj['tests/MyToken_test.sol'] = (await import('raw-loader!./tests/MyToken_test.sol')).default
return filesObj
}
Loading…
Cancel
Save