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(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))processPreload(e);new MutationObserver(e=>{for(const t of e)if("childList"===t.type)for(const e of t.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&processPreload(e)}).observe(document,{childList:!0,subtree:!0})}function processPreload(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();window.snapScroll=({container:e,offset:t,debug:n=!1,animateIn:o,animateOut:l,initialElemState:i})=>{const s=Array.from(e.children);((e,t)=>{if(e instanceof Array||!(e instanceof HTMLElement))throw new Error("Invalid container");if(0===t.length)throw new Error("No child elements fou |
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 * as THREE from 'three'; | |
| import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; | |
| import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry.js'; | |
| import { FontLoader } from 'three/examples/jsm/loaders/FontLoader.js'; | |
| import dat from 'dat.gui'; | |
| import Stats from 'three/examples/jsm/libs/stats.module.js'; | |
| const createWorkerFromText = (workerCode: string) => { | |
| // Create a blob from the code |
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
| @Composable | |
| fun Drawer( | |
| isOpen: Boolean, | |
| toggleDrawer: () -> Unit, | |
| content: @Composable () -> Unit, | |
| containerModifier: Modifier = Modifier, | |
| ) { | |
| val screenSize = ScreenSize.collectAsStateWithLifecycle() | |
| var isReallyOpen by remember { mutableStateOf(isOpen) } | |
| var isContainerDisappearing by remember { mutableStateOf(false) } |
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 { z, ZodSchema } from 'zod' | |
| import type { AllSocketTypes } from '../types' | |
| import { logErr } from './logErr' | |
| /** | |
| * onIO is a utility to handle on input from socket.io | |
| * | |
| * @example | |
| * onIO().input(z.string()).on(io, 'connection', (input) => { | |
| * console.log(input) // input is inferred as 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
| import type { BroadcastOperator, Namespace, Server, Socket } from 'socket.io' | |
| import { z, ZodSchema } from 'zod' | |
| import { logErr } from '@/utils' | |
| import type { AllSocketTypes } from '@/types' | |
| /** | |
| * emitIO is a utility to emit data to a socket.io client. | |
| * | |
| * @example | |
| * emitIO().output(z.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
| import androidx.compose.foundation.Canvas | |
| import androidx.compose.foundation.background | |
| import androidx.compose.foundation.gestures.detectDragGestures | |
| import androidx.compose.foundation.gestures.detectDragGesturesAfterLongPress | |
| import androidx.compose.foundation.layout.Box | |
| import androidx.compose.foundation.layout.PaddingValues | |
| import androidx.compose.foundation.layout.Spacer | |
| import androidx.compose.foundation.layout.fillMaxSize | |
| import androidx.compose.foundation.layout.fillMaxWidth | |
| import androidx.compose.foundation.layout.height |
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 org.example.dragdrop | |
| import androidx.compose.foundation.Canvas | |
| import androidx.compose.foundation.background | |
| import androidx.compose.foundation.gestures.awaitEachGesture | |
| import androidx.compose.foundation.gestures.detectDragGestures | |
| import androidx.compose.foundation.gestures.detectDragGesturesAfterLongPress | |
| import androidx.compose.foundation.layout.Box | |
| import androidx.compose.foundation.layout.Column | |
| import androidx.compose.foundation.layout.Row |
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 androidx.compose.foundation.layout.Box | |
| import androidx.compose.foundation.layout.height | |
| import androidx.compose.foundation.text.BasicTextField | |
| import androidx.compose.material3.MaterialTheme | |
| import androidx.compose.material3.Text | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.runtime.getValue | |
| import androidx.compose.runtime.mutableIntStateOf | |
| import androidx.compose.runtime.mutableStateOf | |
| import androidx.compose.runtime.remember |
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 org.bloomy.project.core.composables | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.ui.layout.Layout | |
| import org.bloomy.project.core.theme.ScreenSize | |
| /** | |
| * Composable that allows to place content in a specific position. | |
| */ | |
| @Composable |
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 org.bloomy.project.core.composables | |
| import androidx.compose.foundation.layout.Box | |
| import androidx.compose.foundation.layout.fillMaxSize | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.ui.Modifier | |
| import androidx.compose.ui.window.Dialog | |
| import androidx.compose.ui.window.DialogProperties | |
| /** |
NewerOlder