Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add tray and menu javascript APIs and events, closes #6617 #7709

Merged
merged 70 commits into from
Nov 19, 2023

Commits on Aug 16, 2023

  1. Configuration menu
    Copy the full SHA
    4795408 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2023

  1. Configuration menu
    Copy the full SHA
    004a2e5 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2023

  1. Configuration menu
    Copy the full SHA
    ae721ce View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2023

  1. implement js menu events

    amrbashir committed Aug 26, 2023
    Configuration menu
    Copy the full SHA
    a8f64d6 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. Configuration menu
    Copy the full SHA
    cfe3b35 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f918bdb View commit details
    Browse the repository at this point in the history
  3. add anyhow error variant

    amrbashir committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    4f2cdb6 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. fix menu js implementation

    amrbashir committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    3daf2ec View commit details
    Browse the repository at this point in the history
  2. remove console.log

    amrbashir committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    2bd395e View commit details
    Browse the repository at this point in the history
  3. lint and clippy

    amrbashir committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    cff777d View commit details
    Browse the repository at this point in the history
  4. docs

    amrbashir committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    d24a48a View commit details
    Browse the repository at this point in the history
  5. fix cargo.toml

    amrbashir committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    4cdf9d2 View commit details
    Browse the repository at this point in the history
  6. generated files

    amrbashir committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    b4f8ce6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    99398f2 View commit details
    Browse the repository at this point in the history
  8. fix android and ios build

    amrbashir committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    46c0e7e View commit details
    Browse the repository at this point in the history
  9. change file

    amrbashir committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    cb3122b View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. change tag

    amrbashir authored Aug 30, 2023
    Configuration menu
    Copy the full SHA
    7e046d8 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2023

  1. Configuration menu
    Copy the full SHA
    28646c3 View commit details
    Browse the repository at this point in the history
  2. fmt

    amrbashir authored Sep 18, 2023
    Configuration menu
    Copy the full SHA
    432c5cd View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2023

  1. Apply suggestions from code review

    Co-authored-by: Lucas Fernandes Nogueira <[email protected]>
    amrbashir and lucasfernog authored Oct 11, 2023
    Configuration menu
    Copy the full SHA
    ebcafa2 View commit details
    Browse the repository at this point in the history
  2. Update core/tauri/src/resources/mod.rs

    Co-authored-by: Lucas Fernandes Nogueira <[email protected]>
    amrbashir and lucasfernog authored Oct 11, 2023
    Configuration menu
    Copy the full SHA
    efdb6ec View commit details
    Browse the repository at this point in the history
  3. Update core/tauri-macros/src/menu.rs

    Co-authored-by: Lucas Fernandes Nogueira <[email protected]>
    amrbashir and lucasfernog authored Oct 11, 2023
    Configuration menu
    Copy the full SHA
    7ac1157 View commit details
    Browse the repository at this point in the history
  4. Update core/tauri/src/resources/mod.rs

    Co-authored-by: Lucas Fernandes Nogueira <[email protected]>
    amrbashir and lucasfernog authored Oct 11, 2023
    Configuration menu
    Copy the full SHA
    ff7b46f View commit details
    Browse the repository at this point in the history
  5. Update core/tauri/src/resources/mod.rs

    Co-authored-by: Lucas Fernandes Nogueira <[email protected]>
    amrbashir and lucasfernog authored Oct 11, 2023
    Configuration menu
    Copy the full SHA
    11e6e21 View commit details
    Browse the repository at this point in the history
  6. Update core/tauri-macros/src/menu.rs

    Co-authored-by: Lucas Fernandes Nogueira <[email protected]>
    amrbashir and lucasfernog authored Oct 11, 2023
    Configuration menu
    Copy the full SHA
    97af23a View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2023

  1. Configuration menu
    Copy the full SHA
    0945ba1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    94ee625 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2023

  1. Configuration menu
    Copy the full SHA
    3869388 View commit details
    Browse the repository at this point in the history
  2. typo

    lucasfernog committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    c4b3ae4 View commit details
    Browse the repository at this point in the history
  3. use channels

    lucasfernog committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    90030a4 View commit details
    Browse the repository at this point in the history
  4. lint

    lucasfernog committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    6ab30d1 View commit details
    Browse the repository at this point in the history
  5. private constructors

    lucasfernog committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    d894b16 View commit details
    Browse the repository at this point in the history
  6. basic tray example

    lucasfernog committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    e974000 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2023

  1. Update core/tauri/src/resources/mod.rs [skip ci]

    Co-authored-by: Fabian-Lars <[email protected]>
    lucasfernog and FabianLars authored Oct 24, 2023
    Configuration menu
    Copy the full SHA
    37fb32d View commit details
    Browse the repository at this point in the history
  2. basic menu example

    lucasfernog committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    7a50dc6 View commit details
    Browse the repository at this point in the history
  3. process tray icon

    lucasfernog committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    03cee83 View commit details
    Browse the repository at this point in the history
  4. fix menu events

    lucasfernog committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    25d6a64 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1db6d62 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cf155cc View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. camelcase [skip ci]

    lucasfernog committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    c235e6f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2182548 View commit details
    Browse the repository at this point in the history
  3. fix menu example on macos

    lucasfernog committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    0d32edf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5126d30 View commit details
    Browse the repository at this point in the history
  5. fix popup on macos

    lucasfernog committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    b415c98 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2023

  1. lint [skip ci]

    lucasfernog committed Oct 29, 2023
    Configuration menu
    Copy the full SHA
    a402a0e View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2023

  1. Configuration menu
    Copy the full SHA
    46a38d1 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2023

  1. chore: cleanup

    amrbashir committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    1a7c737 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2023

  1. cleanup menu JS APIs

    amrbashir committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    b4838c5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ad44e6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d6d87f0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4f92ec4 View commit details
    Browse the repository at this point in the history
  5. generate bundle

    amrbashir committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    482d0e7 View commit details
    Browse the repository at this point in the history
  6. use explicit idents

    amrbashir committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    dcf231d View commit details
    Browse the repository at this point in the history
  7. fix api example port

    amrbashir committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    872da53 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e512ce9 View commit details
    Browse the repository at this point in the history
  9. update api example

    amrbashir committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    1cca05e View commit details
    Browse the repository at this point in the history
  10. licesne and lint

    amrbashir committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    423c811 View commit details
    Browse the repository at this point in the history
  11. fix build

    amrbashir committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    6d210be View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2023

  1. update api dist [skip ci]

    lucasfernog committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    1bbc2a2 View commit details
    Browse the repository at this point in the history
  2. fix predefined

    lucasfernog committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    dcae92e View commit details
    Browse the repository at this point in the history
  3. allow using objects directly for menu item construction for static menus

    allows something like:
    ```javascript
    await Menu.new({
      items: [
        { item: 'Copy' },
        { text: 'Something', action: () => console.log('something clicked') },
        {
          id: 'x',
          icon: '/home/lucas/projects/tauri/tauri/examples/.icons/32x32.png',
          text: 'Tauris',
          action: () => console.log('tauri clicked')
        },
        {
          checked: true,
          text: 'chec',
          action: () => console.log('chec clicked')
        },
        {
          text: 'Sub',
          items: [
            {
              item: 'Paste'
            },
            { text: 'subsubsub', action: () => console.log('sub clicked') }
          ]
        }
      ]
    })
    ```
    lucasfernog committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    d0eeaba View commit details
    Browse the repository at this point in the history
  4. fix mobile channel load

    lucasfernog committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    5f8b9d7 View commit details
    Browse the repository at this point in the history
  5. avoid panics

    lucasfernog committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    4c36993 View commit details
    Browse the repository at this point in the history
  6. inline MenuItemKind

    lucasfernog committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    b36a771 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    61a3639 View commit details
    Browse the repository at this point in the history
  8. fix pre-commit hook

    lucasfernog committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    d97086d View commit details
    Browse the repository at this point in the history
  9. camel case

    lucasfernog committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    8eb4cda View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8883bf5 View commit details
    Browse the repository at this point in the history
  11. fix items(), get()

    lucasfernog committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    2a156f2 View commit details
    Browse the repository at this point in the history
  12. fix example [skip ci]

    lucasfernog committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    5369a9b View commit details
    Browse the repository at this point in the history