Skip to content

Commit abb2108

Browse files
committed
Current working first draft application.
1 parent 6aae41f commit abb2108

Some content is hidden

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

61 files changed

+6494
-5
lines changed

.eslintrc.cjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'plugin:react-hooks/recommended',
8+
],
9+
ignorePatterns: ['dist', '.eslintrc.cjs'],
10+
parser: '@typescript-eslint/parser',
11+
plugins: ['react-refresh'],
12+
rules: {
13+
'react-refresh/only-export-components': [
14+
'warn',
15+
{ allowConstantExport: true },
16+
],
17+
},
18+
}

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# docs:
2+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: "npm"
7+
directory: "/"
8+
schedule:
9+
interval: "daily"
10+
allow:
11+
dependency-name: '@xyflow/react'
12+
dependency-name: 'reactflow'

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ dist-ssr
1313
*.local
1414

1515
*.pyc
16-
.venv
16+
.venv/*
17+
dist/*.exe
18+
build/*
1719

1820
# Editor directories and files
19-
.vscode/*
2021
!.vscode/extensions.json
2122
.idea
2223
.DS_Store

.vscode/launch.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "React Debug",
9+
"type": "msedge",
10+
"request": "launch",
11+
"url": "http://localhost:5173",
12+
"webRoot": "${workspaceFolder}/src",
13+
"preLaunchTask": "Start React Dev",
14+
"postDebugTask": "Stop React Dev"
15+
},
16+
{
17+
"name": "Python GQL Server",
18+
"type": "debugpy",
19+
"request": "launch",
20+
"module": "server.server"
21+
},
22+
{
23+
"name": "Python Debugger: Current File",
24+
"type": "debugpy",
25+
"request": "launch",
26+
"program": "${file}",
27+
"console": "integratedTerminal"
28+
},
29+
30+
]
31+
}

.vscode/tasks.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Build Windows Executable",
8+
"type": "shell",
9+
"command": "pyinstaller",
10+
"args": [
11+
"--onefile",
12+
"--noconsole",
13+
"--icon=favicon.ico",
14+
"flow.pyw"
15+
],
16+
"problemMatcher": []
17+
},
18+
{
19+
"label": "Node & Edge Type Seeder",
20+
"type": "shell",
21+
"command": "python",
22+
"args": [
23+
"-m",
24+
"server.db.seed_types"
25+
],
26+
"problemMatcher": []
27+
},
28+
{
29+
"label": "Start React Dev",
30+
"type": "shell",
31+
"command": "npm",
32+
"args": [
33+
"run",
34+
"dev"
35+
],
36+
"isBackground": true,
37+
"problemMatcher": {
38+
"owner": "custom",
39+
"pattern": [
40+
{
41+
"regexp": "^(ERROR|WARNING)\\s+(.*)$",
42+
"severity": 1,
43+
"message": 2
44+
},
45+
{
46+
"regexp": "^\\s+at\\s+(.*):(\\d+):(\\d+)$",
47+
"file": 1,
48+
"line": 2,
49+
"column": 3
50+
}
51+
],
52+
"background": {
53+
"activeOnStart": true,
54+
"beginsPattern": "starting dev server",
55+
"endsPattern": "ready in"
56+
}
57+
}
58+
},
59+
{
60+
"label": "Stop React Dev",
61+
"command": "echo ${input:terminate}",
62+
"type": "shell",
63+
"problemMatcher": []
64+
}
65+
],
66+
"inputs": [
67+
{
68+
"id": "terminate",
69+
"type": "command",
70+
"command": "workbench.action.tasks.terminate",
71+
"args": "Start React Dev"
72+
}
73+
]
74+
}

README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,39 @@ Using React Flow to create a flow control application, primarily for designing,
44

55
## Getting up and running
66

7-
Install the dependencies:
7+
Install the javascript dependencies:
88

99
```bash
1010
npm install # or `pnpm install` or `yarn install`
1111
```
1212

13-
Run the development server:
13+
Install the python dependencies:
14+
15+
```bash
16+
pip install -r requirements.txt
17+
```
18+
19+
Run the python server:
20+
21+
```bash
22+
python -m server.server
23+
```
24+
25+
Run the javascript development server:
1426

1527
```bash
1628
npm run dev
1729
```
1830

31+
## Building the app
32+
To build the app, run the following command:
33+
34+
```bash
35+
pyinstaller --onefile --noconsole --icon=favicon.ico flow.pyw
36+
```
37+
The executable will be in the `dist` folder.
38+
39+
1940
## Customizing the app:
2041

2142
- Create a new custom node inside `src/custom/`

data/application.db

1.84 MB
Binary file not shown.

desktop/__init__.py

Whitespace-only changes.

desktop/favicon.ico

14.7 KB
Binary file not shown.

desktop/favicon.png

1.27 MB
Loading

0 commit comments

Comments
 (0)