Make some basic timer functionality

This commit is contained in:
2022-07-26 23:36:24 +02:00
parent 671e85e9c4
commit 7d42fff1fb
34 changed files with 255 additions and 53 deletions

11
.vscode/launch.json vendored
View File

@@ -23,10 +23,15 @@
"request": "launch",
"name": "Tauri Production Debug",
"cargo": {
"args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"]
"args": [
"build",
"--release",
"--manifest-path=./src-tauri/Cargo.toml"
]
},
// task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json`
"preLaunchTask": "ui:build"
}
},
]
}
}

45
.vscode/tasks.json vendored
View File

@@ -3,30 +3,43 @@
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "tauri:dev",
"type": "shell",
"command": "cargo",
"problemMatcher": [],
"args": [
"tauri",
"dev"
],
"icon": {
"id": "run"
},
},
{
"label": "ui:dev",
"type": "shell",
// `dev` keeps running in the background
// ideally you should also configure a `problemMatcher`
// see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson
"isBackground": true,
// change this to your `beforeDevCommand`:
"command": "npm",
"args": ["run", "dev"]
"problemMatcher": [],
"args": [
"run",
"dev",
"--",
"--clearScreen",
"false"
]
},
{
"label": "ui:build",
"group": "build",
"type": "shell",
// change this to your `beforeBuildCommand`:
"command": "npm",
"args": ["run", "build"],
},
{
"label": "full:dev",
"type": "shell",
"isBackground": true,
"command": "cargo",
"args": ["tauri", "dev"]
"problemMatcher": [],
"args": [
"run",
"build"
]
}
]
}
],
}