-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reverted non needed changes and added dist from plugin so it runs wit…
…hout needing to do anything
- Loading branch information
Showing
8 changed files
with
30 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,5 @@ yarn.lock | |
Cargo.lock | ||
node_modules/ | ||
|
||
dist-js | ||
dist | ||
# dist-js | ||
# dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "tauri-plugin-safe-area-insets" | ||
version = "0.1.0" | ||
authors = [ "You" ] | ||
authors = [ "Ronald <[email protected]>" ] | ||
description = "" | ||
edition = "2021" | ||
rust-version = "1.77.2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict'; | ||
|
||
var core = require('@tauri-apps/api/core'); | ||
|
||
async function getInsets() { | ||
return await core.invoke("plugin:window-insets|get_insets"); | ||
} | ||
|
||
exports.getInsets = getInsets; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export interface Insets { | ||
top: number; | ||
bottom: number; | ||
left: number; | ||
right: number; | ||
} | ||
export declare function getInsets(): Promise<Insets>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { invoke } from '@tauri-apps/api/core'; | ||
|
||
async function getInsets() { | ||
return await invoke("plugin:window-insets|get_insets"); | ||
} | ||
|
||
export { getInsets }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters