Refactor code to remove dxos and rename to laconic #5
@ -1,5 +1,5 @@
|
|||||||
# Console
|
# Console
|
||||||
|
|
||||||
DXOS Kubenet GraphQL server and console application.
|
Laconic Kubenet GraphQL server and console application.
|
||||||
|
|
||||||
![Console](./docs/images/console.png)
|
![Console](./docs/images/console.png)
|
||||||
|
11
package.json
11
package.json
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@dxos/console",
|
"name": "laconic-console",
|
||||||
"version": "1.2.9-alpha.0",
|
"version": "1.2.9-alpha.0",
|
||||||
"description": "Console",
|
"description": "Laconic Console",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -13,7 +13,7 @@
|
|||||||
"sort-package-json": "lerna exec npx sort-package-json",
|
"sort-package-json": "lerna exec npx sort-package-json",
|
||||||
"test": "lerna run test"
|
"test": "lerna run test"
|
||||||
},
|
},
|
||||||
"author": "DXOS.org",
|
"author": "",
|
||||||
"license": "AGPLv3",
|
"license": "AGPLv3",
|
||||||
"workspaces": {
|
"workspaces": {
|
||||||
"packages": [
|
"packages": [
|
||||||
@ -30,11 +30,6 @@
|
|||||||
"lerna": "^3.19.0"
|
"lerna": "^3.19.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@dxos/cli": "0.1.13",
|
|
||||||
"@dxos/cli-app": "2.20.4",
|
|
||||||
"@dxos/cli-bot": "2.20.4",
|
|
||||||
"@dxos/cli-party": "2.20.4",
|
|
||||||
"@dxos/cli-dxns": "2.20.4",
|
|
||||||
"babel-eslint": "^10.0.3",
|
"babel-eslint": "^10.0.3",
|
||||||
"eslint": "^6.7.2",
|
"eslint": "^6.7.2",
|
||||||
"eslint-config-semistandard": "^15.0.0",
|
"eslint-config-semistandard": "^15.0.0",
|
||||||
|
@ -16,7 +16,7 @@ import { useQueryStatusReducer } from '../hooks';
|
|||||||
|
|
||||||
const CHECK_INTERVAL = 5 * 60 * 1000;
|
const CHECK_INTERVAL = 5 * 60 * 1000;
|
||||||
|
|
||||||
const UPDATE_LINK = 'https://github.com/dxos/kube#updating-the-system';
|
const UPDATE_LINK = 'https://github.com/laconic/kube#updating-the-system';
|
||||||
|
|
||||||
const useStyles = makeStyles(theme => ({
|
const useStyles = makeStyles(theme => ({
|
||||||
update: {
|
update: {
|
||||||
@ -42,12 +42,12 @@ const VersionCheck = () => {
|
|||||||
const statusData = JSON.parse(statusResponse.system_status.json);
|
const statusData = JSON.parse(statusResponse.system_status.json);
|
||||||
const wnsData = JSON.parse(wnsResponse.wns_records.json);
|
const wnsData = JSON.parse(wnsResponse.wns_records.json);
|
||||||
|
|
||||||
const current = get(statusData, 'dxos.kube.version', '0.0.0');
|
const current = get(statusData, 'laconic.kube.version', '0.0.0');
|
||||||
|
|
||||||
let latest = current;
|
let latest = current;
|
||||||
wnsData.forEach(({ attributes: { name, version } }) => {
|
wnsData.forEach(({ attributes: { name, version } }) => {
|
||||||
// TODO(burdon): Filter by type (WRN?)
|
// TODO(burdon): Filter by type (WRN?)
|
||||||
if (name.startsWith('dxos/kube:')) {
|
if (name.startsWith('laconic/kube:')) {
|
||||||
if (compareVersions(version, latest) > 0) {
|
if (compareVersions(version, latest) > 0) {
|
||||||
latest = version;
|
latest = version;
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ import { Registry } from 'laconic-sdk';
|
|||||||
|
|
||||||
import { getServiceUrl } from './util/config';
|
import { getServiceUrl } from './util/config';
|
||||||
|
|
||||||
const log = debug('dxos:console:client:resolvers');
|
const log = debug('laconic:console:client:resolvers');
|
||||||
|
|
||||||
const timestamp = () => new Date().toUTCString();
|
const timestamp = () => new Date().toUTCString();
|
||||||
|
|
||||||
|
@ -6,10 +6,10 @@ import debug from 'debug';
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { render } from 'react-dom';
|
import { render } from 'react-dom';
|
||||||
|
|
||||||
import { Main } from '@dxos/console-app';
|
import { Main } from '@cerc-io/console-app';
|
||||||
|
|
||||||
// Load from global printed into HTML page via template.
|
// Load from global printed into HTML page via template.
|
||||||
const { config } = window.__DXOS__;
|
const { config } = window.__Laconic__;
|
||||||
|
|
||||||
debug.enable(config.system.debug);
|
debug.enable(config.system.debug);
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ import kill from 'tree-kill';
|
|||||||
const DEFAULT_BOT_FACTORY_CWD = '.wire/bots';
|
const DEFAULT_BOT_FACTORY_CWD = '.wire/bots';
|
||||||
const SERVICE_CONFIG_FILENAME = 'service.yml';
|
const SERVICE_CONFIG_FILENAME = 'service.yml';
|
||||||
|
|
||||||
const log = debug('dxos:console:server:resolvers');
|
const log = debug('laconic:console:server:resolvers');
|
||||||
|
|
||||||
let topic;
|
let topic;
|
||||||
const getBotFactoryTopic = (botFactoryCwd) => {
|
const getBotFactoryTopic = (botFactoryCwd) => {
|
||||||
|
@ -17,7 +17,7 @@ const ifBigDipper = () => {
|
|||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
title: 'Block Explorer',
|
title: 'Block Explorer',
|
||||||
url: 'http://blockexplorer.moon.dxos.network:3080/'
|
url: 'http://blockexplorer.moon.laconic.network:3080/'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
@ -25,7 +25,7 @@ const ifBigDipper = () => {
|
|||||||
|
|
||||||
const ifRadicle = () => {
|
const ifRadicle = () => {
|
||||||
try {
|
try {
|
||||||
const result = childProcess.execSync('docker ps -f "ancestor=dxos/radicle-seed-node" -q');
|
const result = childProcess.execSync('docker ps -f "ancestor=laconic/radicle-seed-node" -q');
|
||||||
if (result && result.toString()) {
|
if (result && result.toString()) {
|
||||||
return {
|
return {
|
||||||
title: 'Radicle',
|
title: 'Radicle',
|
||||||
@ -39,7 +39,7 @@ const ifRadicle = () => {
|
|||||||
const ifSentry = () => {
|
const ifSentry = () => {
|
||||||
return {
|
return {
|
||||||
title: 'Sentry',
|
title: 'Sentry',
|
||||||
url: 'http://sentry.kube.dxos.network:9000/'
|
url: 'http://sentry.kube.laconic.network:9000/'
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ import { logResolvers } from './log';
|
|||||||
import { botsResolvers } from './bots';
|
import { botsResolvers } from './bots';
|
||||||
|
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
const log = debug('dxos:console:server:resolvers');
|
const log = debug('laconic:console:server:resolvers');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resolvers
|
* Resolvers
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
import debug from 'debug';
|
import debug from 'debug';
|
||||||
import IpfsHttpClient from 'ipfs-http-client';
|
import IpfsHttpClient from 'ipfs-http-client';
|
||||||
const log = debug('dxos:console:server:resolvers');
|
const log = debug('laconic:console:server:resolvers');
|
||||||
|
|
||||||
export const ipfsResolvers = {
|
export const ipfsResolvers = {
|
||||||
Query: {
|
Query: {
|
||||||
|
@ -94,7 +94,7 @@ const getSystemInfo = async () => {
|
|||||||
version: process.version
|
version: process.version
|
||||||
},
|
},
|
||||||
|
|
||||||
dxos: {
|
laconic: {
|
||||||
kube: {
|
kube: {
|
||||||
version: getVersionInfo()
|
version: getVersionInfo()
|
||||||
},
|
},
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<!-- Config loaded by client. -->
|
<!-- Config loaded by client. -->
|
||||||
<script charset="utf-8" type="application/javascript">
|
<script charset="utf-8" type="application/javascript">
|
||||||
window.__DXOS__ = { config: {{{ config }}} };
|
window.__Lacnonic__ = { config: {{{ config }}} };
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- React bundles. -->
|
<!-- React bundles. -->
|
||||||
|
Loading…
Reference in New Issue
Block a user