vfrontend

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Dispatcher flux.DispatcherInterface
	Watcher    flux.WatcherInterface
	Notifier   flux.NotifierInterface

	Editor *EditorStore
}

func (*App) Debug

func (a *App) Debug(message ...interface{})

func (*App) Delete

func (a *App) Delete(key interface{})

func (*App) Dispatch

func (a *App) Dispatch(action flux.ActionInterface) chan struct{}

func (*App) Fail

func (a *App) Fail(err error)

func (*App) Init

func (a *App) Init()

func (*App) Log

func (a *App) Log(message ...interface{})

func (*App) Logf

func (a *App) Logf(format string, args ...interface{})

func (*App) Watch

func (a *App) Watch(key interface{}, f func(done chan struct{}))

type ChangeTextAction

type ChangeTextAction struct {
	Text string
}

type Editor

type Editor struct {
	vecty.Core

	Text string `vecty:"prop"`
	// contains filtered or unexported fields
}

func NewEditor

func NewEditor(app *App, id, lang, text string, readonly bool, change func(string)) *Editor

func (*Editor) Mount

func (v *Editor) Mount()

func (*Editor) Render

func (v *Editor) Render() vecty.ComponentOrHTML

type EditorStore

type EditorStore struct {
	// contains filtered or unexported fields
}

func NewEditorStore

func NewEditorStore(app *App) *EditorStore

func (*EditorStore) Code

func (s *EditorStore) Code() string

func (*EditorStore) Handle

func (s *EditorStore) Handle(payload *flux.Payload) bool

func (*EditorStore) Html

func (s *EditorStore) Html() string

type Page

type Page struct {
	vecty.Core
	// contains filtered or unexported fields
}

func NewPage

func NewPage(app *App) *Page

func (*Page) Mount

func (v *Page) Mount()

func (*Page) Render

func (v *Page) Render() vecty.ComponentOrHTML

func (*Page) Unmount

func (v *Page) Unmount()

type UserChangedTextAction

type UserChangedTextAction struct {
	Text string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL