mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-29 02:21:41 +00:00
[PhotonClient] Vite and Typescript complete refactor (#884)
This commit is contained in:
@@ -72,16 +72,9 @@ task copyClientUIToResources(type: Copy) {
|
||||
into "${projectDir}/src/main/resources/web/"
|
||||
}
|
||||
|
||||
task copyThinclientToResources(type: Copy) {
|
||||
from "${projectDir}/../photon-thinclient/"
|
||||
into "${projectDir}/src/main/resources/web/"
|
||||
}
|
||||
|
||||
|
||||
task buildAndCopyUI {}
|
||||
|
||||
buildAndCopyUI.dependsOn copyClientUIToResources
|
||||
buildAndCopyUI.dependsOn copyThinclientToResources
|
||||
copyClientUIToResources.dependsOn runNpmOnClient
|
||||
copyClientUIToResources.shouldRunAfter runNpmOnClient
|
||||
|
||||
|
||||
@@ -1 +1,15 @@
|
||||
<p>UI has not been copied!</p>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="./favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Photon Client</title>
|
||||
<script type="module" crossorigin src="./assets/index-09a9e0fa.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index-338da7f4.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user