Merge branch 'main' into release
This commit is contained in:
commit
2f589cd2ff
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "1.2.8",
|
||||
"version": "1.2.9-alpha.1",
|
||||
"useWorkspaces": true,
|
||||
"npmClient": "yarn"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@dxos/console",
|
||||
"version": "1.2.8-alpha.0",
|
||||
"version": "1.2.9-alpha.0",
|
||||
"description": "Console",
|
||||
"main": "index.js",
|
||||
"private": true,
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@dxos/console-app",
|
||||
"version": "1.2.8",
|
||||
"version": "1.2.9-alpha.1",
|
||||
"description": "Kubenet Console Client",
|
||||
"repository": "https://github.com/dxos/console",
|
||||
"main": "dist/es/index.js",
|
||||
|
@ -68,14 +68,21 @@ const Sidebar = ({ modules: { services, settings } }) => {
|
||||
|
||||
const Extensions = ({ extensions }) => (
|
||||
<List aria-label='items' className={classes.list}>
|
||||
{extensions.map(({ url, title }) => (
|
||||
<ListItem button key={url} onClick={() => { window.location = url; return true; }}>
|
||||
<ListItemIcon classes={{ root: classes.icon }}>
|
||||
<LinkIcon className={clsx(classes.icon)} />
|
||||
</ListItemIcon>
|
||||
<ListItemText primary={title} />
|
||||
</ListItem>
|
||||
))}
|
||||
{extensions.map(({ url, title }) => {
|
||||
url = url
|
||||
.replace('%HOST%', window.location.host)
|
||||
.replace('%PORT%', window.location.port)
|
||||
.replace('%PROTOCOL%', window.location.protocol);
|
||||
return (
|
||||
<ListItem button key={url} onClick={() => { window.location = url; return true; }}>
|
||||
<ListItemIcon classes={{ root: classes.icon }}>
|
||||
<LinkIcon className={clsx(classes.icon)} />
|
||||
</ListItemIcon>
|
||||
<ListItemText primary={title} />
|
||||
</ListItem>
|
||||
);
|
||||
}
|
||||
)}
|
||||
</List>
|
||||
);
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"build": {
|
||||
"name": "@dxos/console-app",
|
||||
"buildDate": "2020-12-16T18:15:21.116Z",
|
||||
"version": "1.2.8-alpha.0"
|
||||
"buildDate": "2020-12-19T02:47:07.305Z",
|
||||
"version": "1.2.9-alpha.0"
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@dxos/console-server",
|
||||
"version": "1.2.8",
|
||||
"version": "1.2.9-alpha.1",
|
||||
"description": "Kubenet Console Server",
|
||||
"main": "dist/es/index.js",
|
||||
"bin": {
|
||||
@ -31,7 +31,7 @@
|
||||
"dependencies": {
|
||||
"@babel/polyfill": "^7.8.7",
|
||||
"@babel/runtime": "^7.8.7",
|
||||
"@dxos/console-app": "^1.2.8",
|
||||
"@dxos/console-app": "^1.2.9-alpha.1",
|
||||
"@wirelineio/wns-schema": "^0.1.1",
|
||||
"apollo-boost": "^0.4.9",
|
||||
"apollo-server-express": "^2.13.1",
|
||||
|
@ -5,6 +5,24 @@
|
||||
import childProcess from 'child_process';
|
||||
|
||||
// TODO(telackey): Make pluggable.
|
||||
|
||||
const ifBigDipper = () => {
|
||||
try {
|
||||
const result = childProcess.execSync('docker ps -f "ancestor=big-dipper_app" -q');
|
||||
if (result && result.toString()) {
|
||||
return {
|
||||
title: 'Block Explorer',
|
||||
url: 'http://%HOST%:3080/'
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
title: 'Block Explorer',
|
||||
url: 'http://blockexplorer.moon.dxos.network:3080/'
|
||||
};
|
||||
}
|
||||
} catch (e) {}
|
||||
};
|
||||
|
||||
const ifRadicle = () => {
|
||||
try {
|
||||
const result = childProcess.execSync('docker ps -f "ancestor=dxos/radicle-seed-node" -q');
|
||||
@ -31,6 +49,7 @@ export const extensionResolvers = {
|
||||
return {
|
||||
timestamp: new Date().toUTCString(),
|
||||
json: JSON.stringify([
|
||||
ifBigDipper(),
|
||||
ifRadicle(),
|
||||
ifSentry()
|
||||
].filter(x => x))
|
||||
|
Loading…
Reference in New Issue
Block a user