Skip to content

Commit 2ded33a

Browse files
authored
Release/0.0.8 (#7)
* 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
1 parent 011bc8f commit 2ded33a

27 files changed

+324
-1445
lines changed

Diff for: .env

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
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"
711

812
# - System
913
HLAMBDA_ENTRY_POINT_PREFIX="router."

Diff for: .env.example

+10-2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ HLAMBDA_DISABLE_CONSOLE="false"
5454
# Disable 301 redirect from the root path to the `/console`.
5555
HLAMBDA_DISABLE_INITIAL_ROUTE_REDIRECT="false"
5656

57+
# Constant reference in code: ENV_HLAMBDA_DISABLE_CONSOLE_FRONTEND | Default value: false
58+
# Disable static serving of the frontend artefacts from hlambda's public folder.
59+
HLAMBDA_DISABLE_CONSOLE_FRONTEND="false"
60+
61+
# Constant reference in code: ENV_HLAMBDA_CONSOLE_ASSETS_DIR | Default value: public
62+
# If set it will serve console assets from that directory instead of CDN. Using CDN enables system to have lates UI and receive Console hotfixes without the need for updating image.
63+
HLAMBDA_CONSOLE_ASSETS_DIR="public"
64+
5765
# Constant reference in code: ENV_HLAMBDA_METADATA_RELOAD_DEBOUNCE_MS | Default value: 1331
5866
# Debounce ms time to wait before closing the server and reloading metadata.
5967
HLAMBDA_METADATA_RELOAD_DEBOUNCE_MS="1331"
@@ -94,9 +102,9 @@ HLAMBDA_ENVIRONMENT_BANNER_NAME=""
94102
# Sets message to the environment banner.
95103
HLAMBDA_ENVIRONMENT_BANNER_MESSAGE=""
96104

97-
# Constant reference in code: ENV_HLAMBDA_ENABLE_ENVIRONMENT_BANNER_COLOR | Default value: #FF0000
105+
# Constant reference in code: ENV_HLAMBDA_ENABLE_ENVIRONMENT_BANNER_COLOR | Default value: #fea300
98106
# Selects color of the environment banner.
99-
HLAMBDA_ENABLE_ENVIRONMENT_BANNER_COLOR="#FF0000"
107+
HLAMBDA_ENABLE_ENVIRONMENT_BANNER_COLOR="#fea300"
100108

101109
# Constant reference in code: ENV_HLAMBDA_LIST_OF_PROTECTED_ENV_VARIABLES | Default value: ENV_HLAMBDA_LIST_OF_PROTECTED_ENV_VARIABLES,HLAMBDA_DISABLE_CONSOLE,HLAMBDA_ADMIN_SECRET
102110
# List of the env variable names that are protected from hlambda config override.

Diff for: README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# Hlambda (/hlæmdə/; hλ;) [Hyper Lambda]
1+
# Hlambda (/hlæmdə/; Hλ;) [Hyper Lambda]
2+
3+
<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>
4+
<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>
5+
<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>
6+
<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>
27

38
<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>
49
<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>

Diff for: metadata/apps/example_demo_app/hlambda-config.yaml

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
# Defines if the app is enabled or not disabled apps are skipped from importing
22
enabled: true
3-
# Defines if we want to use namespace or not
4-
use_namespace: true
5-
# Define the namespace name
6-
namespace_name: 'demo_app'
3+
# # Defines if we want to use namespace or not
4+
# use_namespace: true # NOT IN USE!
5+
# # Define the namespace name
6+
# namespace_name: 'demo_app' # NOT IN USE!
77
# Custom environment variables override for our app
88
env:
99
HASURA_GRAPHQL_API_ENDPOINT: "http://graphql-engine:8099/v1/graphql"
1010
HASURA_GRAPHQL_ADMIN_SECRET: "hlambda-test"
11-
YES: "yes"
12-
HAHAH: "YooY"
1311
HLAMBDA_DISABLE_CONSOLE: "false"
12+
#HLAMBDA_ENABLE_ENVIRONMENT_BANNER: "true"
13+
#HLAMBDA_ENVIRONMENT_BANNER_NAME: "Local Hlambda Demo Development"
14+
#HLAMBDA_ENVIRONMENT_BANNER_MESSAGE: "Hello Hlambda Env Banner!"
15+
#HLAMBDA_ENABLE_ENVIRONMENT_BANNER_COLOR: "#eeFF22"
16+
1417
envForce:
1518
HASURA_GRAPHQL_API_ENDPOINT: "http://graphql-engine:8099/v1/graphql"
1619
HASURA_GRAPHQL_ADMIN_SECRET: "realpassword"
17-
SPECIAL_PASSWORD: "realpz"
20+
SPECIAL_PASSWORD: "value-from-env"
1821
HLAMBDA_DISABLE_CONSOLE: "false"

Diff for: metadata/apps/example_hasura/hasura-request-logger.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'colors';
1+
// import 'colors'; // This is known issue with this package...
22

33
const hasuraRequestLogger = (req, res, next) => {
44
console.log(`[${req.originalUrl}] Request hit!`);

0 commit comments

Comments
 (0)