forked from cerc-io/laconic-console
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
39ec9a2e31 | ||
|
|
6f77228f73 | ||
|
|
475f53cdcf | ||
|
|
9dcbc6e657 |
@@ -17,6 +17,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
curl -fsSL -o /usr/local/bin/yarn https://github.com/yarnpkg/yarn/releases/download/v1.22.21/yarn-1.22.21.js
|
curl -fsSL -o /usr/local/bin/yarn https://github.com/yarnpkg/yarn/releases/download/v1.22.21/yarn-1.22.21.js
|
||||||
chmod +x /usr/local/bin/yarn
|
chmod +x /usr/local/bin/yarn
|
||||||
|
- name: Install jq
|
||||||
|
run: |
|
||||||
|
apt update && apt install -y jq
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
@@ -24,7 +27,7 @@ jobs:
|
|||||||
- run: yarn
|
- run: yarn
|
||||||
- name: Run yarn build
|
- name: Run yarn build
|
||||||
run: |
|
run: |
|
||||||
yarn build
|
LACONIC_HOSTED_CONFIG_FILE=config-hosted.yml yarn dist
|
||||||
- name: Configure git.vdb.to npm registry
|
- name: Configure git.vdb.to npm registry
|
||||||
run: |
|
run: |
|
||||||
npm config set registry https://git.vdb.to/api/packages/cerc-io/npm/
|
npm config set registry https://git.vdb.to/api/packages/cerc-io/npm/
|
||||||
|
|||||||
+3
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@cerc-io/console-app",
|
"name": "@cerc-io/console-app",
|
||||||
"version": "1.3.2",
|
"version": "1.3.7",
|
||||||
"description": "Laconic Console",
|
"description": "Laconic Console",
|
||||||
"repository": "https://github.com/cerc-io/laconic-console",
|
"repository": "https://github.com/cerc-io/laconic-console",
|
||||||
"main": "dist/es/index.js",
|
"main": "dist/es/index.js",
|
||||||
@@ -12,7 +12,8 @@
|
|||||||
"build": "yarn dist",
|
"build": "yarn dist",
|
||||||
"build:babel": "babel ./src --out-dir ./dist/es --ignore \"**/*.test.js\" --source-maps inline",
|
"build:babel": "babel ./src --out-dir ./dist/es --ignore \"**/*.test.js\" --source-maps inline",
|
||||||
"clean": "rm -rf dist",
|
"clean": "rm -rf dist",
|
||||||
"dist": "yarn clean && yarn build:babel && CONFIG_FILE=${LACONIC_HOSTED_CONFIG_FILE:-config-production.yml} webpack",
|
"updatever": "scripts/update_version.sh > src/version.json",
|
||||||
|
"dist": "yarn clean && yarn updatever && yarn build:babel && CONFIG_FILE=${LACONIC_HOSTED_CONFIG_FILE:-config-production.yml} webpack",
|
||||||
"lint": "semistandard 'src/**/*.js'",
|
"lint": "semistandard 'src/**/*.js'",
|
||||||
"start": "CONFIG_FILE=${CONFIG_FILE:-config-testnet.yml} VERBOSE=true webpack-dev-server --mode development",
|
"start": "CONFIG_FILE=${CONFIG_FILE:-config-testnet.yml} VERBOSE=true webpack-dev-server --mode development",
|
||||||
"test": "jest --rootDir ./src --passWithNoTests --no-cache"
|
"test": "jest --rootDir ./src --passWithNoTests --no-cache"
|
||||||
|
|||||||
Executable
+8
@@ -0,0 +1,8 @@
|
|||||||
|
#/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
NAME=`cat package.json | jq '.name'`
|
||||||
|
VERSION=`cat package.json | jq '.version'`
|
||||||
|
DATE=`date --rfc-3339=seconds`
|
||||||
|
|
||||||
|
echo '{"build": {}}' | jq ".build.name = $NAME" | jq ".build.version = $VERSION" | jq ".build.buildDate = \"$DATE\""
|
||||||
@@ -10,8 +10,41 @@ import LinkIcon from '@material-ui/icons/ExitToApp';
|
|||||||
import { getServiceUrl } from '../util/config';
|
import { getServiceUrl } from '../util/config';
|
||||||
|
|
||||||
const QUERY = `
|
const QUERY = `
|
||||||
query {
|
fragment ValueParts on Value {
|
||||||
getRecordsByIds(ids: [ "%ID%" ]) {
|
... on BooleanValue {
|
||||||
|
bool: value
|
||||||
|
}
|
||||||
|
... on IntValue {
|
||||||
|
int: value
|
||||||
|
}
|
||||||
|
... on FloatValue {
|
||||||
|
float: value
|
||||||
|
}
|
||||||
|
... on StringValue {
|
||||||
|
string: value
|
||||||
|
}
|
||||||
|
... on BytesValue {
|
||||||
|
bytes: value
|
||||||
|
}
|
||||||
|
... on LinkValue {
|
||||||
|
link: value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fragment AttrParts on Attribute {
|
||||||
|
key
|
||||||
|
value {
|
||||||
|
...ValueParts
|
||||||
|
... on ArrayValue {
|
||||||
|
value {
|
||||||
|
...ValueParts
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
getRecordsByIds(ids: ["%ID%"]) {
|
||||||
id
|
id
|
||||||
names
|
names
|
||||||
bondId
|
bondId
|
||||||
@@ -19,12 +52,12 @@ const QUERY = `
|
|||||||
expiryTime
|
expiryTime
|
||||||
owners
|
owners
|
||||||
attributes {
|
attributes {
|
||||||
key
|
...AttrParts
|
||||||
value {
|
value {
|
||||||
string
|
... on MapValue {
|
||||||
json
|
map: value {
|
||||||
reference {
|
...AttrParts
|
||||||
id
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"build": {
|
"build": {
|
||||||
"name": "@cerc-io/console-app",
|
"name": "",
|
||||||
"buildDate": "2020-12-19T03:06:08.492Z",
|
"version": "",
|
||||||
"version": "1.2.9-alpha.1"
|
"buildDate": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user