Skip to content

Commit

Permalink
Push new alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
ahqsoftwares committed Aug 10, 2024
1 parent ffb405d commit d686b96
Show file tree
Hide file tree
Showing 22 changed files with 523 additions and 554 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/icon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title>AHQ Store Mobile</title>
</head>

Expand Down
17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"@tauri-apps/api": "2.0.0-rc.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"framer-motion": "^11.2.10",
"lucide-react": "^0.424.0",
"framer-motion": "^11.3.24",
"lucide-react": "^0.427.0",
"mdui": "^2.1.2",
"react": "^18.3.1",
"react-colorful": "^5.6.1",
Expand All @@ -26,16 +26,15 @@
},
"devDependencies": {
"@tauri-apps/cli": "2.0.0-rc.1",
"@tauri-apps/plugin-http": "2.0.0-beta.6",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"autoprefixer": "^10.4.19",
"daisyui": "^4.12.2",
"autoprefixer": "^10.4.20",
"daisyui": "^4.12.10",
"meilisearch": "^0.41.0",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.4",
"typescript": "^5.4.5",
"vite": "^5.3.1"
"postcss": "^8.4.41",
"tailwindcss": "^3.4.9",
"typescript": "^5.5.4",
"vite": "^5.4.0"
}
}
353 changes: 170 additions & 183 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-plugin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "tauri-plugin-ahqstore"
version = "0.0.1"
authors = ["AHQ"]
description = ""
description = "The AHQ Store Core Plugin"
edition = "2021"
rust-version = "1.70"
exclude = ["/examples", "/webview-dist", "/webview-src", "/node_modules"]
Expand Down
2 changes: 1 addition & 1 deletion src-plugin/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const COMMANDS: &[&str] = &["ping", "execute"];
const COMMANDS: &[&str] = &["hello"];

fn main() {
tauri_plugin::Builder::new(COMMANDS)
Expand Down
13 changes: 0 additions & 13 deletions src-plugin/permissions/autogenerated/commands/execute.toml

This file was deleted.

13 changes: 13 additions & 0 deletions src-plugin/permissions/autogenerated/commands/hello.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Automatically generated - DO NOT EDIT!

"$schema" = "../../schemas/schema.json"

[[permission]]
identifier = "allow-hello"
description = "Enables the hello command without any pre-configured scope."
commands.allow = ["hello"]

[[permission]]
identifier = "deny-hello"
description = "Denies the hello command without any pre-configured scope."
commands.deny = ["hello"]
13 changes: 0 additions & 13 deletions src-plugin/permissions/autogenerated/commands/ping.toml

This file was deleted.

34 changes: 4 additions & 30 deletions src-plugin/permissions/autogenerated/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,51 +11,25 @@
<tr>
<td>

`ahqstore:allow-execute`
`ahqstore:allow-hello`

</td>
<td>

Enables the execute command without any pre-configured scope.
Enables the hello command without any pre-configured scope.

</td>
</tr>

<tr>
<td>

`ahqstore:deny-execute`
`ahqstore:deny-hello`

</td>
<td>

Denies the execute command without any pre-configured scope.

</td>
</tr>

<tr>
<td>

`ahqstore:allow-ping`

</td>
<td>

Enables the ping command without any pre-configured scope.

</td>
</tr>

<tr>
<td>

`ahqstore:deny-ping`

</td>
<td>

Denies the ping command without any pre-configured scope.
Denies the hello command without any pre-configured scope.

</td>
</tr>
Expand Down
22 changes: 4 additions & 18 deletions src-plugin/permissions/schemas/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -295,31 +295,17 @@
"type": "string",
"oneOf": [
{
"description": "allow-execute -> Enables the execute command without any pre-configured scope.",
"description": "allow-hello -> Enables the hello command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-execute"
"allow-hello"
]
},
{
"description": "deny-execute -> Denies the execute command without any pre-configured scope.",
"description": "deny-hello -> Denies the hello command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-execute"
]
},
{
"description": "allow-ping -> Enables the ping command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-ping"
]
},
{
"description": "deny-ping -> Denies the ping command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-ping"
"deny-hello"
]
}
]
Expand Down
8 changes: 7 additions & 1 deletion src-plugin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,15 @@ impl<R: Runtime, T: Manager<R>> crate::AHQStorePluginExt<R> for T {
}
}

#[tauri::command]
fn hello() -> &'static str {
"Hello World"
}

/// Initializes the plugin.
pub fn init<R: Runtime>() -> TauriPlugin<R> {
Builder::new("store-plugin")
Builder::new("ahqstore")
.invoke_handler(tauri::generate_handler![hello])
.setup(|app, api| {
#[cfg(mobile)]
let store_plugin = mobile::init(app, api)?;
Expand Down
Loading

0 comments on commit d686b96

Please sign in to comment.