ChatGPT-Next-Web icon indicating copy to clipboard operation
ChatGPT-Next-Web copied to clipboard

Client App Always on top [Tauri]

Open H0llyW00dzZ opened this issue 8 months ago • 7 comments

Ref : [Feature] Client APP always on top #2997

[+] chore(tauri): update tauri features and configuration

  • Update tauri features in Cargo.toml
  • Add "setAlwaysOnTop" feature in tauri.conf.json

H0llyW00dzZ avatar Oct 11 '23 17:10 H0llyW00dzZ

We can simply add a pin icon here:

image

You can find the icon at /app/icons/pin.svg

Yidadaa avatar Oct 12 '23 03:10 Yidadaa

for tauri api set always on top ?

H0llyW00dzZ avatar Oct 12 '23 03:10 H0llyW00dzZ

Sure, user clicks the pin button, and it will call the tauri api to toggle AlwaysOnTop status.

Yidadaa avatar Oct 12 '23 03:10 Yidadaa

@Yidadaa test now

H0llyW00dzZ avatar Oct 12 '23 03:10 H0llyW00dzZ

Bot detected the issue body's language is not English, translate it automatically.


@Yidadaa test now

Issues-translate-bot avatar Oct 12 '23 03:10 Issues-translate-bot

may you can fix this for runtime nodejs ⚠ Using edge runtime on a page currently disables static generation for that page

Build error occurred Error: Page "/api/cors/[...path]" is missing "generateStaticParams()" so it cannot be used with "output: export" config.

H0llyW00dzZ avatar Oct 12 '23 04:10 H0llyW00dzZ

@Yidadaa sorry this can't be done quickly

a doc in tauri its weird https://tauri.app/v1/api/js/window

this should be right

image

but when trying image

edited : something wrong in tauri, its should be function instead of install package just for set alwaysontop true or false like other api (example api notification)

H0llyW00dzZ avatar Oct 12 '23 07:10 H0llyW00dzZ