Skip to content

Commit

Permalink
Merge pull request #130 from os2display/feature/2314-bugfixes
Browse files Browse the repository at this point in the history
Fixed issue with svg loading
  • Loading branch information
tuj authored Sep 16, 2024
2 parents 284db6a + 04895ab commit b8c5e49
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:

- name: Archive screenshots
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: cypress-screenshots-${{ matrix.browser }}
path: cypress/screenshots
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.

## Unreleased

- [#130](https://github.com/os2display/display-client/pull/130)
- Fixed issue with svg loading.
- [#127](https://github.com/os2display/display-client/pull/127)
- Migrate from CRA to Vite
- Upgrade node from 14 -> 20
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Start docker setup

```
# Install npm packages
docker compose run node yarn install
docker compose run --rm node yarn install
# Up the containers
docker compose up -d
Expand Down
4 changes: 2 additions & 2 deletions src/touch-region.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { createGridArea } from "os2display-grid-generator";
import Slide from "./slide";
import ErrorBoundary from "./error-boundary";
import idFromPath from "./id-from-path";
import IconClose from "./assets/icon-close.svg?react";
import IconPointer from "./assets/icon-pointer.svg?react";
import IconClose from "./assets/icon-close.svg";
import IconPointer from "./assets/icon-pointer.svg";

/**
* Region component.
Expand Down
10 changes: 9 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import svgr from "vite-plugin-svgr";

export default defineConfig({
base: '/client',
plugins: [react()],
plugins: [
react(),
svgr({
// svgr options: https://react-svgr.com/docs/options/
svgrOptions: { exportType: "default", ref: true, svgo: false, titleProp: true },
include: "**/*.svg",
})
],
build: {
outDir: 'build',
emptyOutDir: true,
Expand Down

0 comments on commit b8c5e49

Please sign in to comment.