Skip to content

Commit

Permalink
Merge branch 'main' into submodule-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbe-joh authored Oct 24, 2024
2 parents 3c2ed0b + 46cea92 commit 69620d9
Show file tree
Hide file tree
Showing 80 changed files with 3,810 additions and 1,079 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ module.exports = {
settings: { react: { version: "18.2" } },
plugins: ["react", "react-refresh"],
rules: {
"no-unused-vars": [
"error",
{ "args": "none", "varsIgnorePattern": "^_" }
],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-no-target-blank": "off",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Install dependencies
run: npm ci

- name: Run lint
run: npm run lint
run: npm run lint -- --no-cache
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dist-ssr

# Editor directories and files
.vscode/*
.prettierignore
*.code-workspace
!.vscode/extensions.json
.idea
Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@
To get started with the development environment, follow these steps:

with terminal open root of repo, Type these commands

```
npm install
npm run dev -- --mode mockapi
```
to run without mock api use
```
npm run dev


```
This will install the necessary dependencies and start the development server.
You can access the client at http://localhost:5173/.

Expand All @@ -36,23 +39,19 @@ Caseworker:
email: user.caseworker@test.nu
Password: P4ssw0rd_for_Te5t+User
````
### Running the project with mock api
Instead of running the command npm run dev you should use following command:

npm run dev -- --mode mockapi

## Wiki
[Frontend wiki](https://github.com/noQ-sweden/noQ-Frontend/wiki)

### Troubleshooting


## Contributors
<a href="https://github.com/noQ-sweden/noQ-Frontend/graphs/contributors">
<img src="https://contrib.rocks/image?repo=noQ-sweden/noQ-Frontend" />
</a>

Made with [contrib.rocks](https://contrib.rocks).
Made with [contrib.rocks](https://contrib.rocks). .



2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/public/noQicon.svg" />
<link rel="icon" type="image/svg+xml" href="/noQicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>NoQ</title>
<link rel="stylesheet" href="./src/index.css" />
Expand Down
Loading

0 comments on commit 69620d9

Please sign in to comment.