Compare commits
4 Commits
v2023.4.20
...
v2023.4.20
Author | SHA1 | Date | |
---|---|---|---|
7b6e39088d | |||
9944a37670 | |||
78307b6850 | |||
2543386e5c |
8
Makefile
8
Makefile
@ -15,8 +15,8 @@ SHELL := bash
|
|||||||
|
|
||||||
build: build-edge-cli build-client-sdk-test-app
|
build: build-edge-cli build-client-sdk-test-app
|
||||||
|
|
||||||
watch:
|
watch: tools/modd/bin/modd
|
||||||
go run -mod=readonly github.com/cortesi/modd/cmd/modd@latest
|
tools/modd/bin/modd
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: test-go
|
test: test-go
|
||||||
@ -102,3 +102,7 @@ tools/yq/bin/yq:
|
|||||||
mkdir -p tools/yq/bin
|
mkdir -p tools/yq/bin
|
||||||
curl -L --output tools/yq/bin/yq https://github.com/mikefarah/yq/releases/download/v4.31.1/yq_linux_amd64
|
curl -L --output tools/yq/bin/yq https://github.com/mikefarah/yq/releases/download/v4.31.1/yq_linux_amd64
|
||||||
chmod +x tools/yq/bin/yq
|
chmod +x tools/yq/bin/yq
|
||||||
|
|
||||||
|
tools/modd/bin/modd:
|
||||||
|
mkdir -p tools/modd/bin
|
||||||
|
GOBIN=$(PWD)/tools/modd/bin go install -mod=readonly github.com/cortesi/modd/cmd/modd@latest
|
@ -367,7 +367,11 @@ func findMatchingDeviceAddress(ctx context.Context, from string, defaultAddr str
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
return ip.String(), nil
|
if ip.To4() == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
return ip.To4().String(), nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -375,6 +379,10 @@ func findMatchingDeviceAddress(ctx context.Context, from string, defaultAddr str
|
|||||||
}
|
}
|
||||||
|
|
||||||
func newAppRepository(host string, basePort uint64, manifests ...*app.Manifest) *appModuleMemory.Repository {
|
func newAppRepository(host string, basePort uint64, manifests ...*app.Manifest) *appModuleMemory.Repository {
|
||||||
|
if host == "" {
|
||||||
|
host = "127.0.0.1"
|
||||||
|
}
|
||||||
|
|
||||||
return appModuleMemory.NewRepository(
|
return appModuleMemory.NewRepository(
|
||||||
func(ctx context.Context, id app.ID, from string) (string, error) {
|
func(ctx context.Context, id app.ID, from string) (string, error) {
|
||||||
appIndex := 0
|
appIndex := 0
|
||||||
|
@ -10,18 +10,18 @@ Afficher le menu.
|
|||||||
|
|
||||||
Cacher le menu.
|
Cacher le menu.
|
||||||
|
|
||||||
### `setItem(name: string, label:string, options?: { iconUrl?: string, linkUrl?: string, order?: number })`
|
### `Edge.Menu.setItem(name: string, label:string, options?: { iconUrl?: string, linkUrl?: string, order?: number })`
|
||||||
|
|
||||||
Créer/mettre à jour l'item nommé de la section du menu associée à l'application.
|
Créer/mettre à jour l'item nommé de la section du menu associée à l'application.
|
||||||
|
|
||||||
### `removeItem(name: string)`
|
### `Edge.Menu.removeItem(name: string)`
|
||||||
|
|
||||||
Supprimer l'item de la section du menu associée à l'application.
|
Supprimer l'item de la section du menu associée à l'application.
|
||||||
|
|
||||||
### `setAppIconUrl(url: string)`
|
### `Edge.Menu.setAppIconUrl(url: string)`
|
||||||
|
|
||||||
Mettre à jour l'URL de l'icône de la section du menu associée à l'application.
|
Mettre à jour l'URL de l'icône de la section du menu associée à l'application.
|
||||||
|
|
||||||
### `setAppTitle(title: string)`
|
### `Edge.Menu.setAppTitle(title: string)`
|
||||||
|
|
||||||
Mettre à jour le titre de la section du menu associée à l'application.
|
Mettre à jour le titre de la section du menu associée à l'application.
|
Reference in New Issue
Block a user