Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
node_modules/

metadata_tmp/

.env
26 changes: 13 additions & 13 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
HLAMBDA_ADMIN_SECRET="you-must-change-me"

# Optional
#HLAMBDA_ENABLE_ENVIRONMENT_BANNER="true"
#HLAMBDA_ENVIRONMENT_BANNER_NAME="Local Hlambda Demo Development"
#HLAMBDA_ENVIRONMENT_BANNER_MESSAGE="Hello Hlambda Env Banner!"
#HLAMBDA_ENABLE_ENVIRONMENT_BANNER_COLOR="#eeFF22"
# HLAMBDA_ENABLE_ENVIRONMENT_BANNER="true"
# HLAMBDA_ENVIRONMENT_BANNER_NAME="Local Hlambda Demo Development"
# HLAMBDA_ENVIRONMENT_BANNER_MESSAGE="Hello Hlambda Env Banner!"
# HLAMBDA_ENABLE_ENVIRONMENT_BANNER_COLOR="#eeFF22"

# - System
HLAMBDA_ENTRY_POINT_PREFIX="router."
HLAMBDA_DISABLE_ADMIN_SECRET="false"
HLAMBDA_DISABLE_CONSOLE="false"
HLAMBDA_METADATA_RELOAD_DEBOUNCE_MS="1331"
HLAMBDA_LOADED_APPS_PREFIX=""
DISABLE_COLORS_IN_STDOUT="false"
# HLAMBDA_ENTRY_POINT_PREFIX="router." # This should not be set in image at all (In .dockerignore)
# HLAMBDA_DISABLE_ADMIN_SECRET="false" # This should not be set in image at all (In .dockerignore)
# HLAMBDA_DISABLE_CONSOLE="false" # This should not be set in image at all (In .dockerignore)
# HLAMBDA_METADATA_RELOAD_DEBOUNCE_MS="1331" # This should not be set in image at all (In .dockerignore)
# HLAMBDA_LOADED_APPS_PREFIX="" # This should not be set in image at all (In .dockerignore)
# DISABLE_COLORS_IN_STDOUT="false" # This should not be set in image at all (In .dockerignore)

# - Hasura
HASURA_GRAPHQL_API_ENDPOINT=""
HASURA_ADMIN_SECRET=""
# HASURA_GRAPHQL_API_ENDPOINT="" # This should not be set in image at all (In .dockerignore)
# HASURA_GRAPHQL_ADMIN_SECRET="" # This should not be set in image at all (In .dockerignore)

# Debugging
#DEBUG="express:*"
SERVER_PORT="1331"
# SERVER_PORT="1331" # This should not be set in image at all (In .dockerignore)
12 changes: 6 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ DISABLE_COLORS_IN_STDOUT="false"
# Sets up logging level: critical, normal, verbose
LOG_LEVELS="critical,normal,verbose"

# Constant reference in code: ENV_SERVER_PORT | Default value: 4005
# Constant reference in code: ENV_SERVER_PORT | Default value: 1331
# Server port on which express app will be hosted
SERVER_PORT="4005"
SERVER_PORT="1331"

# Constant reference in code: ENV_SERVER_SOURCE_IP | Default value: 0.0.0.0
# Server source ip on which express app will be listening
Expand All @@ -38,9 +38,9 @@ HLAMBDA_CORS_DOMAIN="*"
# Server health that can change based on different events "Healthy", "Degraded", "Unhealthy", "Advisory"
SERVER_HEALTH="Healthy"

# Constant reference in code: ENV_HLAMBDA_ADMIN_SECRET | Default value:
# Constant reference in code: ENV_HLAMBDA_ADMIN_SECRET | Default value: you-must-change-me
# Master password for API management.
HLAMBDA_ADMIN_SECRET=""
HLAMBDA_ADMIN_SECRET="you-must-change-me"

# Constant reference in code: ENV_HLAMBDA_DISABLE_ADMIN_SECRET | Default value: false
# Disables or enables master password for API management.
Expand All @@ -66,9 +66,9 @@ HLAMBDA_CONSOLE_ASSETS_DIR="public"
# Debounce ms time to wait before closing the server and reloading metadata.
HLAMBDA_METADATA_RELOAD_DEBOUNCE_MS="1331"

# Constant reference in code: ENV_HLAMBDA_LOADED_APPS_PREFIX | Default value: /api/v1/
# Constant reference in code: ENV_HLAMBDA_LOADED_APPS_PREFIX | Default value:
# Prefix used for all the loaded router apps.
HLAMBDA_LOADED_APPS_PREFIX="/api/v1/"
HLAMBDA_LOADED_APPS_PREFIX=""

# Constant reference in code: ENV_HLAMBDA_ENABLE_PUBLIC_SWAGGER | Default value: false
# Flag to enable public swagger on /docs.
Expand Down
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
<span><a href="https://hub.docker.com/r/hlambda/hlambda-core" title="Docker Image"><img src="https://img.shields.io/docker/image-size/hlambda/hlambda-core/latest" alt="Docker Image Size" /></a></span>
<span><a href="https://github.com/hlambda/hlambda-core/blob/master/LICENSE.md" title="License"><img src="https://img.shields.io/github/license/hlambda/hlambda-core" alt="License" /></a></span>

<span><a href="https://www.patreon.com/bePatron?u=70751523" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-green.svg" alt="Patreon donate button" /></a></span>
<span><a href="https://github.com/hlambda/hlambda-core/actions/workflows/publish-docker-image.yml" title="Publish Docker Image"><img src="https://img.shields.io/github/workflow/status/hlambda/hlambda-core/Publish%20Docker%20image" alt="Publish Docker Image" /></a></span>
<span><a href="https://hub.docker.com/r/hlambda/hlambda-core" title="Docker Image"><img src="https://img.shields.io/docker/image-size/hlambda/hlambda-core/latest" alt="Docker Image Size" /></a></span>
<span><a href="https://github.com/hlambda/hlambda-core/blob/master/LICENSE.md" title="License"><img src="https://img.shields.io/github/license/hlambda/hlambda-core" alt="License" /></a></span>

## What is Hlambda (/hlæmdə/) [Hyper Lambda]

Hlambda is ECMAScript meta API service. That means that it offers simple ways to deploy ECMAScript code to local or remote servers.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hlambda-core",
"version": "0.0.8-beta.3",
"version": "0.0.8-beta.4",
"description": "Hlambda core",
"type": "module",
"main": "src/index.js",
Expand Down
26 changes: 8 additions & 18 deletions public/console/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
{
"files": {
"main.css": "/console/static/css/main.d83edd0b.chunk.css",
"main.js": "/console/static/js/main.7457ea4b.chunk.js",
"main.js.map": "/console/static/js/main.7457ea4b.chunk.js.map",
"runtime-main.js": "/console/static/js/runtime-main.aff7d0a3.js",
"runtime-main.js.map": "/console/static/js/runtime-main.aff7d0a3.js.map",
"static/css/2.f4c56af9.chunk.css": "/console/static/css/2.f4c56af9.chunk.css",
"static/js/2.8fbd1348.chunk.js": "/console/static/js/2.8fbd1348.chunk.js",
"static/js/2.8fbd1348.chunk.js.map": "/console/static/js/2.8fbd1348.chunk.js.map",
"static/js/3.60f73a13.chunk.js": "/console/static/js/3.60f73a13.chunk.js",
"static/js/3.60f73a13.chunk.js.map": "/console/static/js/3.60f73a13.chunk.js.map",
"main.css": "/console/static/css/main.00555d9b.css",
"main.js": "/console/static/js/main.4465d14d.js",
"static/js/787.26504220.chunk.js": "/console/static/js/787.26504220.chunk.js",
"index.html": "/console/index.html",
"static/css/2.f4c56af9.chunk.css.map": "/console/static/css/2.f4c56af9.chunk.css.map",
"static/css/main.d83edd0b.chunk.css.map": "/console/static/css/main.d83edd0b.chunk.css.map",
"static/js/2.8fbd1348.chunk.js.LICENSE.txt": "/console/static/js/2.8fbd1348.chunk.js.LICENSE.txt"
"main.00555d9b.css.map": "/console/static/css/main.00555d9b.css.map",
"main.4465d14d.js.map": "/console/static/js/main.4465d14d.js.map",
"787.26504220.chunk.js.map": "/console/static/js/787.26504220.chunk.js.map"
},
"entrypoints": [
"static/js/runtime-main.aff7d0a3.js",
"static/css/2.f4c56af9.chunk.css",
"static/js/2.8fbd1348.chunk.js",
"static/css/main.d83edd0b.chunk.css",
"static/js/main.7457ea4b.chunk.js"
"static/css/main.00555d9b.css",
"static/js/main.4465d14d.js"
]
}
2 changes: 1 addition & 1 deletion public/console/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/console/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/console/logo192.png"/><link rel="manifest" href="/console/manifest.json"/><title>Console</title><link href="/console/static/css/2.f4c56af9.chunk.css" rel="stylesheet"><link href="/console/static/css/main.d83edd0b.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,a,i=r[0],c=r[1],l=r[2],s=0,p=[];s<i.length;s++)a=i[s],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);p.length;)p.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,i=document.createElement("script");i.charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=function(e){return a.p+"static/js/"+({}[e]||e)+"."+{3:"60f73a13"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){i.onerror=i.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:i})}),12e4);i.onerror=i.onload=u,document.head.appendChild(i)}return Promise.all(r)},a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="/console/",a.oe=function(e){throw console.error(e),e};var i=this["webpackJsonpfrontend-console"]=this["webpackJsonpfrontend-console"]||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var l=0;l<i.length;l++)r(i[l]);var f=c;t()}([])</script><script src="/console/static/js/2.8fbd1348.chunk.js"></script><script src="/console/static/js/main.7457ea4b.chunk.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/console/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/console/logo192.png"/><link rel="manifest" href="/console/manifest.json"/><title>Console</title><script defer="defer" src="/console/static/js/main.4465d14d.js"></script><link href="/console/static/css/main.00555d9b.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
2 changes: 0 additions & 2 deletions public/console/static/css/2.f4c56af9.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion public/console/static/css/2.f4c56af9.chunk.css.map

This file was deleted.

2 changes: 2 additions & 0 deletions public/console/static/css/main.00555d9b.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/console/static/css/main.00555d9b.css.map

Large diffs are not rendered by default.

Loading