This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package cache | |
| import ( | |
| "bytes" | |
| "context" | |
| "crypto/sha256" | |
| "encoding/gob" | |
| "fmt" | |
| "sync" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package cacheloader | |
| import ( | |
| "bytes" | |
| "context" | |
| "crypto/sha256" | |
| "encoding/gob" | |
| "fmt" | |
| "sync" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { defaultPlugins, useClient } from 'villus' | |
| import { authPlugin } from './auth' | |
| import { ssrPlugin } from './ssr' | |
| export default defineNuxtPlugin((nuxtApp) => { | |
| const config = useRuntimeConfig() | |
| nuxtApp.hook('vue:setup', () => { | |
| useClient({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script lang="ts"> | |
| export enum BadgeLook { | |
| Success = 'success', | |
| Warning = 'warning', | |
| Danger = 'danger', | |
| Info = 'info', | |
| } | |
| </script> | |
| <script lang="ts" setup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.addEventListener('feedspring:render-complete', () => { | |
| const posts = document.querySelectorAll('[feedspring="post"]') | |
| const selectorReadMoreButton = '.code-button' | |
| const buttonExpandText = 'Hide' | |
| posts.forEach((post) => { | |
| const review = post.querySelector('[feed-field="review"]') | |
| if (review && review.scrollHeight > review.clientHeight) { | |
| const button = post.querySelector(selectorReadMoreButton) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "editor.fontFamily": "JetBrains Mono", | |
| "editor.fontLigatures": true, | |
| "editor.fontSize": 16, | |
| "workbench.colorTheme": "GitHub Light", | |
| "editor.formatOnSave": true, | |
| "editor.multiCursorModifier": "ctrlCmd", | |
| "editor.formatOnPaste": true, | |
| "editor.largeFileOptimizations": false, | |
| "[json]": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <ul> | |
| <li> | |
| Level 1 | |
| <ul> | |
| <li> | |
| Level 2 | |
| <ul> | |
| <li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Auto Rotate Webflow Tabs (Shared by @irishbuckley flowbase.co --> | |
| <script> | |
| var Webflow = Webflow || []; | |
| Webflow.push(function () { | |
| // Fix for Safari | |
| if (navigator.userAgent.includes("Safari")) { | |
| document.querySelectorAll(".tab-button").forEach((t)=>(t.focus=function(){const x=window.scrollX,y=window.scrollY;const f=()=>{setTimeout(()=>window.scrollTo(x,y),1);t.removeEventListener("focus",f)};t.addEventListener("focus",f);HTMLElement.prototype.focus.apply(this,arguments)})); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Plugin } from 'colord' | |
| declare module 'colord/colord' { | |
| interface Colord { | |
| contrasting(): Colord | |
| } | |
| } | |
| const plugin: Plugin = (ColordClass) => { | |
| ColordClass.prototype.contrasting = function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function useClickAway(callback) { | |
| const savedCallback = useRef() | |
| const ref = createRef() | |
| function handleClickOutside(event) { | |
| if (ref && ref.current && !ref.current.contains(event.target)) { | |
| savedCallback.current() | |
| } | |
| } | |
| useEffect( | |
| () => { |