Refactor code to remove dxos and rename to laconic #5
@ -1,5 +1,5 @@
|
||||
# Console
|
||||
|
||||
DXOS Kubenet GraphQL server and console application.
|
||||
Laconic Kubenet GraphQL server and console application.
|
||||
|
||||
![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",
|
||||
"description": "Console",
|
||||
"description": "Laconic Console",
|
||||
"main": "index.js",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
@ -13,7 +13,7 @@
|
||||
"sort-package-json": "lerna exec npx sort-package-json",
|
||||
"test": "lerna run test"
|
||||
},
|
||||
"author": "DXOS.org",
|
||||
"author": "",
|
||||
"license": "AGPLv3",
|
||||
"workspaces": {
|
||||
"packages": [
|
||||
@ -30,11 +30,6 @@
|
||||
"lerna": "^3.19.0"
|
||||
},
|
||||
"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",
|
||||
"eslint": "^6.7.2",
|
||||
"eslint-config-semistandard": "^15.0.0",
|
||||
|
@ -16,7 +16,7 @@ import { useQueryStatusReducer } from '../hooks';
|
||||
|
||||
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 => ({
|
||||
update: {
|
||||
@ -42,12 +42,12 @@ const VersionCheck = () => {
|
||||
const statusData = JSON.parse(statusResponse.system_status.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;
|
||||
wnsData.forEach(({ attributes: { name, version } }) => {
|
||||
// TODO(burdon): Filter by type (WRN?)
|
||||
if (name.startsWith('dxos/kube:')) {
|
||||
if (name.startsWith('laconic/kube:')) {
|
||||
if (compareVersions(version, latest) > 0) {
|
||||
latest = version;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ import { Registry } from 'laconic-sdk';
|
||||
|
||||
import { getServiceUrl } from './util/config';
|
||||
|
||||
const log = debug('dxos:console:client:resolvers');
|
||||
const log = debug('laconic:console:client:resolvers');
|
||||
|
||||
const timestamp = () => new Date().toUTCString();
|
||||
|
||||
|
@ -6,10 +6,10 @@ import debug from 'debug';
|
||||
import React from 'react';
|
||||
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.
|
||||
const { config } = window.__DXOS__;
|
||||
const { config } = window.__Laconic__;
|
||||
|
||||
debug.enable(config.system.debug);
|
||||
|
||||
|
@ -13,7 +13,7 @@ import kill from 'tree-kill';
|
||||
const DEFAULT_BOT_FACTORY_CWD = '.wire/bots';
|
||||
const SERVICE_CONFIG_FILENAME = 'service.yml';
|
||||
|
||||
const log = debug('dxos:console:server:resolvers');
|
||||
const log = debug('laconic:console:server:resolvers');
|
||||
|
||||
let topic;
|
||||
const getBotFactoryTopic = (botFactoryCwd) => {
|
||||
|
@ -17,7 +17,7 @@ const ifBigDipper = () => {
|
||||
} else {
|
||||
return {
|
||||
title: 'Block Explorer',
|
||||
url: 'http://blockexplorer.moon.dxos.network:3080/'
|
||||
url: 'http://blockexplorer.moon.laconic.network:3080/'
|
||||
};
|
||||
}
|
||||
} catch (e) {}
|
||||
@ -25,7 +25,7 @@ const ifBigDipper = () => {
|
||||
|
||||
const ifRadicle = () => {
|
||||
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()) {
|
||||
return {
|
||||
title: 'Radicle',
|
||||
@ -39,7 +39,7 @@ const ifRadicle = () => {
|
||||
const ifSentry = () => {
|
||||
return {
|
||||
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';
|
||||
|
||||
// eslint-disable-next-line
|
||||
const log = debug('dxos:console:server:resolvers');
|
||||
const log = debug('laconic:console:server:resolvers');
|
||||
|
||||
/**
|
||||
* Resolvers
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
import debug from 'debug';
|
||||
import IpfsHttpClient from 'ipfs-http-client';
|
||||
const log = debug('dxos:console:server:resolvers');
|
||||
const log = debug('laconic:console:server:resolvers');
|
||||
|
||||
export const ipfsResolvers = {
|
||||
Query: {
|
||||
|
@ -94,7 +94,7 @@ const getSystemInfo = async () => {
|
||||
version: process.version
|
||||
},
|
||||
|
||||
dxos: {
|
||||
laconic: {
|
||||
kube: {
|
||||
version: getVersionInfo()
|
||||
},
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<!-- Config loaded by client. -->
|
||||
<script charset="utf-8" type="application/javascript">
|
||||
window.__DXOS__ = { config: {{{ config }}} };
|
||||
window.__Lacnonic__ = { config: {{{ config }}} };
|
||||
</script>
|
||||
|
||||
<!-- React bundles. -->
|
||||
|
Loading…
Reference in New Issue
Block a user