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

V2 #11

Merged
merged 63 commits into from
Jan 31, 2024
Merged

V2 #11

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
21df565
Delete old project
Nov 20, 2023
12b5f42
Init backend
Nov 29, 2023
245237c
Init frontend
Nov 29, 2023
1a7ce3c
Install reactbase
Nov 29, 2023
d89c2e5
Init reactbase
Nov 29, 2023
9885711
Formatting
Dec 4, 2023
8aea72f
wip Authentication + wemogy.aspnet
Dec 4, 2023
44712a2
wip auth
Dec 5, 2023
91a0273
Rebrickable + dto
Dec 7, 2023
c9ac479
Atoms + login form
Dec 7, 2023
05669ce
Fix AspNet Identity Swagger
Dec 11, 2023
1b3256c
Working login
Dec 11, 2023
a03ab27
Add Rebrickable API
Dec 12, 2023
4d91c32
Change toast position
Dec 12, 2023
e24fd3e
Delete user
Dec 13, 2023
7c58eae
Fix missing Dto
Dec 13, 2023
d01c74b
AuthService
Dec 18, 2023
221d5ec
Set Overview
Dec 22, 2023
5a68117
Refresh on session load
Dec 22, 2023
2ffbb8c
Set details
Dec 25, 2023
d752a69
Refactoring & cleanup
Dec 29, 2023
7c5c9ed
Cleanup
Dec 29, 2023
dcb021d
Small fixes
Dec 29, 2023
c82fcd5
Update Parts
Jan 2, 2024
ba0a20c
Fix sets route
Jan 2, 2024
675d300
Fix set fetching after login
Jan 2, 2024
b708225
Fix cannot modify SetStore.Items
Jan 2, 2024
831416f
Fix broken link
Jan 2, 2024
07a78af
Fix spacing
Jan 2, 2024
7db6a1a
Fix part order
Jan 2, 2024
8813327
Fix part fetching
Jan 2, 2024
036fe57
TODOs
Jan 2, 2024
4d91bcb
Fix SetStore.items.push() not working
Jan 22, 2024
5c06475
Add more fontWeight
Jan 22, 2024
8cb01ca
Add error page
Jan 22, 2024
d764c15
Clear search bar on set creation
Jan 22, 2024
f0cba61
Add data 404 pages
Jan 22, 2024
d305f0e
Update AuthenticationService.ts
Jan 22, 2024
d723142
Update .gitignore
Jan 22, 2024
de3c48e
Update APi packages
Jan 22, 2024
ecbf92e
Rename Solution
Jan 22, 2024
e606fd8
Rider init
Jan 22, 2024
9d6ddf9
Remove CQRS
Jan 22, 2024
64da5f5
Rename csproj
Jan 22, 2024
7c41ecf
Use new product name
Jan 22, 2024
7b1a151
Use product logo
Jan 22, 2024
d614129
Update docker compose
Jan 22, 2024
f26e87d
Change password requirements
Jan 23, 2024
760d431
Rename Rebrickable project
Jan 23, 2024
96fbcc9
Update Bennetr.RebrickableDotNet.csproj
Jan 23, 2024
1eab900
Refactor Rebrickable API
Jan 23, 2024
f9259c9
Readme & License
Jan 30, 2024
804ebc2
Refactoring
Jan 30, 2024
52b138e
Release & Build test workflows
Jan 30, 2024
ed54a38
Update frontend packages
Jan 30, 2024
f66d213
Moved TODOs
Jan 30, 2024
7eb938a
Update docker-compose.yml
Jan 30, 2024
9dbeb52
Frontend docker
Jan 30, 2024
5933a8f
Fix type error
Jan 31, 2024
70bcaff
Fix workflows
Jan 31, 2024
a36302b
Add lint workflow
Jan 31, 2024
bb45f9b
Add eslint workflow
Jan 31, 2024
81b1536
env, readme
Jan 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 0 additions & 132 deletions .dockerignore

This file was deleted.

28 changes: 28 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
################################
# EditorConfig is awesome #
# See: http://EditorConfig.org #
################################

# This file is the top-most EditorConfig file
root = true

# All files
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# Define style of doc comments for indentation checks
block_comment_start = /*
block_comment = *
block_comment_end = */

# Exception for .sln files as they reformat themselves
[*.sln]
charset = utf-8-bom

[*.cs]
indent_size = 4
66 changes: 66 additions & 0 deletions .github/actions/container/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Build and push container
description: Build and optionally push a container image

inputs:
registry-server:
description: Container registry server
required: false
default: docker.io
registry-user:
description: Container registry username
required: false
registry-password:
description: Container registry password
required: false
name:
description: Name of the container image
required: true
version:
description: Version of the container image (with prefix)
required: true
file:
description: Path to Dockerfile
required: false
context:
description: Working / context directory for the build process (without trailing slash)
required: false
default: .
push:
description: Whether to push the container image to the registry
required: true
default: 'false'
wemogy-npm-server:
description: wemogy npm proxy server
required: false
wemogy-npm-user:
description: wemogy npm proxy username
required: false
wemogy-npm-password:
description: wemogy npm proxy password
required: false

runs:
using: composite
steps:
- name: Setup buildx
uses: docker/setup-buildx-action@v3

- name: Login to container registery
uses: docker/login-action@v3
if: inputs.push == 'true'
with:
registry: ${{ inputs.registry-server }}
username: ${{ inputs.registry-username }}
password: ${{ inputs.registry-password }}

- name: Build ${{ inputs.push && 'and push ' }}container
uses: docker/build-push-action@v5
with:
tags: ${{ inputs.registry-server }}/${{ inputs.name }}:${{ inputs.version }}
file: ${{ inputs.file }}
context: ${{ inputs.context }}
push: ${{ inputs.push }}
build-args: |
WEMOGY_NPM_SERVER=${{ inputs.wemogy-npm-server }}
WEMOGY_NPM_USER=${{ inputs.wemogy-npm-user }}
WEMOGY_NPM_PASSWORD${{ inputs.wemogy-npm-password }}
39 changes: 39 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release

on:
push:
branches:
- main
workflow_dispatch:

jobs:
container-frontend:
name: Build frontend container
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build container
uses: ./.github/actions/container
with:
name: bennetrr/brickinv-frontend
version: 0.0.0
context: src/frontend
push: 'true'
wemogy-npm-server: ${{ secrets.WEMOGY_NPM_SERVER }}
wemogy-npm-user: ${{ secrets.WEMOGY_NPM_USER }}
wemogy-npm-password: ${{ secrets.WEMOGY_NPM_PASSWORD }}

container-backend:
name: Build backend container
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build container
uses: ./.github/actions/container
with:
name: bennetrr/brickinv-backend
version: 0.0.0
context: src/backend/Bennetr.BrickInv.Api/
push: 'true'
30 changes: 0 additions & 30 deletions .github/workflows/build-test.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/build.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Lint

on:
push:
branches:
- main
workflow_dispatch:

jobs:
editorconfig:
name: Lint with editorconfig
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run eclint
run: |
npx eclint check .

eslint:
name: Run eslint on frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up pnpm
uses: pnpm/action-setup@v2.4.0
with:
package_json_file: src/frontend/package.json


- name: Set up node
uses: actions/setup-node@v4
with:
node-version-file: src/frontend/package.json
cache: 'pnpm'

- name: Install dependencies
working-directory: src/frontend
run: |
pnpm install

- name: Run eslint
uses: sibiraj-s/action-eslint@v3
with:
working-directory: src/frontend
token: ${{ secrets.GITHUB_TOKEN }}
all-files: true
eslint-args: '--ignore-path=.gitignore --quiet --report-unused-disable-directives --max-warnings 0'
extensions: 'js,jsx,ts,tsx'
annotations: true
Loading