Skip to content

Commit 4fcb117

Browse files
authored
Merge pull request #74 from ProvideQ/feat/strategy-nodes
Strategy nodes
2 parents bb57162 + d89a370 commit 4fcb117

62 files changed

Lines changed: 4679 additions & 4194 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
NEXT_PUBLIC_API_BASE_URL=http://localhost:8080
2+
NEXT_PUBLIC_MSS_EDITOR_BASE_URL=http://localhost:5173
3+
NEXT_PUBLIC_MSS_API_BASE_URL=http://localhost:5000

.github/workflows/ci-cd-develop.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
- name: Set up node
1616
uses: actions/setup-node@v4
1717
with:
18-
node-version: 16
18+
node-version: ">=18.14.0"
19+
cache: "yarn"
1920
- name: Install dependencies
2021
run: yarn install
2122
- name: Run linter
@@ -30,7 +31,8 @@ jobs:
3031
- name: Set up node
3132
uses: actions/setup-node@v4
3233
with:
33-
node-version: 16
34+
node-version: ">=18.14.0"
35+
cache: "yarn"
3436
- name: Install dependencies
3537
run: yarn install
3638
- name: Run tests
@@ -45,7 +47,8 @@ jobs:
4547
- name: Set up node
4648
uses: actions/setup-node@v4
4749
with:
48-
node-version: 16
50+
node-version: ">=18.14.0"
51+
cache: "yarn"
4952
- name: Install dependencies
5053
run: yarn install
5154
- name: Run tests

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
/.next/
1313
/out/
1414

15+
# yarn
16+
/.yarn/
17+
1518
# production
1619
/build
1720

CITATION.bib

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
@article{eichhorn2025provideq,
2-
title = {ProvideQ: A Quantum Optimization Toolbox},
3-
author = {Eichhorn, Domenik and Poser, Nick and Schweikart, Maximilian and Schaefer, Ina},
4-
journal = {arXiv preprint arXiv:2507.07649},
5-
year = {2025}
6-
}
1+
@inproceedings{eichhorn2025provideq,
2+
title={Provideq: A quantum optimization toolbox},
3+
author={Eichhorn, Domenik and Poser, Nick and Schweikart, Maximilian and Schaefer, Ina},
4+
booktitle={2025 IEEE International Conference on Quantum Software (QSW)},
5+
pages={206--214},
6+
year={2025},
7+
organization={IEEE}
8+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This repository contains the web frontend for the ProvideQ toolbox.
77

88
## Development setup
99

10-
1. Install [Node.js 16](https://nodejs.org/) (check with `node -v`)
10+
1. Install [Node.js](https://nodejs.org/) (check with `node -v`)
1111
2. Make sure that the [Yarn package manager is enabled](https://yarnpkg.com/getting-started/install) (check with `yarn -v`)
1212
3. Clone this repository
1313
4. Install dependencies: `yarn install`
@@ -37,6 +37,6 @@ This repository contains the web frontend for the ProvideQ toolbox.
3737

3838
## License
3939

40-
Copyright (c) 2022 - 2023 ProvideQ
40+
Copyright (c) 2022 - 2026 ProvideQ
4141

4242
This project is available under the [MIT License](./LICENSE)

__tests__/converter/dimacs/DimacsLogicalExpression.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import { regexNOT } from "../../../src/converter/dimacs/Syntax/LogicalExpression
66

77
function isEquivalentLogicalExpression(f1: string, f2: string) {
88
expect(f1.replace(regexNOT, "!").replace(regexBlank, "")).toBe(
9-
f2.replace(regexNOT, "!").replace(regexBlank, "")
9+
f2.replace(regexNOT, "!").replace(regexBlank, ""),
1010
);
1111
}
1212

1313
function isEquivalentDimacs(f1: string, f2: string) {
1414
expect(f1.replace(regexComment, "").replace(regexBlank, "")).toBe(
15-
f2.replace(regexComment, "").replace(regexBlank, "")
15+
f2.replace(regexComment, "").replace(regexBlank, ""),
1616
);
1717
}
1818

@@ -66,8 +66,8 @@ describe("Parsing", () => {
6666
(logicalExpression: string, dimacs: string) => {
6767
isEquivalentLogicalExpression(
6868
dimacsParser.parseLogicalExpression(dimacs),
69-
logicalExpression
69+
logicalExpression,
7070
);
71-
}
71+
},
7272
);
7373
});

eslint.config.mjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import nextVitals from "eslint-config-next/core-web-vitals";
2+
import { defineConfig, globalIgnores } from "eslint/config";
3+
4+
const eslintConfig = defineConfig([
5+
...nextVitals,
6+
// Override default ignores of eslint-config-next.
7+
globalIgnores([
8+
// Default ignores of eslint-config-next:
9+
".next/**",
10+
"out/**",
11+
"build/**",
12+
"next-env.d.ts",
13+
]),
14+
]);
15+
16+
export default eslintConfig;

package.json

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint && prettier --check .",
9+
"lint": "eslint && prettier --check .",
1010
"format": "prettier --write .",
1111
"test": "jest"
1212
},
@@ -15,29 +15,32 @@
1515
"@emotion/react": "11",
1616
"@emotion/styled": "11",
1717
"@jlguenego/lexer": "^1.5.0",
18-
"framer-motion": "6",
19-
"next": "12.2.5",
20-
"prismjs": "^1.29.0",
21-
"react": "18.2.0",
22-
"react-dom": "18.2.0",
23-
"react-icons": "^4.4.0",
18+
"framer-motion": "^12.33.0",
19+
"next": "16.1.6",
20+
"prismjs": "^1.30.0",
21+
"react": "19.2.4",
22+
"react-dom": "19.2.4",
23+
"react-icons": "^5.5.0",
2424
"react-multi-select-component": "^4.3.4",
25-
"react-simple-code-editor": "^0.13.0",
26-
"reactflow": "^11.10.3"
25+
"react-simple-code-editor": "^0.14.1",
26+
"reactflow": "^11.11.4"
2727
},
2828
"devDependencies": {
29-
"@testing-library/jest-dom": "^5.16.5",
30-
"@testing-library/react": "^13.4.0",
31-
"@types/node": "18.7.14",
29+
"@testing-library/jest-dom": "^6.9.1",
30+
"@testing-library/react": "^16.3.2",
31+
"@types/node": "25.2.1",
3232
"@types/prismjs": "^1.26.0",
33-
"@types/react": "18.0.18",
34-
"@types/react-dom": "18.0.6",
35-
"eslint": "8.23.0",
36-
"eslint-config-next": "12.2.5",
37-
"jest": "^29.1.1",
38-
"jest-environment-jsdom": "^29.1.1",
39-
"prettier": "2.8.8",
40-
"prettier-plugin-organize-imports": "^3.2.4",
41-
"typescript": "4.8.2"
33+
"@types/react": "19.2.13",
34+
"@types/react-dom": "19.2.3",
35+
"eslint": "^9.39.2",
36+
"eslint-config-next": "^16.1.6",
37+
"jest": "^30.2.0",
38+
"jest-environment-jsdom": "^30.2.0",
39+
"prettier": "^3.8.1",
40+
"prettier-plugin-organize-imports": "^4.3.0",
41+
"typescript": "^5.9.3"
42+
},
43+
"engines": {
44+
"node": ">=18.14.0"
4245
}
4346
}

src/api/ToolboxAPI.ts

Lines changed: 0 additions & 153 deletions
This file was deleted.

0 commit comments

Comments
 (0)