repo stringclasses 302
values | file_path stringlengths 18 241 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 76 697k | tokens int64 10 271k |
|---|---|---|---|---|---|
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/Component.luau | luau | .luau | -- Author: iGottic
-- Imports
local Scope = require(script.Parent.Parent.Memory.Scope)
local Symbol = require(script.Parent.Parent.Parent.Modules.Symbol)
-- Types extended
export type Component = ({[any] : any}) -> (Scope.ScopeInstance?, {[string] : any}) -> any
local function Component(ComponentModule : {[any] : an... | 339 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/Destroyed.luau | luau | .luau | -- Author: iGottic
local Destroyed = {}
-- Types
export type Destroyed = (Object : Instance, Callback : () -> nil) -> nil
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Symbol = require(Modules.Symbol)
-- Variables
local ClassSymbol = Symbol.new("Destroyed")
function Destroyed:__call(Object :... | 165 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/EventSequence.luau | luau | .luau | -- Author: iGottic
local EventSequence = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Symbol = require(Modules.Symbol)
local Trove = require(Modules.Trove)
local UpdateSignals = require(Modules.UpdateSignals)
-- Types extended
export type SequenceKeyframe = {number | () -> nil}
export typ... | 749 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/FollowAttribute.luau | luau | .luau | -- Author: iGottic
local FollowAttribute = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Types = require(Modules.Types)
local Symbol = require(Modules.Symbol)
-- Variables
local ClassSymbol = Symbol.new("FollowAttribute")
-- Types Extended
export type FollowAttribute = (AttributeName : str... | 265 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/FollowProperty.luau | luau | .luau | -- Author: iGottic
local FollowProperty = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Types = require(Modules.Types)
local Symbol = require(Modules.Symbol)
-- Variables
local ClassSymbol = Symbol.new("FollowProperty")
-- Types Extended
export type FollowProperty = (PropertyName : string)... | 256 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/Lifetime.luau | luau | .luau | -- Author: iGottic
local Lifetime = {}
-- Types
export type Lifetime = (Object : Instance, CleanupTime : number) -> nil
-- Services
local DebrisService = game:GetService("Debris")
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Symbol = require(Modules.Symbol)
-- Variables
local ClassSymbol = ... | 205 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/New.luau | luau | .luau | -- Author: iGottic
local New = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Symbol = require(Modules.Symbol)
local CreateDeepTraceback = require(Modules.CreateDeepTraceback)
local Scope = require(script.Parent.Parent.Memory.Scope)
local Children = require(script.Parent.Children)
-- Types e... | 571 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/Tags.luau | luau | .luau | -- Author: iGottic
local Tags = {}
-- Types
export type Tags = (Object : Instance, AddedTags : {string}) -> nil
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Symbol = require(Modules.Symbol)
-- Variables
local ClassSymbol = Symbol.new("Tags")
function Tags:__call(Object : Instance, AddedTags... | 174 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Memory/Scope.luau | luau | .luau | -- Author: iGottic
local Scope = {}
-- Imports
local Constructors = script.Parent.Parent
local Modules = Constructors.Parent.Modules
local States = Constructors.States
local Trove = require(Modules.Trove)
local Types = require(Modules.Types)
local Symbol = require(Modules.Symbol)
local CreateDeepTraceback = require(M... | 1,603 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/States/Animation/Spring.luau | luau | .luau | -- Author: iGottic
local Spring = {}
-- Constants
local EPSILON = 0.001
-- Imports
local Constructors = script.Parent.Parent.Parent
local Modules = Constructors.Parent.Modules
local GetValue = require(Constructors.Utilities.GetValue)
local StateManager = require(Modules.StateManager)
local ValuePacker = require(Modu... | 2,012 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/States/Animation/Tween.luau | luau | .luau | -- Author: iGottic
local Tween = {}
-- Constants
local EPSILON = 0.001
-- Services
local TweenService = game:GetService("TweenService")
-- Imports
local Constructors = script.Parent.Parent.Parent
local Modules = Constructors.Parent.Modules
local GetValue = require(Constructors.Utilities.GetValue)
local StateManager... | 1,168 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/States/Computed.luau | luau | .luau | -- Author: iGottic
local Computed = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local StateManager = require(Modules.StateManager)
local Trove = require(Modules.Trove)
local Signal = require(Modules.Signal)
local Types = require(Modules.Types)
local Symbol = require(Modules.Symbol)
local Value =... | 792 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/States/ForPairs.luau | luau | .luau | -- Author: iGottic
local ForPairs = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Types = require(Modules.Types)
local Symbol = require(Modules.Symbol)
local CreateDeepTraceback = require(Modules.CreateDeepTraceback)
local Computed = require(script.Parent.Computed)
local Value = require(scri... | 531 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/States/Rendered.luau | luau | .luau | -- Author: iGottic
local Rendered = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local StateManager = require(Modules.StateManager)
local Trove = require(Modules.Trove)
local Signal = require(Modules.Signal)
local Types = require(Modules.Types)
local Symbol = require(Modules.Symbol)
-- Variables... | 477 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/States/Value.luau | luau | .luau | -- Author: iGottic
local Value = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local StateManager = require(Modules.StateManager)
local Trove = require(Modules.Trove)
local Signal = require(Modules.Signal)
local Types = require(Modules.Types)
local IsValueChanged = require(Modules.IsValueChanged)
... | 859 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Utilities/GetValue.luau | luau | .luau | -- Author: iGottic
local GetValue = {}
-- Types
export type GetValue = (State : any?) -> any?
-- Imports
local IsState = require(script.Parent.IsState)
function GetValue:__call(State : any?) : any?
-- Nothing exists? No problem.
if State == nil then
return nil
end
-- Is it a state? Return t... | 170 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Utilities/Inspect.luau | luau | .luau | -- Author: iGottic
local Inspect = {}
-- Types
export type Inspect = (Object : any, DebugName : string) -> RBXScriptConnection
function Inspect:__call(Object : any, DebugName : string)
if not DebugName then
error("Expected DebugName, got nil")
end
return (Object.Changed :: RBXScriptSignal):Conne... | 206 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Utilities/IsComponent.luau | luau | .luau | -- Author: iGottic
local IsComponent = {}
-- Types
export type IsComponent = (CheckedValue : any?) -> boolean
function IsComponent:__call(CheckedValue : any?) : boolean
if typeof(CheckedValue) ~= "table" then
return false -- Not a component since it's not a table
end
if CheckedValue.__SEAM_COMPO... | 167 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Utilities/IsState.luau | luau | .luau | -- Author: iGottic
local IsState = {}
-- Types
export type IsState = (CheckedValue : any?) -> boolean
-- Constants
local RECOGNIZED_STATE_SYMBOLS = {"Spring", "Tween", "ComputedInstance", "RenderedInstance", "Value"}
function IsState:__call(CheckedValue : any?) : boolean
if typeof(CheckedValue) ~= "table" then
... | 253 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Utilities/LockValue.luau | luau | .luau | -- Author: iGottic
local LockValue = {}
-- Imports
local Value = require(script.Parent.Parent.States.Value)
-- Types
export type LockValue = (LockedValue : Value.ValueInstance<any>) -> nil
function LockValue:__call(LockedValue : Value.ValueInstance<any>) : nil
if typeof(LockedValue) ~= "table" or not LockedValu... | 177 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Utilities/SetValue.luau | luau | .luau | -- Author: iGottic
local SetValue = {}
-- Types
export type SetValue = (State : any?, NewValue : any?) -> any?
function SetValue:__call(State : any?, NewValue : any?) : any?
if State == nil then
return NewValue
end
if typeof(State) == "table" and State.Value ~= nil then
State.Value = New... | 146 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/CreateDeepTraceback.luau | luau | .luau | -- Author: iGottic
-- Constants
local DEPTH = 10
return function()
local Traceback = ""
for Index = 1, DEPTH do
local ThisTraceback = debug.traceback(nil, Index + 1)
if ThisTraceback:len() == 0 then
break
end
Traceback ..= ThisTraceback .. "\n"
end
return Traceback
end
| 94 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/IsValueChanged.luau | luau | .luau | -- Author: iGottic
return function(OldValue : any, NewValue : any) : boolean
if typeof(OldValue) ~= typeof(NewValue) then
return true
end
return OldValue ~= NewValue
end | 54 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/Signal.luau | luau | .luau | -- -----------------------------------------------------------------------------
-- Batched Yield-Safe Signal Implementation --
-- This is a Signal class which has effectively identical behavior to a --
-- normal RBXScriptSignal, with the only difference being a couple extra ... | 1,793 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/StateManager.luau | luau | .luau | -- Author: iGottic
local StateManager = {}
-- Imports
local Trove = require(script.Parent.Trove)
local IsValueChanged = require(script.Parent.IsValueChanged)
local UpdateSignals = require(script.Parent.UpdateSignals)
local CreateDeepTraceback = require(script.Parent.CreateDeepTraceback)
local function GetObjectType(... | 534 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/Symbol.luau | luau | .luau | -- Author: iGottic
local Symbol = {}
-- Types
export type Symbol = typeof(newproxy(true))
function Symbol.new(Name : string)
local self = newproxy(true)
getmetatable(self).__tostring = function()
return Name
end
return self
end
return Symbol | 64 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/Trove.luau | luau | .luau | --!strict
local RunService = game:GetService("RunService")
export type Trove = {
Extend: (self: Trove) -> Trove,
Clone: <T>(self: Trove, instance: T & Instance) -> T,
Construct: <T, A...>(self: Trove, class: Constructable<T, A...>, A...) -> T,
Connect: (
self: Trove,
signal: SignalLike | SignalLikeMetatable |... | 2,633 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/Types.luau | luau | .luau | -- Author: iGottic
export type BaseState<T> = {
Value : T,
}
export type Child = Instance | BaseState<any> | {[unknown] : Child}
return nil | 41 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/UpdateSignals.luau | luau | .luau | -- Author: iGottic
local UpdateSignals = {}
-- Types
type UpdateSignals = {
OnFrameUpdate : RBXScriptSignal,
OnFramePreUpdate : RBXScriptSignal,
}
-- Services
local RunService = game:GetService("RunService")
if RunService:IsClient() then
UpdateSignals.OnFrameUpdate = RunService.RenderStepped
UpdateS... | 143 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Modules/ValuePacker/init.luau | luau | .luau | -- Author: iGottic
-- Based on UnpackType and PackType from Elttob
local ValuePacker = {}
-- Types
type UnpackedValue = {[number]: number}
-- Imports
local Oklab = require(script.Oklab) -- We use Oklab color space to make animating colors look more natural
-- Variables
local Converter : {[string] : {Pack : (Unpacke... | 1,714 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/init.luau | luau | .luau | --[=[
Documentation: https://seam.igottic.com/
@class Seam
]=]
-- Services
local RunService = game:GetService("RunService")
-- Imports
-- Note: I opt for WaitForChild to load stuff; this helps prevent edge case errors where children don't load in time, particularly when loading from ReplicatedStorage in a sc... | 2,464 |
latte-soft/lucide-roblox | latte-soft-lucide-roblox-11213a3/lib/init.luau | luau | .luau | -- MIT License | Copyright (c) 2023 Latte Softworks <https://latte.to>
export type Asset = {
IconName: string, -- "icon-name"
Id: number, -- 123456789
Url: string, -- "rbxassetid://123456789"
ImageRectSize: Vector2, -- Vector2.new(48, 48)
ImageRectOffset: Vector2, -- Vector2.new(648, 266)
}
local ... | 1,916 |
latte-soft/lucide-roblox | latte-soft-lucide-roblox-11213a3/lune/compile-icons.luau | luau | .luau | -- MIT License | Copyright (c) 2023 Latte Softworks <https://latte.to>
local fs = require("@lune/fs")
local stdio = require("@lune/stdio")
local process = require("@lune/process")
local Log = require("modules/Log")
local CommandUtils = require("modules/CommandUtils")
local StringUtils = require("modules/StringUtils")... | 634 |
latte-soft/lucide-roblox | latte-soft-lucide-roblox-11213a3/lune/generate-md-index.luau | luau | .luau | -- MIT License | Copyright (c) 2023 Latte Softworks <https://latte.to>
local fs = require("@lune/fs")
local StringUtils = require("modules/StringUtils")
local IconSourcesDir = "icons/src"
local IconDisplayDir = "icons/compiled/48px"
local IconDisplayFileType = "png"
local OutputPath = "md/icon-index.md"
local Outpu... | 283 |
latte-soft/lucide-roblox | latte-soft-lucide-roblox-11213a3/lune/make.luau | luau | .luau | -- MIT License | Copyright (c) 2023 Latte Softworks <https://latte.to>
local fs = require("@lune/fs")
local process = require("@lune/process")
local Log = require("modules/Log")
local Run = require("modules/Run")
local VersionInfo = require("../version-info")
local RojoOutputPath = "build/lucide-roblox.rbxm"
local ... | 454 |
latte-soft/lucide-roblox | latte-soft-lucide-roblox-11213a3/lune/modules/CommandUtils.luau | luau | .luau | -- MIT License | Copyright (c) 2023 Latte Softworks <https://latte.to>
local process = require("@lune/process")
local CommandUtils = {}
-- We'll check some required commands in a sec
function CommandUtils.CommandExists(binary: string): boolean
if process.os ~= "windows" then
-- Unix-compliance is simple!... | 181 |
latte-soft/lucide-roblox | latte-soft-lucide-roblox-11213a3/lune/modules/ParseArgs.luau | luau | .luau | -- MIT License | Copyright (c) 2023 Latte Softworks <https://latte.to>
type OptionsInput = {[string]: {string | number | boolean | nil}}
type OptionsOutput = {[string]: string | number | boolean | nil}
local process = require("@lune/process")
local Log = require("Log")
local function ParseArgs(args: {string}, optio... | 485 |
latte-soft/lucide-roblox | latte-soft-lucide-roblox-11213a3/lune/modules/Run.luau | luau | .luau | -- MIT License | Copyright (c) 2023 Latte Softworks <https://latte.to>
local process = require("@lune/process")
local Log = require("Log")
local function Run(command: string, args: {string}?, directRun: boolean?, errorHandler: (string) -> ()?): process.SpawnResult
local Args = args or {}
local DirectRun = if... | 219 |
latte-soft/lucide-roblox | latte-soft-lucide-roblox-11213a3/lune/modules/StringUtils.luau | luau | .luau | -- MIT License | Copyright (c) 2023 Latte Softworks <https://latte.to>
local StringUtils = {}
function StringUtils.FileType(filePath: string): string?
local Match = string.match(filePath, ".%.([^%.]+)$")
if Match then
Match = string.lower(Match)
end
return Match
end
function StringUtils.File... | 876 |
latte-soft/lucide-roblox | latte-soft-lucide-roblox-11213a3/lune/tarmac-sync.luau | luau | .luau | -- MIT License | Copyright (c) 2023 Latte Softworks <https://latte.to>
-- Yes, this gets a bit hacky; we're reading from the manifest directly, so..
local fs = require("@lune/fs")
local serde = require("@lune/serde")
local Log = require("modules/Log")
local StringUtils = require("modules/StringUtils")
local LuaEncode... | 688 |
latte-soft/lucide-roblox | latte-soft-lucide-roblox-11213a3/stories/Lucide.story.luau | luau | .luau | -- MIT License | Copyright (c) 2023 Latte Softworks <https://latte.to>
local ServerStorage = game:GetService("ServerStorage")
local Lucide = require(ServerStorage.Lucide)
local function ApplyToInstance(object: Instance, properties: {[string]: any}): Instance
if properties then
for Property, Value in prop... | 350 |
latte-soft/lucide-roblox | latte-soft-lucide-roblox-11213a3/version-info.luau | luau | .luau | return {
PackageVersion = "0.1.3", -- The version of the `lucide-roblox` package
LucideVersion = "0.363.0", -- The version of the Lucide icon set itself the package ver noted above is on
}
| 59 |
devSparkle/Overture | devSparkle-Overture-2fb6a03/src/Overture.luau | luau | .luau | --!nonstrict
--// Initialization
local RunService = game:GetService("RunService")
local CollectionService = game:GetService("CollectionService")
--[=[
@class Overture
The core of Overture revolves around the management of libraries.
In Overture, a library is any ModuleScript which is tagged with the Collection... | 1,947 |
creepersaur/quark | creepersaur-quark-0ef88d1/handler/events.luau | luau | .luau | export type ALL_EVENTS =
"WriteActivityHistoryEventFromStudio"
| "AnimationPlayed"
| "Stopped"
| "DidLoop"
| "Ended"
| "KeyframeReached"
| "UserGuiRenderingChanged"
| "TopbarTransparencyChangedSignal"
| "CoreGuiChangedSignal"
| "OnClientEvent"
| "OnServerEvent"
| "Event"
| "ActionActivatedSignal"
| "FindV... | 799 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/examples/Stories/.storybook.luau | luau | .luau | local storybook = {
name = "Examples",
storyRoots = {
script.Parent,
},
}
return storybook | 26 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/examples/Stories/Button_ToolTip.story/ToolTip.luau | luau | .luau | -- elements created by functions can take parameters
-- Visible is a state that that tells the tooltip to show
return function(Scope, tool_text: string?, Hovering)
local New = Scope.New
local Spring = Scope.Animations.Spring
local text = tool_text or "ToolTip"
local Visible = Scope.State(function(use)
if use(Hov... | 377 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/examples/Stories/Button_ToolTip.story/init.luau | luau | .luau | local ReplicatedStorage = game:GetService "ReplicatedStorage"
local Button = require(script.Button)
local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New
-- The Story
return function(Parent)
local ButtonData: { [string]: string } = {
["Continue"] = "Continue the game",
["New Game"] = "Start... | 418 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/examples/Stories/Computed.story.luau | luau | .luau | local ReplicatedStorage = game:GetService "ReplicatedStorage"
local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New
local State = Quark.State
local Hook = Quark.Hook
return function(parent)
local Counter = State(0)
-- Tip text
New "TextLabel" {
Text = "Click the buttons. These update autom... | 426 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/examples/Stories/Entries.story.luau | luau | .luau | local ReplicatedStorage = game:GetService "ReplicatedStorage"
local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New
local Entries = Quark.Entries
local Hook = Quark.Hook
return function(parent: Instance)
local E = Entries(10, function(Scope, i: number)
return Scope.New "TextLabel" {
Positi... | 246 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/examples/Stories/Notepad.story/NewNote.luau | luau | .luau | return function(Scope)
local New = Scope.New
local Main = New "Frame" {
Size = UDim2.new(1, 0, 0, 30),
BackgroundTransparency = 1
}
local Button = New "TextButton" {
Text = "New Note",
BackgroundTransparency = 0.9,
TextColor3 = Color3.new(1,1,1),
Size = UDim... | 124 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/examples/Stories/Notepad.story/Note.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Quark = require(ReplicatedStorage.Shared.Quark)
return function(Scope: Quark.Scope, text: string?)
local New = Scope.New
local Spring = Scope.Animations.Spring
local Hook = Scope.Hook
local Main = New "Frame" {
Size = UDim2.new(1, -10, 0, 50),... | 567 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/examples/Stories/Notepad.story/NoteHolder.luau | luau | .luau | local Note = require(script.Parent.Note)
return function(Scope)
local New = Scope.New
local Main = New "Frame" {
Size = UDim2.fromScale(1, 1),
BackgroundColor3 = Color3.new(),
BackgroundTransparency = 0.85,
BorderSizePixel = 0,
children = {
New "UIListLayout" {... | 173 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/examples/Stories/Notepad.story/init.luau | luau | .luau | local ReplicatedStorage = game:GetService "ReplicatedStorage"
local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New
local NewNote = require(script.NewNote)
local NoteHolder = require(script.NoteHolder)
-- Slightly more advanced, I suggest you look into `Button_ToolTip.story` first.
local contr... | 488 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/examples/Stories/PropertyState.story.luau | luau | .luau | local ReplicatedStorage = game:GetService "ReplicatedStorage"
local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New
local Hook = Quark.Hook
return function(parent: Instance)
-- This state controls text.
-- Text will auto-update when set to this state.
local Hovering = Quark.State "Hover over ... | 426 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/examples/Stories/Spring.story.luau | luau | .luau | local ReplicatedStorage = game:GetService "ReplicatedStorage"
local Quark = require(ReplicatedStorage.Shared.Quark)
local Spring = Quark.Animations.Spring
local New = Quark.New
local State = Quark.State
local Hook = Quark.Hook
-- Spring settings can be States
local SpringSettings = {
Elasticity = State(0.1),
Stiffn... | 541 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/examples/Stories/_.story.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New
return Quark.CreateStory(function()
local baseSCOPE = Quark.Scope()
local ScopeA = baseSCOPE.Scope()
local ScopeB = baseSCOPE.Scope()
print(Quark._CreatedScopes)
return New... | 189 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/examples/Stories/style.story.luau | luau | .luau | local ReplicatedStorage = game:GetService "ReplicatedStorage"
local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New
Quark.Stylesheet "Hello" {
TextLabel = {
BackgroundColor3 = Color3.new(0.2, 0.5, 1),
Text = "Instance: TextLabel",
},
[Quark.Class "BIG"] = {
TextSize = 30,
BackgroundCo... | 502 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/examples/Stories/tween.story.luau | luau | .luau | local ReplicatedStorage = game:GetService "ReplicatedStorage"
local TweenService = game:GetService "TweenService"
local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New
local Hook = Quark.Hook
return function(parent)
local START = UDim2.fromOffset(0, 50)
local TARGET = UDim2.new(0.15, 0, 0, 50)... | 483 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Animations/Loop.luau | luau | .luau | local RunService = game:GetService("RunService")
local Types = require(script.Parent.Parent.Types)
return function()
local Reactive = require(script.Parent.Parent.Reactive)()
local LoopModule = {
Created = {},
}
local Loop = {}
Loop.__index = Loop
function LoopModule.new(): Types.Loop
local self = setmet... | 460 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Animations/Spring.luau | luau | .luau | local RunService = game:GetService("RunService")
local Types = require(script.Parent.Parent.Types)
local ValueMath = require(script.Parent.ValueMath)
return function()
local Reactive = require(script.Parent.Parent.Reactive)()
local SpringModule = {
Created = {},
}
local Spring = {}
Spring.__index = Spring
... | 950 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Animations/Tween.luau | luau | .luau | local RunService = game:GetService("RunService")
local Types = require(script.Parent.Parent.Types)
local ValueMath = require(script.Parent.ValueMath)
return function()
local Reactive = require(script.Parent.Parent.Reactive)()
local TweenModule = {
Created = {},
}
local Tween = {}
Tween.__index = Tween
func... | 1,987 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Animations/ValueMath.luau | luau | .luau | local function lerp(start, finish, alpha: number, clamp: boolean?)
-- Clamp alpha between 0 and 1
if clamp then
alpha = math.clamp(alpha, 0, 1)
end
-- Handle different data types
local startType = typeof(start)
local finishType = typeof(finish)
-- Check if types match
if startType ~= finishType then
error... | 1,687 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Animations/init.luau | luau | .luau | return function()
local Animations = {
_Created = {},
}
local ValueMath = require(script.ValueMath)
Animations.ValueMath = ValueMath
local Spring = require(script.Spring)()
Spring.Created = Animations._Created
Animations.Spring = Spring.new
local Tween = require(script.Tween)()
Tween.Created = Animations.... | 112 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Components/Cleanup.luau | luau | .luau | return function()
local Created = {}
local Scopes = {}
local CleanupQueued = {
PostCleanup = {},
PreCleanup = {},
}
-- Cleans up the current Quark scope
local function Cleanup()
for _, v in CleanupQueued.PreCleanup do
task.spawn(v)
end
for _, list in Created do
for _, v in list do
if typeof(... | 407 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Components/CreateStory.luau | luau | .luau | return function()
local Types = require(script.Parent.Parent.Types)
local module = {
Quark = nil,
}
-- takes in a function which returns an Instance (or state)
-- returns a function that returns a Cleanup function
function module.CreateStory(
StoryFunc: (Target: Instance) -> Instance | Types.New<any> | { Ins... | 222 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Components/New.luau | luau | .luau | return function()
local all_events = require(script.Parent.Parent.Misc.all_events)
local custom_properties = require(script.Parent.Parent.Misc.custom_properties)
local State = require(script.Parent.Parent.Reactive.State)()
local Types = require(script.Parent.Parent.Types)
local all_instances = require(script.Paren... | 1,733 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Components/Scope.luau | luau | .luau | local Scope = {}
function Scope.new(created)
local base = require(script.Parent.Parent.QuarkBase)()
base.Scope = function()
return Scope.new(base)
end
table.insert(created, base)
return base
end
return Scope | 48 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Misc/custom_properties.luau | luau | .luau | export type CUSTOM_PROPERTIES = {
children: { any } | any,
class: string,
style: { any },
}
export type StyleProperties = {
[string]: {
corner: UDim | number?,
corner_radius: UDim | number?,
aspect_ratio: number?,
aspect: number?,
stroke: {
Thickness: number?,
Color: Color3?,
ApplyStrokeMode: E... | 200 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Misc/default_properties.luau | luau | .luau | return {
["TextLabel"] = {
Size = UDim2.fromOffset(200, 50),
BackgroundColor3 = Color3.new(1, 1, 1),
BorderSizePixel = 0,
},
["TextBox"] = {
Size = UDim2.fromOffset(200, 50),
BackgroundColor3 = Color3.new(1, 1, 1),
BorderSizePixel = 0,
},
["TextButton"] = {
Size = UDim2.fromOffset(200, 50),
Backgro... | 441 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/QuarkBase.luau | luau | .luau | function new()
local Quark = {
_CreatedScopes = {},
Scope = function(): Scope
return nil::any
end
}
--[[ REACTIVE ]]
local Reactive = require(script.Parent.Reactive)()
Reactive.Quark = Quark
Quark.State = Reactive.State
Quark.Signal = Reactive.Signal
Quark.Entries = Reactive.Entries
--[[ NEW ]]
lo... | 411 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Reactive/Entries.luau | luau | .luau | local quicklist = require(script.Parent.Parent.quicklist)
local Types = require(script.Parent.Parent.Types)
return function()
local Entries: any = {
Created = {},
}
function Entries.new(n, func)
local Quark = Entries.Reactive.Quark
local Children = quicklist()
local entry = {
Scope = Quark.Scope(),
C... | 725 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Reactive/Signal.luau | luau | .luau | local Types = require(script.Parent.Parent.Types)
return function()
local module = {
Created = {},
}
local Signal = {}
Signal.__index = Signal
function Signal:Disconnect()
if self.state_object[1] then
for _, state in self.state_object do
if state.connections[self.id] then
state.connections[self.... | 262 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Reactive/State.luau | luau | .luau | local Types = require(script.Parent.Parent.Types)
return function()
local Signal = require(script.Parent.Signal)()
local module = {
Created = {},
}
local function HandleComputedState(default, self)
if type(default) == "function" then
coroutine.wrap(function()
self.value = default(function(dependency: T... | 490 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Reactive/init.luau | luau | .luau | return function()
local State = require(script.State)()
local Signal = require(script.Signal)()
local Entries = require(script.Entries)()
local Reactive = {
Created = {},
}
State.Created = Reactive.Created
Signal.Created = Reactive.Created
Entries.Created = Reactive.Created
Entries.Reactive = Reactive
Rea... | 97 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Styles/StyleSheet.luau | luau | .luau | local all_properties = require(script.Parent.Parent.Misc.all_properties)
local custom_properties = require(script.Parent.Parent.Misc.custom_properties)
local Types = require(script.Parent.Parent.Types)
return function()
local module = {
Created = {},
_class_id = "__class__",
}
function module.Class(name: strin... | 1,121 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Styles/init.luau | luau | .luau | return function()
local Stylesheet = require(script.Stylesheet)()
local Styles = {
Created = {},
}
Styles.Stylesheet = Stylesheet
Styles.Created = Stylesheet.Created
return Styles
end
| 46 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/Types.luau | luau | .luau | local all_properties = require(script.Parent.Misc.all_properties)
local all_events = require(script.Parent.Misc.all_events)
local all_instances = require(script.Parent.Misc.all_instances)
local custom_properties = require(script.Parent.Misc.custom_properties)
local quicklist = require(script.Parent.quicklist)
type Stat... | 1,856 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/init.luau | luau | .luau | local QuarkBase = require(script.QuarkBase)
local Quark = QuarkBase()
local Scope = require(script.Components.Scope)
Quark.Scope = function()
return Scope.new(Quark._CreatedScopes)
end
return (Quark :: any) :: QuarkBase.Quark | 59 |
creepersaur/quark | creepersaur-quark-0ef88d1/src/shared/Quark/quicklist.luau | luau | .luau | ql = {}
export type QuickList<T> = {
t: { [number]: T },
copy: () -> QuickList<T>,
deep_copy: () -> QuickList<T>,
insert: (pos: number?, value: T) -> QuickList<T>,
append: (...T) -> QuickList<T>,
append_table: (_table: { [T]: T }) -> QuickList<T>,
join: (sep: string?) -> string,
split: (index: number?) -> Quic... | 4,313 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/PackageLinks/default/Fusion.luau | luau | .luau | local Fusion = require(script.Parent.Parent.Parent.Parent["elttob_fusion@0.3.0"]["fusion"])
type Fusion = typeof(Fusion)
export type Animatable = Fusion.Animatable
export type UsedAs<T> = Fusion.UsedAs<T>
export type Child = Fusion.Child
export type Computed<T> = Fusion.Computed<T>
export type Contextual<T> = Fusion.C... | 232 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/PackageLinks/default/Highlighter.luau | luau | .luau | return require(script.Parent.Parent.Parent.Parent["boatbomber_highlighter@0.8.3"]["highlighter"])
| 24 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Accordion.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Components = script.Parent
local CoreComponents = Components.Core
local Squircle = require(CoreComponents.Squircle)
local TextLabel = require(CoreComponents.TextLabel)
local Arrow = require(CoreComp... | 1,569 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Background.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 125 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Button.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 1,178 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Checkbox.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Components = script.Parent
local CoreComponents = Components.Core
local Squircle = require(CoreComponents.Squircle)
local Modules = script.Parent.Parent.Modules
local Component = require(Modules.Co... | 787 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Container.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Components = script.Parent
local CoreComponents = Components.Core
local Squircle = require(CoreComponents.Squircle)
local TextLabel = require(CoreComponents.TextLabel)
local Arrow = require(CoreComp... | 2,291 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Core/Arrow.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 629 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Core/CodeLabel.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local CoreComponents = script.Parent
local TextLabel = require(CoreComponents.TextLabel)
local Modules = script.Parent.Parent.Parent.Modules
local Component = require(Modules.Component)
local Packages =... | 224 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Core/FocusVisual.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
local GuiService = game:GetService("GuiService")
-------------------------------------------------------------------------------------------------------
--> Modules -------------------------------------... | 535 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Core/Squircle.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 278 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Core/TextLabel.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Parent.Modules
local Component = require(Modules.Component)
local ComputeTransforms = require(Modules.ComputeTransforms)
local TableUtils = require(Modules.TableUtils)... | 594 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/EmbeddedContainer.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local CoreComponents = script.Parent.Core
local Squircle = require(CoreComponents.Squircle)
local Modules = script.Parent.Parent.Modules
local Component = require( Modules.Component)
local CombineProps =... | 678 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/ImageBackground.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Modules
local Component = require(Modules.Component)
local CombineProps = require(Modules.CombineProps)
local TableUtils = require(Modules.TableUtils)
local Packages ... | 483 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Map.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Components = script.Parent
local Container = require(Components.Container)
local TextInput = require(Components.TextInput)
local CoreComponents = Components.Core
local TextLabel = require(CoreCompo... | 2,823 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Navigation.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Components = script.Parent
local CoreComponents = Components.Core
local Squircle = require(CoreComponents.Squircle)
local Modules = script.Parent.Parent.Modules
local Component = require(Modules.Co... | 2,072 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Padding/PaddingLarge.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Parent.Modules
local Component = require(Modules.Component)
-------------------------------------------------------------------------------------------------------
r... | 97 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Padding/PaddingSmall.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Parent.Modules
local Component = require(Modules.Component)
-------------------------------------------------------------------------------------------------------
r... | 97 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Progress.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local CoreComponents = script.Parent.Core
local Squircle = require(CoreComponents.Squircle)
local TextLabel = require(CoreComponents.TextLabel)
local Modules = script.Parent.Parent.Modules
local Componen... | 1,306 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Scrollable.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Modules
local Component = require(Modules.Component)
local CombineProps = require(Modules.CombineProps)
local ForceToState = require(Modules.ForceToState)
local TableU... | 1,101 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Slider.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 1,652 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.