Skip to content

Commit

Permalink
Links open default browser
Browse files Browse the repository at this point in the history
  • Loading branch information
samwillis committed Jan 31, 2024
1 parent 7707a83 commit a6bd842
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 4 deletions.
74 changes: 74 additions & 0 deletions examples/tauri-postgres/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/tauri-postgres/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ tauri-build = { version = "1.4.0", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.4.0", features = [ "shell-sidecar", "devtools"] }
tauri = { version = "1.4.0", features = [ "shell-open", "shell-sidecar", "devtools"] }
sqlx = { version = "0.7.0", features = ["runtime-tokio", "postgres"] }
tokio = { version = "1.29.1", features = ["full"] }
log = "0.4.19"
Expand Down
3 changes: 2 additions & 1 deletion examples/tauri-postgres/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"scope": [
{ "name": "ollama", "sidecar": true }
],
"sidecar": true
"sidecar": true,
"open": true
}
},
"bundle": {
Expand Down
6 changes: 5 additions & 1 deletion examples/tauri-postgres/src/components/LeftMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ function LeftMenu() {

{/* bottom group */}
<div className="flex flex-col px-2 pb-2 text-gray-500 mt-7">
<a className="inline-flex" href="https://electric-sql.com/">
<a
className="inline-flex"
href="https://electric-sql.com/"
target="_blank"
>
<ElectricIcon className="w-3 h-3 mr-2 mt-1 scale-150" />{' '}
ElectricSQL
</a>
Expand Down
5 changes: 4 additions & 1 deletion examples/tauri-postgres/src/components/ProfileMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,21 @@ export default function ProfileMenu({
<a
href="https://www.electric-sql.com"
className="flex items-center h-8 px-3 hover:bg-gray-100"
target="_blank"
>
Visit ElectricSQL
</a>
<a
href="https://www.electric-sql.com/docs"
className="flex items-center h-8 px-3 hover:bg-gray-100"
target="_blank"
>
Documentation
</a>
<a
href="https://github.com/electric-sql/electric/tree/main/examples/linearlite"
href="https://github.com/electric-sql/electric/tree/tauri-example-postgres/examples/tauri-postgres"
className="flex items-center h-8 px-3 hover:bg-gray-100"
target="_blank"
>
GitHub
</a>
Expand Down

0 comments on commit a6bd842

Please sign in to comment.