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
| <?php | |
| // Created 2024 by Gustav Neustadt | |
| // gustavneustadt.de | |
| // MIT License. See http://opensource.org/licenses/MIT | |
| // A PHP script tailored for the Kirby CMS that helps | |
| // to identify and remove unreferenced media files | |
| // along with their associated TXT files. | |
| // | |
| // Given a content file and a directory, the script |
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"> | |
| import { Tweened, tweened } from "svelte/motion" | |
| import { cubicInOut } from "svelte/easing" | |
| export let tween: Tweened<number> = null | |
| export let options: Intl.NumberFormatOptions = null | |
| export let locale: string | string[] = null | |
| export let formatter: Intl.NumberFormat = null | |
| export let startValue: number = null | |
| interface TweenOptions<T> { |
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 let width: number = 10 | |
| export let height: number = 10 | |
| export let r: [number, number, number, number]|[number, number]|number = 0 | |
| export let sharpness: number = 0.6 | |
| export let x: number = 0 | |
| export let y: number = 0 | |
| function getPath(w: number, h: number, radius: [number, number, number, number]|[number, number]|number, sharpness: number): string { |
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 context="module" lang="ts"> | |
| export interface LineEndFunction { | |
| (position: Point): string | |
| } | |
| export enum LineEnd { | |
| Line, | |
| LineOneSide, | |
| Dot, | |
| Arrow, | |
| None |
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 sumArrayOfObjects(group, template = null) { | |
| let templateCopy = { ...template} | |
| var objectBuffer = {} | |
| var templateBuffer = {} | |
| if(template) { | |
| let keys = Object.keys(template) | |
| let values = Object.values(template) | |
| let filteredIndexes = values.map((value, i) => { | |
| if(value instanceof Object) { | |
| return i |