Skip to content

Commit 72d0e8f

Browse files
authored
Release/0.1.0 (#11)
* 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 * feat: 🚀 Add support for socket.io, update metadata example, add metadata history Add support for socket.io, update metadata example including socket.io example, add metadata history and timestamps. * feat: 🚀 Update UI to v0.0.7 Update Console UI to v0.0.7 * fix: 🐛 Fixes Return valid content for metadata-history * feat: 🚀 Update UI, update CHANGELOG.md * feat: 🎨 Added support for JSON output, prepare code for next minor version release Added support for JSON output to stdout, added new env variable JSON_STDOUT default:false, bugfixes * feat: 🎨 Update Core Console UI * fix: 🐛 Fix metadata reset Fix metadata reset, fix typo * fix: 🐛 Fix logged text, fix swagger's custom js * fix: 🐛 Fix metadata example copy location
1 parent b51d749 commit 72d0e8f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+633
-96
lines changed

.dockerignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
# Note .dockerignore syntax is a bit different than .gitignore
2+
13
.git/
24
.github/
35
node_modules/
46

5-
watcher_trigger/
7+
watcher_trigger/*
68
!watcher_trigger/.gitkeep
79

8-
data/
9-
!data/.gitkeep
10+
data/metadata-history/*
11+
!data/metadata-history/.gitkeep
1012

1113
metadata_tmp/
1214

.env.example

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
NODE_ENV="development"
44

55
# Constant reference in code: ENV_DISABLE_COLORS_IN_STDOUT | Default value: false
6-
# Set to true if you want to disable colorful output to stdout, it helps if you use AWS CloudWatch
6+
# Set to true if you want to disable colorful output to stdout, it helps if you use AWS CloudWatch.
77
DISABLE_COLORS_IN_STDOUT="false"
88

9+
# Constant reference in code: ENV_JSON_STDOUT | Default value: false
10+
# Set to true if you want to get JSON output to stdout, it helps if you use AWS CloudWatch.
11+
JSON_STDOUT="false"
12+
913
# Constant reference in code: ENV_LOG_LEVELS | Default value: critical,normal,verbose
1014
# Sets up logging level: critical, normal, verbose
1115
LOG_LEVELS="critical,normal,verbose"

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
node_modules/
2-
metadata/
32

4-
watcher_trigger/
3+
watcher_trigger/*
54
!watcher_trigger/.gitkeep
65

7-
data/
8-
!data/.gitkeep
6+
data/metadata-history/*
7+
!data/metadata-history/.gitkeep
98

109
# development
1110
metadata_tmp/

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
# (Future) Release 0.0.10
1+
# Release 0.1.0
22

3-
- undefined
3+
- Added support for JSON output to stdout, new env variable `JSON_STDOUT` default:false
4+
- Restructured metadata example location, moved examples to `./data/metadata-examples`
5+
- Added ability to reset metadata, which will reset metadata to initial image example metadata.
6+
- Updated UI
7+
- Bugfixes
48

59
# Release 0.0.9
610

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ COPY . .
2828
# Install node_modules in metadata folder on build
2929
RUN cd ./metadata && npm install --only=production
3030

31+
# At the point of building image we also want to move metadata folder with npm modules to data/metadata-examples
32+
RUN cp -r ./metadata/* ./data/metadata-examples
33+
3134
CMD ["npm", "run", "start"]
3235

3336
# This is not ready, there are known bugs with cluster mode (state management between nodes, like path in remote shell etc...)

data/.gitkeep

Whitespace-only changes.

data/metadata-examples/.gitkeep

Whitespace-only changes.

data/metadata-history/.gitkeep

Whitespace-only changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { createErrorDescriptor } from 'hlambda';
2+
3+
// --- START SAFE TO EDIT ---
4+
5+
export const errorsGroupName = 'demo-hlambda-app';
6+
7+
export const errors = {
8+
FUNCTIONALITY_NOT_IMPLEMENTED: {
9+
message:
10+
'Specific functionality is still in development. (It should be available soon, thank you for understanding.)',
11+
},
12+
SOMETHING_WENT_TERRIBLY_WRONG: {
13+
message: 'Description of an error message...',
14+
},
15+
};
16+
17+
// --- STOP SAFE TO EDIT ---
18+
19+
export const ed = createErrorDescriptor(errors, errorsGroupName);
20+
21+
export default errors;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import 'colors';
2+
3+
const hasuraRequestLogger = (req, res, next) => {
4+
console.log(`[${req.originalUrl}] Request hit!`);
5+
// --------------------------------------------------------------------------------
6+
// Get variables
7+
console.log('This is what we received from Hasura when calling the hook');
8+
console.log(req.body);
9+
console.log(Array(80 + 1).join('-'));
10+
// --------------------------------------------------------------------------------
11+
next();
12+
};
13+
14+
export default hasuraRequestLogger;

0 commit comments

Comments
 (0)