file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
index_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/fontawesome.css
CSS
/*! * Font Awesome Free 5.1.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ .fa,.fab,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-var...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/regular.css
CSS
/*! * Font Awesome Free 5.1.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ @font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;src:url(../webfonts/fa-regular-400.eot);src:url(../webfonts/f...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/solid.css
CSS
/*! * Font Awesome Free 5.1.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ @font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;src:url(../webfonts/fa-solid-900.eot);src:url(../webfonts/fa-...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/svg-with-js.css
CSS
/*! * Font Awesome Free 5.1.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ .svg-inline--fa,svg:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa{display:inline-block;font-size:inherit;height:1em;vertical-al...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/v4-shims.css
CSS
/*! * Font Awesome Free 5.1.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ .fa.fa-glass:before { content: "\f000"; } .fa.fa-meetup { font-family: 'Font Awesome 5 Brands'; font-weight: 400; } .fa.fa-star-o { ...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/v4-shims.min.css
CSS
/*! * Font Awesome Free 5.1.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ .fa.fa-glass:before{content:"\f000"}.fa.fa-meetup{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-star-o{font-family:"Font Awesom...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/reveal-chalkboard/plugin.js
JavaScript
/***************************************************************** ** Author: Asvin Goel, goel@telematique.eu ** ** A plugin for reveal.js adding a chalkboard. ** ** Version: 2.1.0 ** ** License: MIT license (see LICENSE.md) ** ** Credits: ** Chalkboard effect by Mohamed Moustafa https://github.com/mmoustafa/...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/reveal-chalkboard/style.css
CSS
div.palette, div.boardhandle { position: absolute; /* height: 260px; margin: -130px 0 0 0px; */ top: 50%; transform: translateY(-50%); font-size: 24px; border-radius: 10px; border-top: 4px solid #222; border-right: 4px solid #222; border-bottom: 4px solid #222; background: black; transit...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/reveal-menu/menu.css
CSS
.slide-menu-wrapper { font-family: 'Source Sans Pro', Helvetica, sans-serif; } .slide-menu-wrapper .slide-menu { background-color: #333; z-index: 200; position: fixed; top: 0; width: 300px; height: 100%; /*overflow-y: scroll;*/ transition: transform 0.3s; font-size: 16px; font-weight: normal; } ...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/reveal-menu/menu.js
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).RevealMenu=t()}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/reveal-menu/quarto-menu.css
CSS
.slide-menu-wrapper .slide-tool-item { display: block; text-align: left; padding: 10px 18px; color: #aaa; cursor: pointer; border-top: solid 1px #555; } .slide-menu-wrapper .slide-tool-item a { text-decoration: none; } .slide-menu-wrapper .slide-tool-item kbd { font-family: monospace; margin-right: ...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/reveal-menu/quarto-menu.js
JavaScript
window.revealMenuToolHandler = function (handler) { return function (event) { event.preventDefault(); handler(); Reveal.getPlugin("menu").closeMenu(); }; }; window.RevealMenuToolHandlers = { fullscreen: revealMenuToolHandler(function () { const element = document.documentElement; const reques...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/search/plugin.js
JavaScript
/*! * Handles finding a text string anywhere in the slides and showing the next occurrence to the user * by navigatating to that slide and highlighting it. * * @author Jon Snyder <snyder.jon@gmail.com>, February 2013 */ const Plugin = () => { // The reveal.js instance this plugin is attached to let deck; let...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/search/search.esm.js
JavaScript
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=function(e){try{return!!e()}catch(e){return!0}},n=!t((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),r=function(e){return e&&e.Math==M...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/search/search.js
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).RevealSearch=t()}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/zoom/plugin.js
JavaScript
/*! * reveal.js Zoom plugin */ const Plugin = { id: 'zoom', init: function( reveal ) { reveal.getRevealElement().addEventListener( 'mousedown', function( event ) { var defaultModifier = /Linux/.test( window.navigator.platform ) ? 'ctrl' : 'alt'; var modifier = ( reveal.getConfig().zoomKey ? reveal.getCo...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/zoom/zoom.esm.js
JavaScript
/*! * reveal.js Zoom plugin */ var e={id:"zoom",init:function(e){e.getRevealElement().addEventListener("mousedown",(function(n){var o=/Linux/.test(window.navigator.platform)?"ctrl":"alt",i=(e.getConfig().zoomKey?e.getConfig().zoomKey:o)+"Key",d=e.getConfig().zoomLevel?e.getConfig().zoomLevel:2;n[i]&&!e.isOverview()&&...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
index_files/libs/revealjs/plugin/zoom/zoom.js
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).RevealZoom=t()}(this,(function(){"use strict"; /*! * reveal.js Zoom plugin */var e={id:"zoom",init:function(e){e.getRevealEleme...
yabellini/CSVConfv7
0
Talk at CSV Conf V7
JavaScript
yabellini
Yanina Bellini Saibene
ropensci
styles.css
CSS
/* css styles */
yabellini/gestiondedatos
0
Materiales del curso de gestión de datos de la licenciatura en Ciencia de Datos de la UNAB.
CSS
yabellini
Yanina Bellini Saibene
ropensci
styles.css
CSS
/* css styles */
yabellini/t3es
1
Material del curso Enseñar Tecnologia en Comunidad en Español
CSS
yabellini
Yanina Bellini Saibene
ropensci
src/position.js
JavaScript
/** * positions a DOM element next to a certain position * @param {HTMLElement} target DOM element node * @param {Object} ref node reference for positioning or just {x,y} coordinates * @param {String} placement [above/below/center & left/right/center] or mix of two (only works if "ref" is an HTML Element) * @param...
yairEO/position
7
Position a DOM element at a certain X,Y or next to another element
JavaScript
yairEO
Yair Even Or
react-bouncer.js
JavaScript
/** * @yaireo/react-bouncer - Wrap components with a debounce, throttle, or any other delayed-rendering method, to stop them from re-rendering often when their props change * * @version v1.0.3 * @homepage https://github.com/yairEO/react-bouncer * @author Yair Even-Or <vsync.design@gmail.com> */ "use strict...
yairEO/react-bouncer
10
Delay rendering of a React component with Debounce, Throttle, or any custom method
yairEO
Yair Even Or
src/react-bouncer.js
JavaScript
import {useEffect, useCallback, useMemo, useReducer} from 'react' import debounce from 'lodash.debounce' const bouncer = (Comp, duration = 300, method = debounce) => props => { // https://reactjs.org/docs/hooks-faq.html#is-there-something-like-forceupdate const [dep, forceUpdate] = useReducer(x => ++x, 0) ...
yairEO/react-bouncer
10
Delay rendering of a React component with Debounce, Throttle, or any custom method
yairEO
Yair Even Or
demo/public/index.html
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="theme-color" content="#000000"> <!-- manifest.json provides metadata used when your web app is added to the homescreen on Android. See https:...
yairEO/react-ref-watcher
6
Watchable refs changes with conditional re-renders
JavaScript
yairEO
Yair Even Or
demo/src/Checkbox.jsx
JavaScript (JSX)
const Checkbox = ({label, checked = false, onChange}) => { return ( <label> <input type='checkbox' checked={checked} onChange={onChange}/> {label} </label> ) } export default Checkbox
yairEO/react-ref-watcher
6
Watchable refs changes with conditional re-renders
JavaScript
yairEO
Yair Even Or
demo/src/List.context.js
JavaScript
import {createContext} from 'react' export default createContext()
yairEO/react-ref-watcher
6
Watchable refs changes with conditional re-renders
JavaScript
yairEO
Yair Even Or
demo/src/List.js
JavaScript
import {useRef} from 'react' import {useWatchableRef, propWatcher} from '@yaireo/react-ref-watcher' import ListItem from './ListItem' import SelectAll from './SelectAll' import ListContext from './List.context' import "./styles.scss" // Mock data const DATA = [...Array(3)].map((_, i) => ({name: `item-${i+1}`, label:...
yairEO/react-ref-watcher
6
Watchable refs changes with conditional re-renders
JavaScript
yairEO
Yair Even Or
demo/src/ListItem.jsx
JavaScript (JSX)
import {useContext} from 'react' import {useWatchableListener} from '@yaireo/react-ref-watcher' import ListContext from './List.context' import Checkbox from './Checkbox' const ListItem = ({name, label}) => { // get the smart ref from the context (or props, which ever is better in a certain situation) const {selec...
yairEO/react-ref-watcher
6
Watchable refs changes with conditional re-renders
JavaScript
yairEO
Yair Even Or
demo/src/SelectAll.jsx
JavaScript (JSX)
import {useContext} from 'react' import {useWatchableListener, useWatchableEffect} from '@yaireo/react-ref-watcher' import ListContext from './List.context' import Checkbox from './Checkbox' const SelectAll = ({name, label}) => { console.log('"SelectAll" component rendered') // get the smart ref from the context ...
yairEO/react-ref-watcher
6
Watchable refs changes with conditional re-renders
JavaScript
yairEO
Yair Even Or
demo/src/index.js
JavaScript
import { createRoot } from "react-dom/client"; import List from "./List"; const rootElement = document.getElementById("root"); const root = createRoot(rootElement); root.render(<List />)
yairEO/react-ref-watcher
6
Watchable refs changes with conditional re-renders
JavaScript
yairEO
Yair Even Or
demo/src/styles.scss
SCSS
body { font: 16px Arial; padding: 1em; max-width: 600px; margin: auto; } #root { font-size: 20px; border: 2px dashed salmon; margin: 2em 0; padding: 1em; border-radius: 10px; } .list-wrapper { > header { margin-bottom: 1em; } } label { display: inline-flex; gap: 5px; cursor: pointer; ...
yairEO/react-ref-watcher
6
Watchable refs changes with conditional re-renders
JavaScript
yairEO
Yair Even Or
src/index.js
JavaScript
export {default as useWatchableRef} from './useWatchableRef' export {default as useWatchableListener} from './useWatchableListener' export {default as useWatchableEffect} from './useWatchableEffect' export {default as propWatcher} from './propWatcher'
yairEO/react-ref-watcher
6
Watchable refs changes with conditional re-renders
JavaScript
yairEO
Yair Even Or
src/propWatcher.js
JavaScript
/** * Watches for changes of an object (property set/deleted) * @param {Object} obj the object to listen to for changes */ const propWatcher = obj => { // add a special property for the change listeners callbacks to register on !obj.__WATCHERS && Object.defineProperty(obj, '__WATCHERS', { enumerable ...
yairEO/react-ref-watcher
6
Watchable refs changes with conditional re-renders
JavaScript
yairEO
Yair Even Or
src/useWatchableEffect.js
JavaScript
import {useEffect} from 'react' import {useId} from './utils' import {setWatcher, removeWatcher} from './propWatcher' /** * Similar to "useWatchableListener" but just listens without automatically re-rendering (no 'useState') * @param {*} callback fires when a ref change detetced * @param {*} dependencies array of ...
yairEO/react-ref-watcher
6
Watchable refs changes with conditional re-renders
JavaScript
yairEO
Yair Even Or
src/useWatchableListener.js
JavaScript
import {useState, useCallback, useEffect} from 'react' import {useId} from './utils' import {setWatcher, removeWatcher} from './propWatcher' /** * Listens to refs changes. * By default will trigger a re-render in the component which is using this hook if * a change in the ref itself or specific property is detected...
yairEO/react-ref-watcher
6
Watchable refs changes with conditional re-renders
JavaScript
yairEO
Yair Even Or
src/useWatchableRef.js
JavaScript
import {useMemo} from 'react' import propWatcher from './propWatcher' /** * Create a ref-like object that listens to any change in the "current" property * and fires all registered callbacks when a change happens to the "current" property. */ const useWatchableRef = (initialValue) => useMemo(() => propWatcher({ cur...
yairEO/react-ref-watcher
6
Watchable refs changes with conditional re-renders
JavaScript
yairEO
Yair Even Or
src/utils.js
JavaScript
import {useRef} from 'react' // https://stackoverflow.com/a/7061193/104380 export const UUIDv4 = function b(a){return a?(a^Math.random()*16>>a/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,b)}; // Native is preferable but only for React v18+, so for backward-compatibility, use this: export const useId...
yairEO/react-ref-watcher
6
Watchable refs changes with conditional re-renders
JavaScript
yairEO
Yair Even Or
relative-time.d.ts
TypeScript
// Definitions by: Ben Grynhaus <https://github.com/bengry> type DateInput = Date | string | number; interface Settings { /** * @default browser locale * @example 'es' */ locale?: string; /** * @default { numeric: 'auto' } */ options?: Intl.RelativeTimeFormatOptions; } decla...
yairEO/relative-time
42
javascript function to transform timestamp or date to local relative-time
JavaScript
yairEO
Yair Even Or
relative-time.js
JavaScript
;(function(root, factory){ var define = define || {}; if( typeof define === 'function' && define.amd ) define([], factory); else if( typeof exports === 'object' && typeof module === 'object' ) module.exports = factory(); else if(typeof exports === 'object') exports["RelativeTime"] = factory() ...
yairEO/relative-time
42
javascript function to transform timestamp or date to local relative-time
JavaScript
yairEO
Yair Even Or
relative-time.min.js
JavaScript
/** * @yaireo/relative-time - javascript function to transform timestamp or date to local relative-time * * @version v1.1.0 * @author Yair Even-Or <vsync.design@gmail.com> * @homepage https://github.com/yairEO/relative-time */ !function(e,o){var t=t||{};"function"==typeof t&&t.amd?t([],o):"object"==typeof ...
yairEO/relative-time
42
javascript function to transform timestamp or date to local relative-time
JavaScript
yairEO
Yair Even Or
relative-time.test.js
JavaScript
const { test, describe } = require('node:test'); const assert = require('node:assert'); const RelativeTime = require('./relative-time.js'); describe('RelativeTime Library Tests', () => { describe('Constructor Tests', () => { test('should create instance with default settings', () => { const rt = new Relati...
yairEO/relative-time
42
javascript function to transform timestamp or date to local relative-time
JavaScript
yairEO
Yair Even Or
title-tooltip.css
CSS
#titleTtip{ --radius: 6px; --trans-duration: .2s; max-width: 220px; position: fixed; z-index: max; box-sizing: border-box; pointer-events: none; opacity: 0; transition: 0s; } #titleTtip .titleTtip__text{ padding: 6px 11px; border-radius: var(--radius); color: white; transform: scale(.75); t...
yairEO/title-tooltip
16
Automatically converts HTML title attributes to nicer better tooltips
JavaScript
yairEO
Yair Even Or
title-tooltip.js
JavaScript
/** * By Yair Even Or * https://github.com/yairEO/title-tooltip */ ;(function(root, factory){ var define = define || {}; if( typeof define === 'function' && define.amd ) define([], factory); else if( typeof exports === 'object' && typeof module === 'object' ) module.exports = factory(); else if(t...
yairEO/title-tooltip
16
Automatically converts HTML title attributes to nicer better tooltips
JavaScript
yairEO
Yair Even Or
gif.js
JavaScript
// gif.js 0.2.0 - https://github.com/jnordberg/gif.js (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof s...
yairm210/Mermaid-gif-maker
13
A small webpage for making GIFs of mermaid graphs
JavaScript
yairm210
Yair Morgenstern
gif.worker.js
JavaScript
// gif.worker.js 0.2.0 - https://github.com/jnordberg/gif.js (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l...
yairm210/Mermaid-gif-maker
13
A small webpage for making GIFs of mermaid graphs
JavaScript
yairm210
Yair Morgenstern
html2canvas.js
JavaScript
/*! * html2canvas 1.4.1 <https://html2canvas.hertzen.com> * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com> * Released under MIT License */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && de...
yairm210/Mermaid-gif-maker
13
A small webpage for making GIFs of mermaid graphs
JavaScript
yairm210
Yair Morgenstern
index.html
HTML
<html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Mermaid.js GIF maker</title> <link rel="stylesheet" href="simple.min.css"> <script src="html2canvas.js"></script> <script src="gif.js"></script> <script src="gif.worker.js"><...
yairm210/Mermaid-gif-maker
13
A small webpage for making GIFs of mermaid graphs
JavaScript
yairm210
Yair Morgenstern
mermaid.esm.min.mjs
JavaScript
import{b as pr}from"./chunks/mermaid.esm.min/chunk-BZCPFP2Z.mjs";import{a as ze}from"./chunks/mermaid.esm.min/chunk-TEYTTQG6.mjs";import{a as Or}from"./chunks/mermaid.esm.min/chunk-GSFY7FJO.mjs";import{a as Fr}from"./chunks/mermaid.esm.min/chunk-EJX47K7M.mjs";import"./chunks/mermaid.esm.min/chunk-IATEPIBH.mjs";import"....
yairm210/Mermaid-gif-maker
13
A small webpage for making GIFs of mermaid graphs
JavaScript
yairm210
Yair Morgenstern
monaco-editor-loader.js
JavaScript
"use strict";/*!----------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.51.0(67d664a32968e19e2eb08b696a92463804182ae4) * Released under the MIT license * https://github.com/microsoft/vscode/blob/main/LICENSE.txt *-------------------------...
yairm210/Mermaid-gif-maker
13
A small webpage for making GIFs of mermaid graphs
JavaScript
yairm210
Yair Morgenstern
monaco-editor-vs/editor/editor.main.css
CSS
/*!----------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.51.0(67d664a32968e19e2eb08b696a92463804182ae4) * Released under the MIT license * https://github.com/microsoft/vscode/blob/main/LICENSE.txt *--------------------------------------...
yairm210/Mermaid-gif-maker
13
A small webpage for making GIFs of mermaid graphs
JavaScript
yairm210
Yair Morgenstern
monaco-mermaid.js
JavaScript
export default (monacoEditor) => { monacoEditor.languages.register({ id: 'mermaid' }); const requirementDiagrams = [ 'requirement', 'functionalRequirement', 'interfaceRequirement', 'performanceRequirement', 'physicalRequirement', 'designConstraint', ]; con...
yairm210/Mermaid-gif-maker
13
A small webpage for making GIFs of mermaid graphs
JavaScript
yairm210
Yair Morgenstern
simple.min.css
CSS
:root,::backdrop{--sans-font:-apple-system,BlinkMacSystemFont,"Avenir Next",Avenir,"Nimbus Sans L",Roboto,"Noto Sans","Segoe UI",Arial,Helvetica,"Helvetica Neue",sans-serif;--mono-font:Consolas,Menlo,Monaco,"Andale Mono","Ubuntu Mono",monospace;--standard-border-radius:5px;--bg:#fff;--accent-bg:#f5f7ff;--text:#212121;-...
yairm210/Mermaid-gif-maker
13
A small webpage for making GIFs of mermaid graphs
JavaScript
yairm210
Yair Morgenstern
annotations/build.gradle.kts
Kotlin
import com.vanniktech.maven.publish.SonatypeHost plugins { id("org.jetbrains.kotlin.multiplatform") version libs.versions.kotlin id("com.vanniktech.maven.publish") version("0.32.0") signing } group = "io.github.yairm210" version = "1.3.2" kotlin { sourceSets{ val commonMain by getting { ...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
annotations/src/commonMain/kotlin/Cache.kt
Kotlin
package yairm210.purity.annotations import kotlin.annotation.AnnotationTarget.PROPERTY /** * Indicates that a private property is a cache for a function, and therefore can be both read and written to. * Note that this does NOT ensure thread safety, so choose thread-safe data structures multithreading. */ @Target(...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
annotations/src/commonMain/kotlin/Immutable.kt
Kotlin
package yairm210.purity.annotations import kotlin.annotation.AnnotationTarget.LOCAL_VARIABLE import kotlin.annotation.AnnotationTarget.PROPERTY /** * Indicates that a val - such as a list or map - is immutable, and thus its Readable functions should be considered Pure. * Has no effect on var. */ // this differs fr...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
annotations/src/commonMain/kotlin/InternalState.kt
Kotlin
package yairm210.purity.annotations import kotlin.annotation.AnnotationTarget.CLASS /** * Indicates that this class can mutate *only* state that it owns - lost upon destruction of the instance. * The equivalent of this for external classes is WellKnownInternalStateClasses - see https://yairm210.github.io/Purity/usa...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
annotations/src/commonMain/kotlin/LocalState.kt
Kotlin
package yairm210.purity.annotations import kotlin.annotation.AnnotationTarget.LOCAL_VARIABLE import kotlin.annotation.AnnotationTarget.VALUE_PARAMETER /** * Indicates that the class alters its internal state only, AND that this instance is inaccessible from elsewhere in the code (e.g. created within this function) ...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
annotations/src/commonMain/kotlin/Pure.kt
Kotlin
package yairm210.purity.annotations import kotlin.annotation.AnnotationTarget.FUNCTION /** * An annotation to indicate that this function is Pure. * This means that it does not have any side effects and its output depends only on its input. * Functions which read from mutable state are not pure. * * The equivale...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
annotations/src/commonMain/kotlin/Readonly.kt
Kotlin
package yairm210.purity.annotations import kotlin.annotation.AnnotationTarget.FUNCTION import kotlin.annotation.AnnotationTarget.VALUE_PARAMETER /** * An annotation to indicate that this function is Pure. * This means that it does not have any side effects and its output depends only on its input. * Functions whic...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
annotations/src/commonMain/kotlin/TestExpectCompileError.kt
Kotlin
package yairm210.purity.annotations import kotlin.annotation.AnnotationTarget.FUNCTION /** * A test-only annotation that indicates that the annotated function is EXPECTED to error * Used for plugin tests. */ @Target(FUNCTION) public annotation class TestExpectCompileError
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
build.gradle.kts
Kotlin
import org.gradle.kotlin.dsl.libs buildscript { repositories { mavenLocal() google() mavenCentral() } } plugins { id("org.jetbrains.kotlin.multiplatform") version libs.versions.kotlin apply false } System.setProperty("kotlin.compiler.execution.strategy", "in-process") // For debug...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/build.gradle.kts
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask import com.vanniktech.maven.publish.SonatypeHost import org.jetbrains.kotlin.gradle.dsl.JvmTarget plugins { kotlin("jvm") version("2.2.0") kotlin("kapt") version("2.2.0") id("com.vanniktech.maven.publish") version("0.32.0") signing } allpr...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/src/main/kotlin/yairm210/purity/PurityConfig.kt
Kotlin
package yairm210.purity class PurityConfig { var warnOnPossibleAnnotations: Boolean = false var wellKnownPureClassesFromUser: Set<String> = setOf() var wellKnownPureFunctionsFromUser: Set<String> = setOf() var wellKnownReadonlyClassesFromUser: Set<String> = setOf() var wellKnownReadonlyFunctionsFro...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/src/main/kotlin/yairm210/purity/boilerplate/DebugLogger.kt
Kotlin
package yairm210.purity.boilerplate import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity import org.jetbrains.kotlin.cli.common.messages.MessageCollector internal data class DebugLogger(val debug: Boolean, val messageCollector: MessageCollector) { fun log(message: String) { if (debug) {...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/src/main/kotlin/yairm210/purity/boilerplate/PurityCommandLineProcessor.kt
Kotlin
package yairm210.purity.boilerplate import com.google.auto.service.AutoService import org.jetbrains.kotlin.compiler.plugin.AbstractCliOption import org.jetbrains.kotlin.compiler.plugin.CliOption import org.jetbrains.kotlin.compiler.plugin.CommandLineProcessor import org.jetbrains.kotlin.config.CompilerConfiguration im...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/src/main/kotlin/yairm210/purity/boilerplate/PurityComponentRegistrar.kt
Kotlin
package yairm210.purity.boilerplate import com.google.auto.service.AutoService import org.jetbrains.kotlin.backend.common.extensions.IrGenerationExtension import org.jetbrains.kotlin.cli.common.messages.MessageCollector import org.jetbrains.kotlin.compiler.plugin.CompilerPluginRegistrar import org.jetbrains.kotlin.con...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/src/main/kotlin/yairm210/purity/boilerplate/PurityIrGenerationExtension.kt
Kotlin
package yairm210.purity.boilerplate import org.jetbrains.kotlin.backend.common.extensions.IrGenerationExtension import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext import org.jetbrains.kotlin.ir.declarations.IrModuleFragment import yairm210.purity.PurityConfig import yairm210.purity.validation.Purity...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/src/main/kotlin/yairm210/purity/validation/Annotations.kt
Kotlin
package yairm210.purity.validation import org.jetbrains.kotlin.name.FqName object Annotations { val Pure = FqName("yairm210.purity.annotations.Pure") val Readonly = FqName("yairm210.purity.annotations.Readonly") val LocalState = FqName("yairm210.purity.annotations.LocalState") val InternalState = FqNa...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/src/main/kotlin/yairm210/purity/validation/CheckFunctionPurityVisitor.kt
Kotlin
@file:OptIn(UnsafeDuringIrConstructionAPI::class) package yairm210.purity.validation import org.jetbrains.kotlin.cli.common.messages.CompilerMessageLocation import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity import org.jetbrains.kotlin.cli.common.messages.MessageCollector import org.jetbrains.kotl...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/src/main/kotlin/yairm210/purity/validation/ExpectedFunctionPurityChecker.kt
Kotlin
@file:OptIn(UnsafeDuringIrConstructionAPI::class) package yairm210.purity.validation import org.jetbrains.kotlin.ir.declarations.* import org.jetbrains.kotlin.ir.expressions.* import org.jetbrains.kotlin.ir.symbols.UnsafeDuringIrConstructionAPI import org.jetbrains.kotlin.ir.util.* import org.jetbrains.kotlin.name.FqN...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/src/main/kotlin/yairm210/purity/validation/FunctionPurity.kt
Kotlin
package yairm210.purity.validation enum class FunctionPurity{ None, Readonly, Pure }
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/src/main/kotlin/yairm210/purity/validation/PurityElementTransformer.kt
Kotlin
package yairm210.purity.validation import org.jetbrains.kotlin.DeprecatedForRemovalCompilerApi import org.jetbrains.kotlin.backend.common.IrElementTransformerVoidWithContext import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity import org.jetbrains.kotlin.descriptors.DescriptorVisibilities import org...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/src/main/kotlin/yairm210/purity/validation/wellknown/WellKnownInternalStateClasses.kt
Kotlin
package yairm210.purity.validation.wellknown /** Classes that hold state internally. * This means that if this function created that class, and it does not leak, it can call all functions on it and be considered pure */ val wellKnownInternalStateClasses = setOf( "kotlin.collections.MutableList", "kotlin.coll...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/src/main/kotlin/yairm210/purity/validation/wellknown/WellKnownNewInstanceFunctions.kt
Kotlin
package yairm210.purity.validation.wellknown /** Functions that return a new instance * This means that if the type is InternalState, * the vals created are guaranteed to be LocalState, just like for constructors * This is unnecessary for immutable classes, or for functions known to be pure - * They must by ...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/src/main/kotlin/yairm210/purity/validation/wellknown/WellKnownPureClasses.kt
Kotlin
package yairm210.purity.validation.wellknown val wellKnownPureClasses = setOf( "kotlin.Int", "kotlin.Long", "kotlin.Float", "kotlin.Double", "kotlin.Number", "kotlin.Boolean", "kotlin.Char", "kotlin.String", "kotlin.text.Regex", // Even when reading, we read a string, which is imm...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/src/main/kotlin/yairm210/purity/validation/wellknown/WellKnownPureFunctions.kt
Kotlin
package yairm210.purity.validation.wellknown val wellKnownPureFunctions = setOf( "kotlin.internal.ir.CHECK_NOT_NULL", // AKA !! "kotlin.internal.ir.noWhenBranchMatchedException", "kotlin.internal.ir.EQEQEQ", "kotlin.to", "kotlin.assert", "kotlin.require", "kotlin.requireNotNull", "kotl...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/src/main/kotlin/yairm210/purity/validation/wellknown/WellKnownReadonlyClasses.kt
Kotlin
package yairm210.purity.validation.wellknown /** All the functions of these are readonly */ val wellKnownReadonlyClasses = setOf( "kotlin.collections.List", "kotlin.collections.Set", "kotlin.collections.Map", "kotlin.collections.Collection", "kotlin.collections.Iterator", "kotlin.collections.In...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
compiler-plugin/src/main/kotlin/yairm210/purity/validation/wellknown/WellKnownReadonlyFunctions.kt
Kotlin
package yairm210.purity.validation.wellknown // Where possible, use interfaces that cover a lot of classes val wellKnownReadonlyFunctions = setOf( // Somehow Kotlin manages to make "overridden symbols" for hashmap functions contain AbstractMap and // kotlin.collections.MutableMap and kotlin.collections.Map....
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
gradle-plugin/build.gradle.kts
Kotlin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget plugins { kotlin("jvm") version("2.2.0") kotlin("kapt") version("2.2.0") id("com.gradle.plugin-publish") version "2.0.0" } // Not sure if required - there's no Java :think: java.targetCompatibility = JavaVersion.VERSION_1_8 // Make KAPT stubs Java 8 compa...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
gradle-plugin/src/main/kotlin/yairm210/purity/PurityGradlePlugin.kt
Kotlin
package yairm210.purity import org.gradle.api.Project import org.gradle.api.provider.Provider import org.jetbrains.kotlin.gradle.plugin.KotlinCompilation import org.jetbrains.kotlin.gradle.plugin.KotlinCompilerPluginSupportPlugin import org.jetbrains.kotlin.gradle.plugin.SubpluginArtifact import org.jetbrains.kotlin.g...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
lib/build.gradle.kts
Kotlin
import yairm210.purity.PurityConfiguration plugins { id("org.jetbrains.kotlin.multiplatform") version libs.versions.kotlin id("io.github.yairm210.purity-plugin") version "1.0.3" // This is overridden in settings so the version doesn't matter } configure<PurityConfiguration> { enabled = true warnOnPos...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
lib/src/commonMain/kotlin/sample/Sample.kt
Kotlin
package sample expect class Sample() { fun checkMe(): Int } expect object Platform { val name: String } fun hello(): String = "Hello from ${Platform.name}" class _MyTestProvider : MyTest{ override fun print(){ println("Hello from _MyTestProvider") } } interface MyTest{ fun print() } fu...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
lib/src/jsMain/kotlin/sample/SampleJs.kt
Kotlin
package sample actual class Sample { actual fun checkMe() = 12 } actual object Platform { actual val name: String = "JS" }
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
lib/src/jvmMain/kotlin/sample/JvmSampleTests.kt
Kotlin
package sample import yairm210.purity.annotations.* import java.util.* import kotlin.collections.HashMap actual class Sample { actual fun checkMe() = 42 } actual object Platform { actual val name: String = "JVM" } fun testUnmarkedFunctionCanGetAndSetVariables() { var x = 5 fun unmarkedGetX() = x ...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
lib/src/linuxMain/kotlin/sample/SampleLinux.kt
Kotlin
package sample actual class Sample { actual fun checkMe() = 7 } actual object Platform { actual val name: String = "Native" }
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
lib/src/linuxTest/kotlin/sample/SampleTestsNative.kt
Kotlin
package sample import kotlin.test.Test import kotlin.test.assertTrue class SampleTestsNative { @Test fun testHello() { assertTrue("Native" in hello()) } }
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
settings.gradle.kts
Kotlin
includeBuild("gradle-plugin") includeBuild("compiler-plugin"){ dependencySubstitution { // for lib, even though it gets purity-compiler-plugin dependency via gradle plugin, will still use local compiler-plugin substitute(module("io.github.yairm210:purity-compiler-plugin")) .using(project(":")) ...
yairm210/Purity
40
Kotlin Compiler Plugin for validating Pure and Readonly functions
Kotlin
yairm210
Yair Morgenstern
build.zig
Zig
const std = @import("std"); const rlz = @import("raylib_zig"); pub fn build(b: *std.Build) !void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); const raylib_dep = b.dependency("raylib_zig", .{ .target = target, .optimize = optimize, }); ...
yairm210/Runelocker
0
Zig/raylib strategy game for learning Zig
Zig
yairm210
Yair Morgenstern
src/main.zig
Zig
// raylib-zig (c) Nikolas Wipper 2023 const std = @import("std"); const rl = @import("raylib"); const ZSet = @import("ziglangSet"); const runes = @import("runes.zig"); const Direction = runes.Direction; const Rune = runes.Rune; const GridIndex = runes.GridIndex; const ConnectionIndex = runes.ConnectionIndex; const To...
yairm210/Runelocker
0
Zig/raylib strategy game for learning Zig
Zig
yairm210
Yair Morgenstern
src/runes.zig
Zig
const std = @import("std"); const ZSet = @import("ziglangSet"); pub const Direction = enum { up, down, left, right, pub const count = 4; }; pub const GridIndex = struct { x: usize, y: usize, pub fn getIndexInDirection(self: GridIndex, direction: Direction) GridIndex { var newX...
yairm210/Runelocker
0
Zig/raylib strategy game for learning Zig
Zig
yairm210
Yair Morgenstern
test_arraylist.zig
Zig
const std = @import("std"); pub fn main() !void { var buffer: [1024]u8 = undefined; var fba = std.heap.FixedBufferAllocator.init(&buffer); const allocator = fba.allocator(); var list = std.ArrayList(u32){}; defer list.deinit(allocator); std.debug.print("ArrayList initialized successfully\n", ...
yairm210/Runelocker
0
Zig/raylib strategy game for learning Zig
Zig
yairm210
Yair Morgenstern
index.css
CSS
@import "tailwindcss"; @import "tw-animate-css"; @custom-variant dark (&:is(.dark *)); @theme inline { --radius-sm: calc(var(--radius) - 4px); --radius-md: calc(var(--radius) - 2px); --radius-lg: var(--radius); --radius-xl: calc(var(--radius) + 4px); --color-background: var(--background); --color-foregrou...
yairm210/base44-site-template
17
Create sites with base44 and use as standalone
JavaScript
yairm210
Yair Morgenstern
index.html
HTML
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="./index.css" /> <title>React Vite Micro App</title> </head> <body> <div id="root"></div> <script type="module" src="./src/index.jsx"></script> </body> </html>
yairm210/base44-site-template
17
Create sites with base44 and use as standalone
JavaScript
yairm210
Yair Morgenstern
src/App.jsx
JavaScript (JSX)
import React from "react"; import CodeVisualizerPage from "./CodeVisualizer"; export default () => ( <> <CodeVisualizerPage/> </> );
yairm210/base44-site-template
17
Create sites with base44 and use as standalone
JavaScript
yairm210
Yair Morgenstern
src/CodeEditor.jsx
JavaScript (JSX)
import React, { useEffect, useRef, useState } from 'react'; import * as monaco from 'monaco-editor'; export default function CodeEditor({ code, onChangeContent, onChangeCursorPosition: onChangeCursorOffset }) { const containerRef = useRef(null); const [editor, setEditor] = useState(null); useEffect(() => ...
yairm210/base44-site-template
17
Create sites with base44 and use as standalone
JavaScript
yairm210
Yair Morgenstern
src/CodeVisualizer.jsx
JavaScript (JSX)
import React, { useState, useEffect, useRef } from "react"; import CodeEditor from "./CodeEditor"; import GraphViewer from "./GraphViewer"; import { Loader2 } from "lucide-react"; import KotlinLogo from './KotlinLogo.svg'; import axios from "axios"; import {editor} from "monaco-editor"; export default function CodeVi...
yairm210/base44-site-template
17
Create sites with base44 and use as standalone
JavaScript
yairm210
Yair Morgenstern
src/GraphViewer.jsx
JavaScript (JSX)
import React, {useEffect, useLayoutEffect, useRef, useState} from 'react'; import { Loader2, AlertTriangle, ImageOff } from 'lucide-react'; import mermaid from 'mermaid'; import svgPanZoom from 'svg-pan-zoom'; mermaid.initialize( { startOnLoad: false, // We will render manually theme: 'dark', ...
yairm210/base44-site-template
17
Create sites with base44 and use as standalone
JavaScript
yairm210
Yair Morgenstern
src/components/ui/button.tsx
TypeScript (TSX)
import * as React from "react" import { Slot } from "@radix-ui/react-slot" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" const buttonVariants = cva( "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all dis...
yairm210/base44-site-template
17
Create sites with base44 and use as standalone
JavaScript
yairm210
Yair Morgenstern
src/components/ui/dialog.tsx
TypeScript (TSX)
import * as React from "react" import * as DialogPrimitive from "@radix-ui/react-dialog" import { XIcon } from "lucide-react" import { cn } from "@/lib/utils" function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) { return <DialogPrimitive.Root data-slot="dialog" {...props} /> } functio...
yairm210/base44-site-template
17
Create sites with base44 and use as standalone
JavaScript
yairm210
Yair Morgenstern
src/components/ui/input.tsx
TypeScript (TSX)
import * as React from "react" import { cn } from "@/lib/utils" function Input({ className, type, ...props }: React.ComponentProps<"input">) { return ( <input type={type} data-slot="input" className={cn( "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selec...
yairm210/base44-site-template
17
Create sites with base44 and use as standalone
JavaScript
yairm210
Yair Morgenstern