From 69e8218d01e501d40bb4600ed7d08e22fde3f33c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 19 May 2022 15:32:44 +0200 Subject: Alpine Alpine 3.10.2 --- .prettierrc | 20 ++++++++++++++++++++ assets/js/controllers/toc.js | 4 +++- exampleSite/go.sum | 1 + go.mod | 2 +- go.sum | 2 ++ 5 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..bb762aa --- /dev/null +++ b/.prettierrc @@ -0,0 +1,20 @@ +{ + "overrides": [ + { + "files": ["*.html"], + "options": { + "parser": "go-template", + "goTemplateBracketSpacing": true, + "bracketSameLine": true + } + }, + { + "files": ["*.js", "*.ts"], + "options": { + "useTabs": true, + "printWidth": 120, + "singleQuote": true + } + } + ] +} diff --git a/assets/js/controllers/toc.js b/assets/js/controllers/toc.js index f19f491..4bcc45c 100644 --- a/assets/js/controllers/toc.js +++ b/assets/js/controllers/toc.js @@ -60,7 +60,9 @@ export function newToCController() { rowClass: function (row) { return { - class: `toc-h${row.level}${row.active ? ' active' : ''}${row.active_parent ? ' active-parent' : ''}`, + ['x-bind:class']() { + return `toc-h${row.level}${row.active ? ' active' : ''}${row.active_parent ? ' active-parent' : ''}`; + }, }; }, diff --git a/exampleSite/go.sum b/exampleSite/go.sum index 1ae5fb1..1fa4810 100644 --- a/exampleSite/go.sum +++ b/exampleSite/go.sum @@ -2,6 +2,7 @@ github.com/bep/docuapi/v2 v2.0.4 h1:TU6CzjdfiWI+D/d911r8ZQG7R8h64ayEaC6iWNbJ/NQ= github.com/bep/docuapi/v2 v2.0.4/go.mod h1:hoeibCSjXWJ/fLOwPSo8WZbgl5EO3zQjS/nrAs2v2Ro= 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-dist/alpinejs/v3 v3.21000.20200/go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY= github.com/olivernn/lunr.js v2.3.9+incompatible h1:eH8iBnjlR4mwlYDdNuqy9PCNLjp2bEs6aoNnTSaccx0= github.com/olivernn/lunr.js v2.3.9+incompatible/go.mod h1:yEkQ1DUSMtNsn8n2CqvQXZd0ErWPEG8g9QRmblR+KS8= github.com/slatedocs/slate v2.9.2+incompatible h1:PnIMTR1S7pE6tImIjF6ny9UaRrt6fukM93lwUwJPtjw= diff --git a/go.mod b/go.mod index a171184..1480e9f 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/bep/docuapi/v2 go 1.16 require ( - github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.500.100 // indirect + github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.21000.20200 // indirect github.com/olivernn/lunr.js v2.3.9+incompatible // indirect github.com/slatedocs/slate v2.9.2+incompatible // indirect ) diff --git a/go.sum b/go.sum index 649faa5..2cebf5d 100644 --- a/go.sum +++ b/go.sum @@ -2,6 +2,8 @@ github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.401.201 h1:rIBco2i/51nTP github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.401.201/go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY= 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-dist/alpinejs/v3 v3.21000.20200 h1:og3wJvy7wxSXWmr4gDmPb+7u70fz8v9H7kRa4S2apqM= +github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.21000.20200/go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY= github.com/olivernn/lunr.js v2.3.9+incompatible h1:eH8iBnjlR4mwlYDdNuqy9PCNLjp2bEs6aoNnTSaccx0= github.com/olivernn/lunr.js v2.3.9+incompatible/go.mod h1:yEkQ1DUSMtNsn8n2CqvQXZd0ErWPEG8g9QRmblR+KS8= github.com/slatedocs/slate v2.9.2+incompatible h1:PnIMTR1S7pE6tImIjF6ny9UaRrt6fukM93lwUwJPtjw= -- cgit v1.2.3