- Edit src/App.tsx
and save to reload.
-
available docker images:
- {images.map(img => {img}{', '})}
-
Press cmd + T to open terminal window
+
+ available docker images:
+
+ {images.map(img => (
+
+ {img}
+ {', '}
+
+ ))}
+
Expert View
+ ++ Press n or j to go to the next uncovered block, b, p or k for the previous block. +
+ +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 | 1x +1x + +1x +1x + + +2x +2x +1x +1x +1x + + +1x + + +2x + + + + + + + + + + + + + + + + +1x + + + + + + +1x + | import {useEffect, useState} from 'react' +import {invoke} from '@tauri-apps/api/tauri' + +import logo from './logo.svg' +import './App.css' + +function App() { + const [images, setImages] = useState<string[]>([]) + useEffect(() => { + const getFromBackend = async () => { + const imagesFromBackend = await invoke<string[]>('image_list') + setImages(imagesFromBackend) + } + + getFromBackend() + }, []) + + return ( + <div className="App"> + <header className="App-header"> + <img src={logo} className="App-logo" alt="logo" /> + <p> + Edit <code>src/App.tsx</code> and save to reload. + </p> + <a + className="App-link" + href="https://reactjs.org" + target="_blank" + rel="noopener noreferrer" + > + Learn React + </a> + + <p>available docker images:<br/> + {images.map(img => <em key={img}>{img}{', '}</em>)} + </p> + </header> + </div> + ) +} + +export default App + |
+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +
+ +File | ++ | Statements | ++ | Branches | ++ | Functions | ++ | Lines | ++ |
---|---|---|---|---|---|---|---|---|---|
mockStyles.js | +
+
+ |
+ 100% | +1/1 | +100% | +0/0 | +100% | +0/0 | +100% | +1/1 | +
+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +
+ +1 +2 | 1x + | module.exports = {} + |
+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +
+ +1 +2 | 1x + | module.exports = {} + |
+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +
+ +File | ++ | Statements | ++ | Branches | ++ | Functions | ++ | Lines | ++ |
---|---|---|---|---|---|---|---|---|---|
src | +
+
+ |
+ 30% | +9/30 | +0% | +0/3 | +25% | +1/4 | +31.03% | +9/29 | +
src/components/Button | +
+
+ |
+ 76% | +19/25 | +43.75% | +7/16 | +33.33% | +1/3 | +76% | +19/25 | +
src/components/Footer | +
+
+ |
+ 100% | +7/7 | +100% | +0/0 | +100% | +1/1 | +100% | +7/7 | +
src/components/Inputs/Switch | +
+
+ |
+ 100% | +20/20 | +91.66% | +11/12 | +100% | +2/2 | +100% | +20/20 | +
src/components/Logo | +
+
+ |
+ 100% | +9/9 | +100% | +4/4 | +100% | +1/1 | +100% | +9/9 | +
src/components/Tabs | +
+
+ |
+ 92.3% | +12/13 | +100% | +2/2 | +75% | +3/4 | +92.3% | +12/13 | +
src/components/TitleBar | +
+
+ |
+ 100% | +45/45 | +71.42% | +5/7 | +100% | +7/7 | +100% | +45/45 | +
src/containers/BaseNodeContainer | +
+
+ |
+ 33.33% | +4/12 | +100% | +0/0 | +0% | +0/4 | +33.33% | +4/12 | +
src/containers/Dashboard/DashboardContainer | +
+
+ |
+ 84.61% | +22/26 | +33.33% | +2/6 | +66.66% | +2/3 | +84.61% | +22/26 | +
src/containers/Dashboard/ExpertView | +
+
+ |
+ 88.88% | +8/9 | +0% | +0/2 | +50% | +1/2 | +88.88% | +8/9 | +
src/containers/MiningContainer | +
+
+ |
+ 75% | +6/8 | +100% | +0/0 | +33.33% | +1/3 | +75% | +6/8 | +
src/containers/WalletContainer | +
+
+ |
+ 66.66% | +2/3 | +100% | +0/0 | +0% | +0/1 | +66.66% | +2/3 | +
src/layouts/MainLayout | +
+
+ |
+ 100% | +23/23 | +54.54% | +6/11 | +100% | +1/1 | +100% | +23/23 | +
src/locales | +
+
+ |
+ 0% | +0/8 | +100% | +0/0 | +100% | +0/0 | +0% | +0/8 | +
src/pages/home | +
+
+ |
+ 100% | +4/4 | +100% | +0/0 | +100% | +1/1 | +100% | +4/4 | +
src/store | +
+
+ |
+ 100% | +3/3 | +100% | +0/0 | +100% | +0/0 | +100% | +3/3 | +
src/store/app | +
+
+ |
+ 82.6% | +19/23 | +100% | +0/0 | +57.14% | +4/7 | +81.25% | +13/16 | +
src/styles/Icons | +
+
+ |
+ 3.22% | +20/620 | +100% | +0/0 | +3.22% | +5/155 | +3.22% | +20/620 | +
src/styles/styles | +
+
+ |
+ 100% | +9/9 | +100% | +0/0 | +100% | +0/0 | +100% | +9/9 | +
src/styles/themes | +
+
+ |
+ 100% | +10/10 | +100% | +0/0 | +100% | +0/0 | +100% | +10/10 | +
src/utils | +
+
+ |
+ 68.18% | +15/22 | +57.14% | +4/7 | +66.66% | +2/3 | +66.66% | +14/21 | +