@flightdev/desktop 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +7 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @flightdev/desktop
|
|
2
2
|
|
|
3
3
|
Desktop app support for Flight Framework via Tauri. Build Windows, macOS, and Linux apps with the same codebase.
|
|
4
4
|
|
|
@@ -19,7 +19,7 @@ Desktop app support for Flight Framework via Tauri. Build Windows, macOS, and Li
|
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
21
|
# Core package
|
|
22
|
-
npm install @
|
|
22
|
+
npm install @flightdev/desktop
|
|
23
23
|
|
|
24
24
|
# Install Tauri CLI and plugins you need
|
|
25
25
|
npm install @tauri-apps/cli @tauri-apps/api
|
|
@@ -34,7 +34,7 @@ npm install @tauri-apps/plugin-clipboard-manager # Optional
|
|
|
34
34
|
### React
|
|
35
35
|
|
|
36
36
|
```tsx
|
|
37
|
-
import { usePlatform, useWindow, useFileSystem, useDialog } from '@
|
|
37
|
+
import { usePlatform, useWindow, useFileSystem, useDialog } from '@flightdev/desktop/react';
|
|
38
38
|
|
|
39
39
|
function App() {
|
|
40
40
|
const { isDesktop, isMac, isWindows } = usePlatform();
|
|
@@ -69,7 +69,7 @@ function App() {
|
|
|
69
69
|
|
|
70
70
|
```vue
|
|
71
71
|
<script setup>
|
|
72
|
-
import { usePlatform, useWindow, useDialog } from '@
|
|
72
|
+
import { usePlatform, useWindow, useDialog } from '@flightdev/desktop/vue';
|
|
73
73
|
|
|
74
74
|
const { isDesktop, isMac } = usePlatform();
|
|
75
75
|
const { minimize, maximize, close, isMaximized } = useWindow();
|
|
@@ -152,7 +152,7 @@ await openPath('/path/to/folder');
|
|
|
152
152
|
|
|
153
153
|
```typescript
|
|
154
154
|
// tauri.conf.json helper
|
|
155
|
-
import { defineDesktopConfig } from '@
|
|
155
|
+
import { defineDesktopConfig } from '@flightdev/desktop/config';
|
|
156
156
|
|
|
157
157
|
export default defineDesktopConfig({
|
|
158
158
|
identifier: 'com.example.myapp',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flightdev/desktop",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Desktop app support for Flight Framework via Tauri - Windows, macOS, Linux",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flight",
|
|
@@ -79,6 +79,12 @@
|
|
|
79
79
|
"optional": true
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
|
+
"homepage": "https://github.com/EliosLT/FlightDev",
|
|
83
|
+
"repository": {
|
|
84
|
+
"url": "https://github.com/EliosLT/FlightDev.git",
|
|
85
|
+
"directory": "packages/desktop",
|
|
86
|
+
"type": "git"
|
|
87
|
+
},
|
|
82
88
|
"scripts": {
|
|
83
89
|
"build": "tsup",
|
|
84
90
|
"dev": "tsup --watch",
|