Skip to content

Commit

Permalink
Update parser and bindings generation
Browse files Browse the repository at this point in the history
Update tests
  • Loading branch information
leaanthony committed Nov 5, 2023
1 parent 075eb1f commit 857bf40
Show file tree
Hide file tree
Showing 25 changed files with 1,526 additions and 1,504 deletions.
3 changes: 2 additions & 1 deletion mkdocs-website/docs/en/API/application.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Application

The application API assists in creating an application using the Wails framework.
The application API assists in creating an application using the Wails
framework.

### New

Expand Down
2,054 changes: 962 additions & 1,092 deletions mkdocs-website/docs/en/API/fullapi.md

Large diffs are not rendered by default.

20 changes: 13 additions & 7 deletions mkdocs-website/docs/en/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- [darwin] add Event ApplicationShouldHandleReopen to able handle dock icon click by @5aaee9 in [#2991](https://github.com/wailsapp/wails/pull/2991)
- [darwin] add getPrimaryScreen/getScreens to impl by @tmclane in [#2618](https://github.com/wailsapp/wails/pull/2618)
- [darwin] add Event ApplicationShouldHandleReopen to able handle dock icon
click by @5aaee9 in [#2991](https://github.com/wailsapp/wails/pull/2991)
- [darwin] add getPrimaryScreen/getScreens to impl by @tmclane in
[#2618](https://github.com/wailsapp/wails/pull/2618)

### Fixed

- Fixed Doctor apt package verify by [Atterpac](https://github.com/Atterpac) in [#2972](https://github.com/wailsapp/wails/pull/2972).
- Fixed application frozen when quit (Darwin) by @5aaee9 in [#2982](https://github.com/wailsapp/wails/pull/2982)
- Fixed background colours of examples on Windows by [mmgvh](https://github.com/mmghv) in [#2750](https://github.com/wailsapp/wails/pull/2750).
- Fixed default context menus by [mmgvh](https://github.com/mmghv) in [#2753](https://github.com/wailsapp/wails/pull/2753).

- Fixed Doctor apt package verify by [Atterpac](https://github.com/Atterpac) in
[#2972](https://github.com/wailsapp/wails/pull/2972).
- Fixed application frozen when quit (Darwin) by @5aaee9 in
[#2982](https://github.com/wailsapp/wails/pull/2982)
- Fixed background colours of examples on Windows by
[mmgvh](https://github.com/mmghv) in
[#2750](https://github.com/wailsapp/wails/pull/2750).
- Fixed default context menus by [mmgvh](https://github.com/mmghv) in
[#2753](https://github.com/wailsapp/wails/pull/2753).

### Changed

Expand Down
4 changes: 2 additions & 2 deletions mkdocs-website/docs/en/development/changes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Changes for v3

!!! note
This is currently an unsorted brain dump of changes. It will be organised into a more readable format soon.
!!! note This is currently an unsorted brain dump of changes. It will be
organised into a more readable format soon.

## Options

Expand Down
13 changes: 7 additions & 6 deletions mkdocs-website/docs/en/development/introduction.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Introduction

!!! note
This guide is a work in progress.
!!! note This guide is a work in progress.

Thanks for wanting to help out with development of Wails! This guide will help
you get started.
Expand Down Expand Up @@ -48,8 +47,10 @@ The project has the following structure:

### Alpha Todo List

We are currently tracking known issues and tasks in the [Alpha Todo List](https://github.com/orgs/wailsapp/projects/6).
If you want to help out, please check this list and follow the instructions in the [Feedback](../getting-started/feedback.md) page.
We are currently tracking known issues and tasks in the
[Alpha Todo List](https://github.com/orgs/wailsapp/projects/6). If you want to
help out, please check this list and follow the instructions in the
[Feedback](../getting-started/feedback.md) page.

### Adding window functionality

Expand Down Expand Up @@ -140,8 +141,8 @@ The `InjectJS()` method returns JavaScript that should be injected into all
windows as they are created. This is useful for adding custom JavaScript
functions that complement the plugin.

The built-in plugins can be found in the `v3/plugins` directory.
Check them out for inspiration.
The built-in plugins can be found in the `v3/plugins` directory. Check them out
for inspiration.

## Tasks

Expand Down
41 changes: 20 additions & 21 deletions mkdocs-website/docs/en/development/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Status of features in v3.
Application interface methods

| Method | Windows | Linux | Mac | Notes |
|---------------------------------------------------------------|---------|-------|-----|-------|
| ------------------------------------------------------------- | ------- | ----- | --- | ----- |
| run() error | Y | Y | Y | |
| destroy() | | Y | Y | |
| setApplicationMenu(menu \*Menu) | Y | Y | Y | |
Expand All @@ -36,7 +36,7 @@ Application interface methods
Webview Window Interface Methods

| Method | Windows | Linux | Mac | Notes |
|----------------------------------------------------|---------|-------|-----|------------------------------------------|
| -------------------------------------------------- | ------- | ----- | --- | ---------------------------------------- |
| center() | Y | Y | Y | |
| close() | y | Y | Y | |
| destroy() | | Y | Y | |
Expand Down Expand Up @@ -90,15 +90,15 @@ Webview Window Interface Methods
### Application

| Feature | Windows | Linux | Mac | Notes |
|---------|---------|-------|-----|-------|
| ------- | ------- | ----- | --- | ----- |
| Quit | Y | Y | Y | |
| Hide | Y | | Y | |
| Show | Y | | Y | |

### Dialogs

| Feature | Windows | Linux | Mac | Notes |
|----------|---------|-------|-----|-------|
| -------- | ------- | ----- | --- | ----- |
| Info | Y | Y | Y | |
| Warning | Y | Y | Y | |
| Error | Y | Y | Y | |
Expand All @@ -109,14 +109,14 @@ Webview Window Interface Methods
### Clipboard

| Feature | Windows | Linux | Mac | Notes |
|---------|---------|-------|-----|-------|
| ------- | ------- | ----- | --- | ----- |
| SetText | Y | | Y | |
| Text | Y | | Y | |

### ContextMenu

| Feature | Windows | Linux | Mac | Notes |
|------------------|---------|-------|-----|-------|
| ---------------- | ------- | ----- | --- | ----- |
| OpenContextMenu | Y | | Y | |
| On By Default | | | | |
| Control via HTML | Y | | | |
Expand All @@ -134,15 +134,15 @@ show the context menu unless it is explicitly set with
### Screens

| Feature | Windows | Linux | Mac | Notes |
|------------|---------|-------|-----|-------|
| ---------- | ------- | ----- | --- | ----- |
| GetAll | Y | Y | Y | |
| GetPrimary | Y | Y | Y | |
| GetCurrent | Y | Y | Y | |

### System

| Feature | Windows | Linux | Mac | Notes |
|------------|---------|-------|-----|-------|
| ---------- | ------- | ----- | --- | ----- |
| IsDarkMode | | | Y | |

### Window
Expand All @@ -152,7 +152,7 @@ Y = Supported U = Untested
- = Not available

| Feature | Windows | Linux | Mac | Notes |
|---------------------|---------|-------|-----|--------------------------------------------------------------------------------------|
| ------------------- | ------- | ----- | --- | ------------------------------------------------------------------------------------ |
| Center | Y | Y | Y | |
| Focus | Y | Y | | |
| FullScreen | Y | Y | Y | |
Expand Down Expand Up @@ -190,7 +190,7 @@ applied when the window is created. An 'X' indicates that the option is not
supported by the platform.

| Feature | Windows | Linux | Mac | Notes |
|---------------------------------|---------|-------|-----|--------------------------------------------|
| ------------------------------- | ------- | ----- | --- | ------------------------------------------ |
| AlwaysOnTop | Y | | | |
| BackgroundColour | Y | Y | | |
| BackgroundType | | | | Acrylic seems to work but the others don't |
Expand Down Expand Up @@ -230,13 +230,13 @@ To log or not to log? System logger vs custom logger.
## Menu

| Event | Windows | Linux | Mac | Notes |
|--------------------------|---------|-------|-----|-------|
| ------------------------ | ------- | ----- | --- | ----- |
| Default Application Menu | Y | Y | Y | |

## Tray Menus

| Feature | Windows | Linux | Mac | Notes |
|--------------------|---------|-------|-----|----------------------------------------------------------------------|
| ------------------ | ------- | ----- | --- | -------------------------------------------------------------------- |
| Icon | Y | | Y | Windows has default icons for light/dark mode & supports PNG or ICO. |
| Label | - | | Y | |
| Label (ANSI Codes) | - | | | |
Expand All @@ -245,7 +245,7 @@ To log or not to log? System logger vs custom logger.
### Methods

| Method | Windows | Linux | Mac | Notes |
|-------------------------------|---------|-------|-----|-------|
| ----------------------------- | ------- | ----- | --- | ----- |
| setLabel(label string) | - | | Y | |
| run() | Y | | Y | |
| setIcon(icon []byte) | Y | | Y | |
Expand All @@ -260,7 +260,7 @@ To log or not to log? System logger vs custom logger.
Mapping native events to cross-platform events.

| Event | Windows | Linux | Mac | Notes |
|--------------------------|---------|-------|-----------------|-------|
| ------------------------ | ------- | ----- | --------------- | ----- |
| WindowWillClose | | | WindowWillClose | |
| WindowDidClose | | | | |
| WindowDidResize | | | | |
Expand All @@ -284,7 +284,7 @@ Contains a lot needed for development.
## Theme

| Mode | Windows | Linux | Mac | Notes |
|--------|---------|-------|-----|-------|
| ------ | ------- | ----- | --- | ----- |
| Dark | Y | | | |
| Light | Y | | | |
| System | Y | | | |
Expand All @@ -302,7 +302,7 @@ All templates are working.
Built-in plugin support:

| Plugin | Windows | Linux | Mac | Notes |
|-----------------|---------|-------|-----|-------|
| --------------- | ------- | ----- | --- | ----- |
| Browser | Y | | Y | |
| KV Store | Y | Y | Y | |
| Log | Y | Y | Y | |
Expand All @@ -318,7 +318,7 @@ TODO:
## Packaging

| | Windows | Linux | Mac | Notes |
|-----------------|---------|-------|-----|-------|
| --------------- | ------- | ----- | --- | ----- |
| Icon Generation | Y | | Y | |
| Icon Embedding | Y | | Y | |
| Info.plist | - | | Y | |
Expand All @@ -329,7 +329,7 @@ TODO:
## Frameless Windows

| Feature | Windows | Linux | Mac | Notes |
|---------|---------|-------|-----|------------------------------------------------|
| ------- | ------- | ----- | --- | ---------------------------------------------- |
| Resize | Y | | Y | |
| Drag | Y | Y | Y | Linux - can always drag with `Meta`+left mouse |

Expand All @@ -340,7 +340,7 @@ TODO:
### Mac Options

| Feature | Default | Notes |
|-------------------------|-------------------|------------------------------------------------------|
| ----------------------- | ----------------- | ---------------------------------------------------- |
| Backdrop | MacBackdropNormal | Standard solid window |
| DisableShadow | false | |
| TitleBar | | Standard window decorations by default |
Expand All @@ -356,7 +356,7 @@ TODO:
### Windows Options

| Feature | Default | Notes |
|-----------------------------------|---------------|---------------------------------------------|
| --------------------------------- | ------------- | ------------------------------------------- |
| BackdropType | Solid | |
| DisableIcon | false | |
| Theme | SystemDefault | |
Expand Down Expand Up @@ -385,4 +385,3 @@ The examples can be compiled using the following command:
CGO_ENABLED=0 go build -tags purego

Note: things are currently not working after the refactor

7 changes: 4 additions & 3 deletions mkdocs-website/docs/en/getting-started/feedback.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Feedback

We welcome (and encourage) your feedback! Please search for existing tickets or posts before creating new ones.
Here are the different ways to provide feedback:
We welcome (and encourage) your feedback! Please search for existing tickets or
posts before creating new ones. Here are the different ways to provide feedback:

=== "Bugs"

Expand Down Expand Up @@ -35,7 +35,8 @@ Here are the different ways to provide feedback:
- Please *don't* just add comments like "+1" or "me too".
- Please feel free to comment if there is more to add to the post, such as "this bug also affect ARM builds" or "Another option would be to ....."

There is a list of known issues & work in progress can be found [here](https://github.com/orgs/wailsapp/projects/6).
There is a list of known issues & work in progress can be found
[here](https://github.com/orgs/wailsapp/projects/6).

## Things we are looking for feedback on

Expand Down
19 changes: 11 additions & 8 deletions mkdocs-website/docs/en/roadmap.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
**# Roadmap
\*\*# Roadmap

The roadmap is a living document and is subject to change. If you have any suggestions, please open an issue.
Each milestone will have a set of goals that we are aiming to achieve. These are subject to change.
The roadmap is a living document and is subject to change. If you have any
suggestions, please open an issue. Each milestone will have a set of goals that
we are aiming to achieve. These are subject to change.

## Alpha milestones

### Alpha 1

#### Goals

Alpha 1 is the initial release. It is intended to get feedback on the new API and to get people experimenting with it.
The main goal is to get most of the examples working on all platforms.
Alpha 1 is the initial release. It is intended to get feedback on the new API
and to get people experimenting with it. The main goal is to get most of the
examples working on all platforms.

#### Status

Expand All @@ -20,15 +22,16 @@ The main goal is to get most of the examples working on all platforms.

{{ read_csv("status.csv") }}

- Mac Dialogs work, however the file dialogs issue a warning that needs to be fixed.
- Mac Dialogs work, however the file dialogs issue a warning that needs to be
fixed.

#### TODO:

- [ ] Fix `+[CATransaction synchronize] called within transaction` warnings on Mac
- [ ] Fix `+[CATransaction synchronize] called within transaction` warnings on
Mac
- [ ] When hiding window, application terminates

### Alpha 2

- [ ] Most examples working on Linux
- [ ] Project creation via `wails init`

4 changes: 2 additions & 2 deletions mkdocs-website/docs/en/whats-new.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# What's new in v3?

!!! note
The features that will be included in the v3 release may change from this list.
!!! note The features that will be included in the v3 release may change from
this list.

## Multiple Windows

Expand Down
Loading

0 comments on commit 857bf40

Please sign in to comment.