Skip to content

Commit

Permalink
Merge pull request #23 from MarkE16/marke16/improvements_1
Browse files Browse the repository at this point in the history
Marke16/improvements 1
  • Loading branch information
MarkE16 authored Feb 24, 2025
2 parents af020b5 + 228e3d0 commit a306d72
Show file tree
Hide file tree
Showing 118 changed files with 12,974 additions and 4,500 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_modules
.gitignore
.husky
.github
.zed
api
tests
*.md
Expand Down
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Fixes #(issue) (If not fixing an issue, explain what this pull request is for.)

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that causes existing functionality to not work as expected)
- [ ] Breaking change (fix or feature that causes changes to existing functionality, possibly impacting existing features)

## Have you tested your changes?
- [ ] I wrote tests for the code I've written.
- [ ] I wrote tests for the code I've written.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Login to Container Registry
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Login to Container Registry
run: |
Expand Down
22 changes: 15 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: CI

# Run tests on every commit on any branch
on:
Expand All @@ -8,23 +8,31 @@ on:
- main

jobs:
test:
tests:
runs-on: ubuntu-latest
name: Execute Vite tests

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"

- name: Install pnpm
run: npm install -g pnpm
run: npm install -g pnpm@8

- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Run tests with coverage
run: pnpm run coverage

- name: Run tests
run: pnpm run test
- name: Upload coverage to SonarQube
uses: sonarsource/sonarqube-scan-action@v4
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,18 @@ node_modules
coverage
.zed
dist
coverage
dist-ssr
*.local

.dockerignore
Dockerfile

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.zed
.DS_Store
*.suo
*.ntvs*
Expand Down
Binary file added assets/icons/IdeaDrawnNewLogo_invert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

This file was deleted.

36 changes: 6 additions & 30 deletions components/Canvas/Canvas.styles.css
Original file line number Diff line number Diff line change
@@ -1,42 +1,18 @@
.canvas,
#background-canvas {
.canvas {
position: absolute;
/* top: 0;
left: 0; */
background-color: transparent;
opacity: 0.1;
cursor: crosshair;
border: 1px solid gray;
}

#background-canvas {
background-color: white;
opacity: 1;
}

.canvas.hidden {
opacity: 0 !important;
cursor: inherit;
z-index: 0;
}

.canvas.active {
background-color: rgba(255, 255, 255, 0.1);
opacity: 1;
z-index: 1;
}

.canvas.move {
cursor: inherit;
.canvas.hidden {
opacity: 0 !important;
}

.canvas.selection {
opacity: 1;
cursor: default;
z-index: 99;
}

.canvas.zoom_in {
cursor: zoom-in;
}

.canvas.zoom_out {
cursor: zoom-out;
}
Loading

0 comments on commit a306d72

Please sign in to comment.