Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unstable #359

Merged
merged 58 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
e85de5c
Remove `nginx-proxy` from the config
rielas Jul 11, 2024
bb35201
Add brokencrystals as an alias for pod host
rielas Jul 23, 2024
dd8fbca
Repeater verbose logging + allow public domain with repeater (#353)
denanmusinovic Jul 23, 2024
fd4274c
Add installation test
rielas Jul 24, 2024
ec06532
fix
gasRU76 Jul 31, 2024
048fc6d
feat: serving verification code (temporal) (#354)
pmstss Jul 31, 2024
f7c5f5f
feat: aria labels for login flow related elements (#355)
pmstss Jul 31, 2024
0b58bb7
fix: unique keys for subitems in header navigation element (#356)
pmstss Jul 31, 2024
1847321
feat: startupProbe
gasRU76 Aug 6, 2024
b968521
fix(file): changed content type handling (#357)
bararchy Aug 7, 2024
6fd0c0e
test
gasRU76 Aug 13, 2024
b61cc82
fix
gasRU76 Aug 14, 2024
49cbbb3
fix
gasRU76 Aug 14, 2024
c9ab5ca
chore: setup gh format, lint and build checks workflow for back-end p…
pmstss Aug 26, 2024
e24f294
refactor: fix eslint violations (#361)
pmstss Aug 26, 2024
3c1aa07
test(e2e): restore sectester e2e tests functionality (#362)
pmstss Aug 27, 2024
c81af49
chore: cleanup unused/redundant dependencies (#363)
pmstss Aug 27, 2024
fc02e06
test: proper deps mocks in jest unit tests, add unit tests to ci (#364)
pmstss Aug 27, 2024
a7a31d6
feat(deps)!: upgrade to NestJS v10 and to MikroORM v6 (#365)
pmstss Aug 27, 2024
b2a41f7
build(deps-dev): bump sectester from 0.29.1 to 0.33.1 (#366)
pmstss Aug 27, 2024
3d50d0e
build(deps): minor deps bump (#367)
pmstss Aug 27, 2024
1ba8a1b
chore: migrate to eslint v9 (#368)
pmstss Aug 28, 2024
d3b75cd
chore: bump prettier from 2.8.4 to 3.3.3 (#369)
pmstss Aug 28, 2024
245128b
build(deps): bump `libxmljs` from 0.19.7 to 1.0.11 (#370)
pmstss Aug 28, 2024
2af1760
build: migrate to swc builds both for app and unit tests (#371)
pmstss Aug 28, 2024
adb4bc5
build: no need in build tools as for libxmljs@1.0.11 node v18 precomp…
pmstss Aug 28, 2024
50ef196
chore: skip type checking and suppress npm ci output on docker build …
pmstss Aug 28, 2024
7750d59
build(deps): bump `@mikro-orm/*` from 6.3.6 to 6.3.7 (#374)
pmstss Aug 28, 2024
4747b4f
chore(client): normalize dependencies (#375)
pmstss Aug 28, 2024
fc17c5a
chore(client): remove unused dependencies (#376)
pmstss Aug 28, 2024
8e8221f
build(client): bump `get-browser-fingerprint` from 2.0.1 to 3.2.0 (#377)
pmstss Aug 28, 2024
8b83dab
test(client): fix cypress config and restore e2e tests functionality …
pmstss Aug 29, 2024
d427ed5
chore(client): migrate to `react` 18.3.1, `react-router-dom` 6.26.1 a…
pmstss Aug 29, 2024
a3d1fac
chore(client): remove unused `public/vendor/assets` (duplicate of `pu…
pmstss Aug 29, 2024
56345e5
chore(client): cleanup unused vendor libraries and assets (#381)
pmstss Aug 29, 2024
6da7881
fix(client): rework 3rd party libraries initialization (#382)
pmstss Aug 30, 2024
6e21691
chore(client): migrate `eslint` to 8.57.0, bump `prettier` to 3.3.3 (…
pmstss Aug 31, 2024
95368f1
build(deps): minor deps bump (#384)
pmstss Sep 2, 2024
8cb052e
build(client): bump `axios` from 0.21.4 to 1.7.7 (#385)
pmstss Sep 2, 2024
2282137
build(client): switch to `react-jsx` transform option (#386)
pmstss Sep 2, 2024
7e1195b
chore(client): migrate to eslint v9 (#387)
pmstss Sep 2, 2024
15160a8
chore(client): force `consistent-type-imports` eslint rule (#388)
pmstss Sep 2, 2024
854bded
chore(client): setup gh ci checks for client app (#389)
pmstss Sep 2, 2024
7c13ea5
chore: setup husky, lint-staged and commitlint (#390)
pmstss Sep 2, 2024
6d36c1a
chore(client): migrate from `react-scripts` build to `vite` (#391)
pmstss Sep 2, 2024
0475535
test(client): update cypress e2e tests startup scripts (#392)
pmstss Sep 2, 2024
0c87484
chore: unify prettier configs between back-end and front-end (#393)
pmstss Sep 2, 2024
6b4e086
chore(client): remove insight-app-sec-validation meta tag (#394)
pmstss Sep 3, 2024
a49e34c
chore(client): unused dependencies cleanup (#395)
pmstss Sep 3, 2024
ce2a76c
chore(client): cleanup redundant styles (#396)
pmstss Sep 3, 2024
fed266d
docs(readme): remove helm chart section from main readme, rework clie…
pmstss Sep 3, 2024
eb4b2c4
fix(client): introduce own `InnerHtml` component with parameterized t…
pmstss Sep 3, 2024
bdc4d0c
fix(client): proper init and update of isotope layout (#399)
pmstss Sep 3, 2024
1d89773
build(deps): minor deps bump (#400)
pmstss Sep 4, 2024
3753cf2
fix(client): fix styles for gem query filter for firefox (#401)
pmstss Sep 4, 2024
a50663f
Merge branch 'stable' into unstable
pmstss Sep 5, 2024
d5f9a17
chore: remove helm charts (#402)
pmstss Sep 5, 2024
1d7c065
chore: remove heml charts release workflow
pmstss Sep 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ KEYCLOAK_PUBLIC_CLIENT_ID=brokencrystals-client
KEYCLOAK_PUBLIC_CLIENT_SECRET=4bfb5df6-4647-46dd-bad1-c8b8ffd7caf4

BRIGHT_TOKEN=
BRIGHT_CLUSTER=app.neuralegion.com
SEC_TESTER_TARGET=http://localhost:8090
BRIGHT_CLUSTER=app.brightsec.com
SEC_TESTER_TARGET=http://localhost:3000

CHAT_API_URL=https://api-inference.huggingface.co/v1/chat/completions
CHAT_API_MODEL=meta-llama/Meta-Llama-3-8B-Instruct
Expand Down
25 changes: 0 additions & 25 deletions .eslintrc.js

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/check-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "React Front-End CI checks"

on:
pull_request:
branches:
- '**'

push:
branches:
- stable
- unstable

paths:
- 'client/**'
- '.github/workflows/*client.yml'

env:
HUSKY: 0

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Disable prepare script (husky)
run: npm pkg delete scripts.prepare

- name: Install dependencies
run: npm ci --prefix=client --no-audit

- name: Check format
run: npm run format --prefix=client

- name: Lint
run: npm run lint --prefix=client

- name: Build
run: npm run build --prefix=client
57 changes: 57 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: "Nest Back-End CI checks"

on:
pull_request:
branches:
- '**'

push:
branches:
- stable
- unstable

paths:
- '*'
- 'src/**'
- 'test/**'
- '.github/workflows/check.yml'

env:
HUSKY: 0

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Disable prepare script (husky)
run: npm pkg delete scripts.prepare

- name: Install dependencies
run: npm ci --no-audit

- name: Check format
run: npm run format

- name: Lint
run: npm run lint

- name: Build
run: npm run build

- name: Test
run: npm run test
40 changes: 0 additions & 40 deletions .github/workflows/release.yml

This file was deleted.

1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no-install commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/.github
/node_modules
/dist
/charts
/client
5 changes: 3 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "all"
}
"trailingComma": "none"
}
17 changes: 17 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"sourceMaps": true,
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true
},
"baseUrl": "./"
},
"minify": false
}
24 changes: 10 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,23 @@
# BUILD FOR LOCAL DEVELOPMENT
###################

FROM node:14-alpine As build
FROM node:18-alpine AS build

WORKDIR /usr/src/app

RUN apk add --no-cache --virtual .gyp python3 py3-pip make g++

# Copy and build NestJS server project
COPY --chown=node:node package*.json ./
COPY --chown=node:node tsconfig.build.json ./
COPY --chown=node:node tsconfig.json ./
COPY --chown=node:node nest-cli.json ./
COPY --chown=node:node mikro-orm.config.ts ./
COPY --chown=node:node nest-cli.fast.json ./
COPY --chown=node:node .env ./
COPY --chown=node:node config ./config
COPY --chown=node:node keycloak ./keycloak
COPY --chown=node:node src ./src

RUN npm ci
RUN npm run build
ENV NPM_CONFIG_LOGLEVEL=error
RUN npm ci --no-audit
RUN npm run build:fast
RUN npm prune --production

# Copy and build client project
Expand All @@ -30,25 +28,23 @@ COPY --chown=node:node client/public ./client/public
COPY --chown=node:node client/typings ./client/typings
COPY --chown=node:node client/vcs ./client/vcs
COPY --chown=node:node client/tsconfig.json ./client/tsconfig.json
COPY --chown=node:node client/vite.config.ts ./client/vite.config.ts
COPY --chown=node:node client/index.html ./client/index.html

ENV CYPRESS_INSTALL_BINARY=0
RUN npm ci --prefix=client
RUN npm ci --prefix=client --no-audit
RUN npm run build --prefix=client

RUN apk del .gyp

USER node

###################
# PRODUCTION
###################

FROM node:14-alpine As production
FROM node:18-alpine AS production

WORKDIR /usr/src/app

COPY --chown=node:node nest-cli.json ./
COPY --chown=node:node mikro-orm.config.ts ./
COPY --chown=node:node .env ./
COPY --chown=node:node config ./config
COPY --chown=node:node keycloak ./keycloak
Expand All @@ -57,7 +53,7 @@ COPY --chown=node:node --from=build /usr/src/app/node_modules ./node_modules
COPY --chown=node:node --from=build /usr/src/app/package*.json ./
COPY --chown=node:node --from=build /usr/src/app/dist ./dist

COPY --chown=node:node --from=build /usr/src/app/client/build ./client/build
COPY --chown=node:node --from=build /usr/src/app/client/dist ./client/dist
COPY --chown=node:node --from=build /usr/src/app/client/vcs ./client/vcs

CMD ["npm", "run", "start:prod"]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 NeuraLegion
Copyright (c) 2024 NeuraLegion

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading