Skip to content

Commit

Permalink
Merge branch 'dev' into prod
Browse files Browse the repository at this point in the history
  • Loading branch information
cybermaggedon committed Oct 15, 2024
2 parents 643656b + d95f613 commit 95da443
Show file tree
Hide file tree
Showing 48 changed files with 2,398 additions and 684 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Deploy to dev
on:
workflow_dispatch:
push:
branch:
branches:
- dev

permissions:
Expand All @@ -26,7 +26,7 @@ jobs:

- name: Get version
id: version
run: echo VERSION=$(git describe --exact-match --tags | sed 's/^v//') >> $GITHUB_OUTPUT
run: make version >> $GITHUB_OUTPUT

- name: Install deps
run: npm install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Deploy to prod
on:
workflow_dispatch:
push:
branch:
branches:
- prod

permissions:
Expand All @@ -26,7 +26,7 @@ jobs:

- name: Get version
id: version
run: echo VERSION=0.0.0 >> $GITHUB_OUTPUT
run: make version >> $GITHUB_OUTPUT

- name: Install deps
run: npm install
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@

VERSION=0.1.0
VERSION=0.3.1

all: service-package container

version:
@echo VERSION=${VERSION}

ui:
npm run build
rm -rf config-ui/config_ui/ui/
Expand Down
2 changes: 1 addition & 1 deletion config-ui/config_ui/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async def everything(self, request):
raise web.HTTPInternalServerError()

def process(
self, config, version="0.11.20", platform="docker-compose",
self, config, version="0.12.5", platform="docker-compose",
):

config = config.encode("utf-8")
Expand Down
4 changes: 2 additions & 2 deletions pulumi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const image = new local.Command(
const svcAccount = new gcp.serviceaccount.Account(
"service-account",
{
accountId: "config-ui",
accountId: "config-ui-" + environment,
displayName: "Config UI",
description: "Config UI",
},
Expand Down Expand Up @@ -118,7 +118,7 @@ const vertexAiUserMember = new gcp.projects.IAMMember(
const service = new gcp.cloudrun.Service(
"service",
{
name: "config-ui",
name: "config-ui-" + environment,
location: cloudRunRegion,
template: {
metadata: {
Expand Down
11 changes: 9 additions & 2 deletions src/App.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#root {
margin: 0 auto;
padding: 1rem;
margin: 0 auto;
padding: 1rem;
height: 100vh;
}

body {
width: 100vh;
height: 100vh;
margin: 0;
}

29 changes: 29 additions & 0 deletions src/simple-editor/Banner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

import React from 'react';

import { Typography, Box, Stack } from '@mui/material';

const Banner: React.FC = () => {

return (

<Stack
alignItems="center"
direction="row"
gap={2}
sx={{ mb: 3 }}
>
<Box>
<img src="/tg.svg" alt="Trustgraph logo"
height="45"/>
</Box>
<Typography variant="h4" component="h1">
TrustGraph configuration creator
</Typography>
</Stack>
);

}

export default Banner;

55 changes: 0 additions & 55 deletions src/simple-editor/Chunker.tsx

This file was deleted.

116 changes: 0 additions & 116 deletions src/simple-editor/ConfigGeneration.tsx

This file was deleted.

Loading

0 comments on commit 95da443

Please sign in to comment.