Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/gohugoioTheme2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-04 19:37:31 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-04 19:44:24 +0300
commitf0fb3adb7c1a05d4027508804135c0203e053870 (patch)
tree0c085e1567b08d42e87a462da12b0adb4d9ce31e
parentf7338d7c7bae566efd1758bbaceb16226b828652 (diff)
Update to AlpineJS 3.9.1
Also clean up the dependency setup.
-rw-r--r--assets/js/main/index.js9
-rw-r--r--exampleSite/go.mod4
-rw-r--r--exampleSite/go.sum3
-rw-r--r--go.mod6
-rw-r--r--go.sum7
5 files changed, 18 insertions, 11 deletions
diff --git a/assets/js/main/index.js b/assets/js/main/index.js
index efbb949..b761a36 100644
--- a/assets/js/main/index.js
+++ b/assets/js/main/index.js
@@ -1,9 +1,5 @@
import * as params from "@params";
-import {
- newNavStore,
- initColorScheme,
- bridgeTurboAndAlpine,
-} from "./nav/index";
+import { newNavStore, initColorScheme, bridgeTurboAndAlpine } from "./nav/index";
import Alpine from "jslibs/alpinejs/v3/alpinejs/dist/module.esm.js";
import intersect from "jslibs/alpinejs/v3/intersect/dist/module.esm.js";
import persist from "jslibs/alpinejs/v3/persist/dist/module.esm.js";
@@ -42,6 +38,9 @@ import persist from "jslibs/alpinejs/v3/persist/dist/module.esm.js";
Alpine.store("nav", newNavStore(Alpine));
}
+ // TODO1 remove me
+ window.Alpine = Alpine;
+
// Start Alpine.
Alpine.start();
diff --git a/exampleSite/go.mod b/exampleSite/go.mod
index dea9c16..9c50d4a 100644
--- a/exampleSite/go.mod
+++ b/exampleSite/go.mod
@@ -8,7 +8,5 @@ require github.com/gohugoio/hugoDocs v0.81.1-0.20220302165412-259c65c8d5b8
require (
github.com/gohugoio/gohugoioTheme2 v0.0.0-20220302165724-cf9a8cd9ad19 // indirect
- github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.500.100 // indirect
- github.com/gohugoio/hugo-mod-jslibs/instantpage v0.5.1 // indirect
- github.com/gohugoio/hugo-mod-jslibs/turbo/v7 v7.0.0-20220127163053-14169e3a1dd0 // indirect
+
)
diff --git a/exampleSite/go.sum b/exampleSite/go.sum
index 4e70921..7f9af09 100644
--- a/exampleSite/go.sum
+++ b/exampleSite/go.sum
@@ -1,5 +1,4 @@
github.com/gohugoio/gohugoioTheme v0.0.0-20210301124928-2c15837dfec3/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20220228085601-7cfbda06d135/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.500.100 h1:yIymGxglvwr9Guhk7cr9VoMQ3IgLLJ0E4PKcKCg+kJY=
github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.500.100/go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY=
github.com/gohugoio/hugo-mod-jslibs/instantpage v0.5.1 h1:Aig+0MOPXiuQNZpnxOMS4uwUsnyq41JnQzGW4Gk3o7Y=
@@ -10,8 +9,6 @@ github.com/gohugoio/hugo-mod-jslibs/turbo/v7 v7.0.0-20220127163053-14169e3a1dd0/
github.com/gohugoio/hugo-mod-jslibs/turbolinks v0.6.0/go.mod h1:0COpoSU/YogktyDLZn4aoXioJPq+f4jvdenIZj5ozMQ=
github.com/gohugoio/hugoDocs v0.81.1-0.20220302165412-259c65c8d5b8 h1:9WgKP9Fm63UFliMVhV2o4P2qZgiyGl0EUZZ838vltZY=
github.com/gohugoio/hugoDocs v0.81.1-0.20220302165412-259c65c8d5b8/go.mod h1:Mdx6XSpQEzpLP6vp0eDE0vcwvQF7wSVVDLMy4OH1VFQ=
-github.com/gohugoio/hugoDocs v0.93.1 h1:sF+2iZLiYGt/xnrhiK8TY74v740SCjS0or6ym4T5IZA=
-github.com/gohugoio/hugoDocs v0.93.1/go.mod h1:0onYkT4Fe1qF5OxwKdyKkb8KMj0EPi/PENTy4CSpOQI=
github.com/hotwired/turbo v7.0.1+incompatible/go.mod h1:6XcpYEC+j8xb7URpSYwhlq4iq98M5F5T/jaLWNHVbZs=
github.com/instantpage/instant.page v5.1.0+incompatible/go.mod h1:GXVDktwI+K4T9o5mcK2NYDqPFxAUrB9U9goR9oG1SaI=
github.com/ryangjchandler/spruce v2.6.4+incompatible/go.mod h1:pERscuhekU9NhSgrY8l7/0nLN1rBGBVnpvkMrVwGAZU=
diff --git a/go.mod b/go.mod
index c26bcc4..7cdd299 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,9 @@
module github.com/gohugoio/gohugoioTheme2
go 1.17
+
+require (
+ github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.900.100 // indirect
+ github.com/gohugoio/hugo-mod-jslibs/instantpage v0.5.1 // indirect
+ github.com/gohugoio/hugo-mod-jslibs/turbo/v7 v7.0.0-20220127163053-14169e3a1dd0 // indirect
+)
diff --git a/go.sum b/go.sum
new file mode 100644
index 0000000..36f5e60
--- /dev/null
+++ b/go.sum
@@ -0,0 +1,7 @@
+github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.900.100 h1:vEpD998c0khrykCrsDP+rG+1wxLDcMOAWZ2X0BpU5bM=
+github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.900.100/go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY=
+github.com/gohugoio/hugo-mod-jslibs/instantpage v0.5.1 h1:Aig+0MOPXiuQNZpnxOMS4uwUsnyq41JnQzGW4Gk3o7Y=
+github.com/gohugoio/hugo-mod-jslibs/instantpage v0.5.1/go.mod h1:N4EUbbL7Cw4Yq+GHeK3MUSiOJQbzfuUFRyvBKvnVBR8=
+github.com/gohugoio/hugo-mod-jslibs/turbo/v7 v7.0.0-20220127163053-14169e3a1dd0 h1:LZtJpLdrobw8A+Si1vF16Vfig9cY7+4MdbtKyXfiY4Y=
+github.com/gohugoio/hugo-mod-jslibs/turbo/v7 v7.0.0-20220127163053-14169e3a1dd0/go.mod h1:7YpZ5H9gE7M/Br+1g052hfMl6jZs1x+yU0hdJfSiB14=
+github.com/instantpage/instant.page v5.1.0+incompatible/go.mod h1:GXVDktwI+K4T9o5mcK2NYDqPFxAUrB9U9goR9oG1SaI=