aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-03-22 20:11:57 +0700
committerShulhan <ms@kilabit.info>2024-03-22 20:12:34 +0700
commit62bf073d3d5b55a7e76cf5d9cebefdc9c00cbcee (patch)
treeecd71be835eea9fcadca2d1295c3f7dc9c11b371 /internal
parent4ec4ca7d83320151bdc1894f0b2a5d31661ad6b0 (diff)
downloadawwan-62bf073d3d5b55a7e76cf5d9cebefdc9c00cbcee.tar.xz
all: replace module "share" with "pakakeh.go"
The "share" project has been moved to SourceHut with new name "pakakeh.go".
Diffstat (limited to 'internal')
-rw-r--r--internal/cmd/www-awwan/main.go5
-rw-r--r--internal/cmd/www-awwan/memfs.go8
-rw-r--r--internal/internal.go10
-rw-r--r--internal/memfs_wui.go8
4 files changed, 18 insertions, 13 deletions
diff --git a/internal/cmd/www-awwan/main.go b/internal/cmd/www-awwan/main.go
index e78380a..3842587 100644
--- a/internal/cmd/www-awwan/main.go
+++ b/internal/cmd/www-awwan/main.go
@@ -14,9 +14,10 @@ import (
"path/filepath"
"syscall"
- "git.sr.ht/~shulhan/awwan/internal"
"git.sr.ht/~shulhan/ciigo"
- "github.com/shuLhan/share/lib/memfs"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
+
+ "git.sr.ht/~shulhan/awwan/internal"
)
const defAddress = `127.0.0.1:4358`
diff --git a/internal/cmd/www-awwan/memfs.go b/internal/cmd/www-awwan/memfs.go
index d4eca83..2cec5b7 100644
--- a/internal/cmd/www-awwan/memfs.go
+++ b/internal/cmd/www-awwan/memfs.go
@@ -1,9 +1,9 @@
-// Code generated by github.com/shuLhan/share/lib/memfs DO NOT EDIT.
+// Code generated by git.sr.ht/~shulhan/pakakeh.go/lib/memfs DO NOT EDIT.
package main
import (
- "github.com/shuLhan/share/lib/memfs"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
)
func generate__wui_doc() *memfs.Node {
@@ -211,7 +211,7 @@ func init() {
Opts: &memfs.Options{
Root: "_wui/doc",
MaxFileSize: 5242880,
- Includes: []string{
+ Includes: []string{
},
Excludes: []string{
`.*\.adoc$`,
@@ -219,7 +219,7 @@ func init() {
`^\..*`,
},
Embed: memfs.EmbedOptions{
- CommentHeader: ``,
+ CommentHeader: ``,
PackageName: "main",
VarName: "MemfsWww",
GoFileName: "internal/cmd/www-awwan/memfs.go",
diff --git a/internal/internal.go b/internal/internal.go
index 770f27a..bbaac0b 100644
--- a/internal/internal.go
+++ b/internal/internal.go
@@ -11,10 +11,10 @@ import (
"time"
"git.sr.ht/~shulhan/ciigo"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/mlog"
"github.com/evanw/esbuild/pkg/api"
esapi "github.com/evanw/esbuild/pkg/api"
- "github.com/shuLhan/share/lib/memfs"
- "github.com/shuLhan/share/lib/mlog"
)
// MemfsWui contains the embedded files under _wui for web-user interface.
@@ -189,7 +189,11 @@ func Watch() {
mlog.Errf(`%s %q: %s`, logp, ns.Node.Path, err)
continue
}
- node.Update(&ns.Node, 0)
+ err = node.Update(&ns.Node, 0)
+ if err != nil {
+ mlog.Errf(`%s %q: %s`, logp, ns.Node.Path, err)
+ continue
+ }
embedCount++
case strings.HasSuffix(ns.Node.SysPath, DocConvertOpts.HTMLTemplate):
diff --git a/internal/memfs_wui.go b/internal/memfs_wui.go
index 4c88cce..7188901 100644
--- a/internal/memfs_wui.go
+++ b/internal/memfs_wui.go
@@ -1,11 +1,11 @@
// SPDX-FileCopyrightText: 2021 M. Shulhan <ms@kilabit.info>
// SPDX-License-Identifier: GPL-3.0-or-later
-// Code generated by github.com/shuLhan/share/lib/memfs DO NOT EDIT.
+// Code generated by git.sr.ht/~shulhan/pakakeh.go/lib/memfs DO NOT EDIT.
package internal
import (
- "github.com/shuLhan/share/lib/memfs"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
)
func generate__wui() *memfs.Node {
@@ -245,7 +245,7 @@ func init() {
Opts: &memfs.Options{
Root: "_wui",
MaxFileSize: 5242880,
- Includes: []string{
+ Includes: []string{
`.*\.(css|js|html|jpg|png|ico)$`,
},
Excludes: []string{
@@ -255,7 +255,7 @@ func init() {
`_wui/wui`,
},
Embed: memfs.EmbedOptions{
- CommentHeader: `// SPDX-FileCopyrightText: 2021 M. Shulhan <ms@kilabit.info>
+ CommentHeader: `// SPDX-FileCopyrightText: 2021 M. Shulhan <ms@kilabit.info>
// SPDX-License-Identifier: GPL-3.0-or-later
`,
PackageName: "internal",