-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/hostd/frontend/src/main.js b/hostd/frontend/src/main.js
deleted file mode 100644
index e57db59..0000000
--- a/hostd/frontend/src/main.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import {createApp} from 'vue'
-import App from './App.vue'
-
-createApp(App).mount('#app')
diff --git a/hostd/frontend/src/style.css b/hostd/frontend/src/style.css
deleted file mode 100644
index 9e2231e..0000000
--- a/hostd/frontend/src/style.css
+++ /dev/null
@@ -1,12 +0,0 @@
-* {
- box-sizing: border-box;
-}
-
-html, body {
- width: 100%;
- height: 100%;
- overflow: hidden;
- background-color: rgba(27, 38, 54, 1);
- text-align: center;
- color: white;
-}
diff --git a/hostd/frontend/tsconfig.json b/hostd/frontend/tsconfig.json
new file mode 100644
index 0000000..99710e8
--- /dev/null
+++ b/hostd/frontend/tsconfig.json
@@ -0,0 +1,20 @@
+{
+ "compilerOptions": {
+ "target": "es5",
+ "lib": ["dom", "dom.iterable", "esnext"],
+ "allowJs": true,
+ "skipLibCheck": true,
+ "strict": true,
+ "forceConsistentCasingInFileNames": true,
+ "noEmit": true,
+ "esModuleInterop": true,
+ "module": "esnext",
+ "moduleResolution": "node",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "jsx": "preserve",
+ "incremental": true
+ },
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
+ "exclude": ["node_modules"]
+}
diff --git a/hostd/frontend/vite.config.js b/hostd/frontend/vite.config.js
deleted file mode 100644
index a30c338..0000000
--- a/hostd/frontend/vite.config.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import {defineConfig} from 'vite'
-import vue from '@vitejs/plugin-vue'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue()]
-})
diff --git a/hostd/main.go b/hostd/main.go
index 5686c3e..26c56c4 100644
--- a/hostd/main.go
+++ b/hostd/main.go
@@ -8,7 +8,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options/assetserver"
)
-//go:embed all:frontend/dist
+//go:embed all:frontend/out frontend/out/_next/static/*/* frontend/out/_next/static/*/*/*
var assets embed.FS
func main() {
@@ -17,7 +17,7 @@ func main() {
// Create application with options
err := wails.Run(&options.App{
- Title: "desktop",
+ Title: "hostd",
Width: 1024,
Height: 768,
AssetServer: &assetserver.Options{
diff --git a/hostd/wails.json b/hostd/wails.json
index 84f050a..a6c232e 100644
--- a/hostd/wails.json
+++ b/hostd/wails.json
@@ -1,15 +1,18 @@
{
"$schema": "https://wails.io/schemas/config.v2.json",
- "name": "hostd Desktop",
+ "name": "hostd",
"outputfilename": "hostd",
+ "assetdir": "frontend/out",
"frontend:install": "npm install",
- "frontend:build": "npm run build",
+ "frontend:build": "npm run export",
+ "frontend:dev": "echo dev",
+ "frontend:dev:build": "echo dev",
"frontend:dev:watcher": "npm run dev",
- "frontend:dev:serverUrl": "auto",
+ "frontend:dev:serverUrl": "http://localhost:3000",
"info": {
- "companyName": "Sia Foundation",
- "productName": "hostd desktop",
- "productVersion": "0.0.1"
+ "companyName": "Sia Foundation",
+ "productName": "hostd",
+ "productVersion": "0.0.1"
},
"author": {
"name": "Sia Foundation",
diff --git a/renterd/build/README.md b/renterd/build/README.md
deleted file mode 100644
index 1ae2f67..0000000
--- a/renterd/build/README.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# Build Directory
-
-The build directory is used to house all the build files and assets for your application.
-
-The structure is:
-
-* bin - Output directory
-* darwin - macOS specific files
-* windows - Windows specific files
-
-## Mac
-
-The `darwin` directory holds files specific to Mac builds.
-These may be customised and used as part of the build. To return these files to the default state, simply delete them
-and
-build with `wails build`.
-
-The directory contains the following files:
-
-- `Info.plist` - the main plist file used for Mac builds. It is used when building using `wails build`.
-- `Info.dev.plist` - same as the main plist file but used when building using `wails dev`.
-
-## Windows
-
-The `windows` directory contains the manifest and rc files used when building with `wails build`.
-These may be customised for your application. To return these files to the default state, simply delete them and
-build with `wails build`.
-
-- `icon.ico` - The icon used for the application. This is used when building using `wails build`. If you wish to
- use a different icon, simply replace this file with your own. If it is missing, a new `icon.ico` file
- will be created using the `appicon.png` file in the build directory.
-- `installer/*` - The files used to create the Windows installer. These are used when building using `wails build`.
-- `info.json` - Application details used for Windows builds. The data here will be used by the Windows installer,
- as well as the application itself (right click the exe -> properties -> details)
-- `wails.exe.manifest` - The main application manifest file.
\ No newline at end of file
diff --git a/renterd/build/darwin/Info.plist b/renterd/build/darwin/Info.plist
index 1ac529d..e7819a7 100644
--- a/renterd/build/darwin/Info.plist
+++ b/renterd/build/darwin/Info.plist
@@ -8,7 +8,7 @@