Releases: icza/gowut
Gowut v1.4.0 public release
Changes and new features in v1.4.0:
-
New
SessIDCookieName()
andSetSessIDCookieName()
methods inServer
to get / set
the cookie name used to store the Gowut session ID. Useful if you plan to run
multiple Gowut servers on the same computer with the same app path (on different ports);
you can set different session ID cookie names so they won't collide (#42). -
Added
ETypeMouseDown
constant, identical toETypeMousedown
. -
Fixed an issue where
Table.Clear()
could panic if table containednil
components (#23). -
Mouse coordinates in events did not take the body's scroll offset into account, this is fixed now.
Event.Mouse()
andEvent.MouseWin()
now return proper coordinates.
Gowut v1.3.0 public release
Changes and new features in v1.3.0:
- Added
ListBox.Values()
andListBox.SetValues()
methods to read / change items of aListBox
. - Fixed a number of data race issues at server session handling.
- Moved the Showcase of Features live demo to: https://gowut-demo.herokuapp.com/show
Gowut v1.2.2 public release
Changes and new features in v1.2.2:
- Moved the Showcase of Features live demo to: http://iczapp.com:3434/gowut-demo/show
- Added
-appName
,-addr
and-autoOpen
flags to the Showcase of Features demo. - Added a missing check if a Server logger is set before using it.
- Optimized
Writer
.
Gowut v1.2.1 public release
Changes and new features in v1.2.1:
- Replaced home page with the Gowut Wiki:
https://github.com/icza/gowut/wiki - Changed copyright year.
- Other minor changes and improvements.
Gowut v1.2.0 public release
Changes and new features in v1.2.0:
- BREAKING CHANGES! Renamed several interfaces and methods to conform to Go
naming conventions. Gometalinter now gives 0 warnings.
Sorry. Better sooner than later. The changes are the following:Comp
Id()
=>ID()
Container
ById()
=>ByID()
HasUrl
=>HasURL
Url()
=>URL()
SetUrl()
=>SetURL()
Html
=>HTML
NewHtml()
=>NewHTML()
Html()
=>HTML()
SetHtml()
=>SetHTML()
Server
AppUrl()
=>AppURL()
AddRootHeadHtml()
=>AddRootHeadHTML()
RemoveRootHeadHtml()
=>RemoveRootHeadHTML()
Session
Id()
=>ID()
Window
AddHeadHtml()
=>AddHeadHTML()
RemoveHeadHtml()
=>RemoveHeadHTML()
SetFocusedCompId()
=>SetFocusedCompID()
- Renamed
github.com/icza/gowut/examples
to_examples
, making it excluded from
build tools by default. You can still run the examples using"go run"
. - Window list has been rewritten to use Gowut components.
- Encoded form of
AppPath
is used when specifying Cookie paths.
For details, see issue #27. - Session creation and removal messages are now only logged with
log.Println()
if no logger is set at theServer
.
For details, see icza/gowut.dev#7 - Development of gowut has moved from
gowut.dev
project to thedev
branch of
thegowut
project.
Gowut v1.1.2 public release
Changes and new features in v1.1.2:
- Many code optimization, code formatting and grammar fixing to have an A+ Go Report Card rating!
https://goreportcard.com/report/github.com/icza/gowut
Gowut v1.1.1 public release
Changes and new features in v1.1.1:
-Improvement: HTTP request and response writers are now exposed with Events
. See issue #19.
Not directly, but they are available after a type assertion. See HasRequestResponse
type.
-Fix: when something was selected in a ListBox
, it was impossible to deselect everything from the UI. See issue #20.
-Fix: open web page with xdg-open
in linux
-Other minor changes, improvements and optimization.
Gowut v1.1.0 public release
Changes and new features in v1.1.0:
- A new
SessMonitor
component which can be used to monitor and display session timeout and network connectivity at the client side without interacting with the session. - New method in
Server
:SetAppRootHandler()
.
With this you can now set your own logic to provide response to the app root path (when no window name is specified).
The default function renders the window list, including authenticated windows and session creators - with clickable links. - New method in
Window
:RemoveHeadHtml()
which removes an HTML head text that was previously added withAddHeadHtml()
. - New methods in
Server
:AddRootHeadHtml()
andRemoveRootHeadHtml()
.
These are similar toWindow.AddHeadHtml()
andWindow.RemoveHeadHtml()
, but these relate to extra head HTML text that are rendered for the window list page (app root). - Showcase of feature demo app improvements.
- Other minor changes, improvements and optimization.
Gowut v1.0.0 public release
Changes and new features in v1.0.0:
- Exported a new
Writer
which is used to render components.
A value of thisWriter
is passed toComp.Render()
.
It is now possible to use components implemented entirely by you (thisWriter
is the last piece that was not exported previously), or you can now change theRender()
implementation. - Renamed all identifiers (constants and variables) to conform to the Go naming conventions (from UPPER_CASE to CamelCase).
This is a backward incompatible change.
Renaming rule is simple and consistent, for exampleCLR_RED
=>ClrRed
,ETYPE_CLICK
=>ETypeClick
etc. - New methods in
Server
:SetHeader()
andHeader()
.
You can use these to set HTTP response headers that will be added to all responses.
For antecedent, see issue #10. Table.Add()
now only ensures the table has enough rows, and enough cells in the row.
Previously it calledTable.EnsureSize()
if the cell was nonexistent.- New methods in
Table
:Trim()
andTrimRow()
.
These come handy for example if the table contains cells where colspan > 1 is set.
By calling this method we can ensure no empty cells will be rendered at the end of such rows.
For antecedent, see issue #11. - Made changes to make it work on Google App Engine (GAE).
Gowut and the Gowut "Showcase of Features" demo app can now be run on GAE.
Live demo is available here: https://gowut-demo.appspot.com/show - Other minor changes, improvements and optimization.
Gowut v0.9.0 public release
Changes and new features in v0.9.0:
- Migration from
code.google.com
togithub.com
. Changed/replaced all URLs to point togithub.com
. - Fixed issue #4.
- Optimization.