Skip to content

Commit 3f74883

Browse files
authored
Release/0.0.8 (#9)
* docs: 📝 Update README.md Add shields, update information, add logo for both light and dark theme. * fix: 🐛 Use picture tag https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#specifying-the-theme-an-image-is-shown-to * fix: 📝 Add new line * feat: ✨ Improve order for serving static files, implement remote version check, fix env banner API response Improve serving static files by updating the order of the hlapp's loading pattern, this enables serving static files that have naming collision with hlambda's example: favicon.ico, add remote version check via github API, fix env banner boolean flags, update example metadata * feat: ✨ Update UI Update image to contain new UI files * fix: 🎨 Update example metadata Update metadata example to match yaml syntax * fix: 🐛 Remove duplicate shields in README.md * fix: 🐛 Add .env to .dockerignore, update defaults in constants Add .env to .dockerignore, update defaults in constants.js, update new version to beta.4, add output for environment, added file upload to editor * feat: 🚀 Add new UI to the core
1 parent 57de4f4 commit 3f74883

30 files changed

+157
-61
lines changed

.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
node_modules/
44

55
metadata_tmp/
6+
7+
.env

.env

+13-13
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44
HLAMBDA_ADMIN_SECRET="you-must-change-me"
55

66
# Optional
7-
#HLAMBDA_ENABLE_ENVIRONMENT_BANNER="true"
8-
#HLAMBDA_ENVIRONMENT_BANNER_NAME="Local Hlambda Demo Development"
9-
#HLAMBDA_ENVIRONMENT_BANNER_MESSAGE="Hello Hlambda Env Banner!"
10-
#HLAMBDA_ENABLE_ENVIRONMENT_BANNER_COLOR="#eeFF22"
7+
# HLAMBDA_ENABLE_ENVIRONMENT_BANNER="true"
8+
# HLAMBDA_ENVIRONMENT_BANNER_NAME="Local Hlambda Demo Development"
9+
# HLAMBDA_ENVIRONMENT_BANNER_MESSAGE="Hello Hlambda Env Banner!"
10+
# HLAMBDA_ENABLE_ENVIRONMENT_BANNER_COLOR="#eeFF22"
1111

1212
# - System
13-
HLAMBDA_ENTRY_POINT_PREFIX="router."
14-
HLAMBDA_DISABLE_ADMIN_SECRET="false"
15-
HLAMBDA_DISABLE_CONSOLE="false"
16-
HLAMBDA_METADATA_RELOAD_DEBOUNCE_MS="1331"
17-
HLAMBDA_LOADED_APPS_PREFIX=""
18-
DISABLE_COLORS_IN_STDOUT="false"
13+
# HLAMBDA_ENTRY_POINT_PREFIX="router." # This should not be set in image at all (In .dockerignore)
14+
# HLAMBDA_DISABLE_ADMIN_SECRET="false" # This should not be set in image at all (In .dockerignore)
15+
# HLAMBDA_DISABLE_CONSOLE="false" # This should not be set in image at all (In .dockerignore)
16+
# HLAMBDA_METADATA_RELOAD_DEBOUNCE_MS="1331" # This should not be set in image at all (In .dockerignore)
17+
# HLAMBDA_LOADED_APPS_PREFIX="" # This should not be set in image at all (In .dockerignore)
18+
# DISABLE_COLORS_IN_STDOUT="false" # This should not be set in image at all (In .dockerignore)
1919

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

2424
# Debugging
2525
#DEBUG="express:*"
26-
SERVER_PORT="1331"
26+
# SERVER_PORT="1331" # This should not be set in image at all (In .dockerignore)

.env.example

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ DISABLE_COLORS_IN_STDOUT="false"
1010
# Sets up logging level: critical, normal, verbose
1111
LOG_LEVELS="critical,normal,verbose"
1212

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

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

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

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

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

7373
# Constant reference in code: ENV_HLAMBDA_ENABLE_PUBLIC_SWAGGER | Default value: false
7474
# Flag to enable public swagger on /docs.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hlambda-core",
3-
"version": "0.0.8-beta.3",
3+
"version": "0.0.8-beta.4",
44
"description": "Hlambda core",
55
"type": "module",
66
"main": "src/index.js",

public/console/asset-manifest.json

+8-18
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
11
{
22
"files": {
3-
"main.css": "/console/static/css/main.d83edd0b.chunk.css",
4-
"main.js": "/console/static/js/main.7457ea4b.chunk.js",
5-
"main.js.map": "/console/static/js/main.7457ea4b.chunk.js.map",
6-
"runtime-main.js": "/console/static/js/runtime-main.aff7d0a3.js",
7-
"runtime-main.js.map": "/console/static/js/runtime-main.aff7d0a3.js.map",
8-
"static/css/2.f4c56af9.chunk.css": "/console/static/css/2.f4c56af9.chunk.css",
9-
"static/js/2.8fbd1348.chunk.js": "/console/static/js/2.8fbd1348.chunk.js",
10-
"static/js/2.8fbd1348.chunk.js.map": "/console/static/js/2.8fbd1348.chunk.js.map",
11-
"static/js/3.60f73a13.chunk.js": "/console/static/js/3.60f73a13.chunk.js",
12-
"static/js/3.60f73a13.chunk.js.map": "/console/static/js/3.60f73a13.chunk.js.map",
3+
"main.css": "/console/static/css/main.00555d9b.css",
4+
"main.js": "/console/static/js/main.4465d14d.js",
5+
"static/js/787.26504220.chunk.js": "/console/static/js/787.26504220.chunk.js",
136
"index.html": "/console/index.html",
14-
"static/css/2.f4c56af9.chunk.css.map": "/console/static/css/2.f4c56af9.chunk.css.map",
15-
"static/css/main.d83edd0b.chunk.css.map": "/console/static/css/main.d83edd0b.chunk.css.map",
16-
"static/js/2.8fbd1348.chunk.js.LICENSE.txt": "/console/static/js/2.8fbd1348.chunk.js.LICENSE.txt"
7+
"main.00555d9b.css.map": "/console/static/css/main.00555d9b.css.map",
8+
"main.4465d14d.js.map": "/console/static/js/main.4465d14d.js.map",
9+
"787.26504220.chunk.js.map": "/console/static/js/787.26504220.chunk.js.map"
1710
},
1811
"entrypoints": [
19-
"static/js/runtime-main.aff7d0a3.js",
20-
"static/css/2.f4c56af9.chunk.css",
21-
"static/js/2.8fbd1348.chunk.js",
22-
"static/css/main.d83edd0b.chunk.css",
23-
"static/js/main.7457ea4b.chunk.js"
12+
"static/css/main.00555d9b.css",
13+
"static/js/main.4465d14d.js"
2414
]
2515
}

public/console/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +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>
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><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>

public/console/static/css/2.f4c56af9.chunk.css

-2
This file was deleted.

public/console/static/css/2.f4c56af9.chunk.css.map

-1
This file was deleted.

public/console/static/css/main.00555d9b.css

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/console/static/css/main.00555d9b.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/console/static/css/main.d83edd0b.chunk.css

-2
This file was deleted.

0 commit comments

Comments
 (0)