Skip to content

Commit

Permalink
TASK: Remove alpine js in favor of splitted js submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
mficzel committed Jan 19, 2022
1 parent 812bb3e commit 0442456
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 31 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default (el: HTMLElement): void => {
el.addEventListener("click", (e) => (console.log("to implement")));
};
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ prototype(Vendor.WheelInventor:Block.ScrollToTop) < prototype(Neos.Fusion:Compon
@propTypes {
id = ${PropTypes.string.isRequired}
title = ${PropTypes.string.isRequired}
content = ${PropTypes.string.isRequired}
}

renderer = afx`
<button
id={props.id}
class="min-h-[48px] min-w-[48px] opacity-0 pointer-events-none cursor-pointer fixed right-0 bottom-0 bg-info transition-opacity"
class="cursor-pointer bg-info"
type="button"
title={props.title}
x-data="{...ScrollToTop()}"
x-spread="button"
>
{props.content}
</button>
`
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ prototype(Vendor.WheelInventor:Resource.BodyScripts) < prototype(Neos.Fusion:Arr
@process.addCacheBuster = ${value + '?cb=' + SitegeistKlarSchiffCacheBuster.get()}
}
}

alpine = '<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.min.js" defer></script>'
}

0 comments on commit 0442456

Please sign in to comment.