repo
stringclasses
350 values
file_path
stringlengths
29
200
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.01M
tokens
int64
2
598k
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Themer/OnyxNight.luau
luau
.luau
local OnyxUI = script.Parent.Parent local Util = require(OnyxUI.Util) local NewTheme = require(script.Parent.NewTheme) local Fusion = require(OnyxUI.Parent.Fusion) local Scope = Fusion.scoped(Fusion) local OnyxNight = NewTheme(Scope, { Colors = { Primary = { Main = Util.Colors.Violet["500"], }, Secondary = ...
491
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Util/Colors.luau
luau
.luau
--[=[ @prop Colors table @within Util @readonly Colors imported from [TailwindCSS's color palette](https://tailwindcss.com/docs/customizing-colors#default-color-palette). ]=] return { Black = Color3.fromHex("#000"), White = Color3.fromHex("#fff"), Slate = { ["50"] = Color3.fromHex("#f8fafc"), ["100"]...
4,032
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Util/CombineProps.luau
luau
.luau
--[=[ @function CombineProps @within Util @param Source Fusion.PropertyTable @param Target Fusion.PropertyTable @param ExcludedKeys { any }? @return Fusion.PropertyTable Combines two sets of props for easy passthrough, adding `Source`'s props to `Target`. If a prop is already in `Target`, it will be o...
254
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Util/EnsureValue.luau
luau
.luau
--[=[ @function EnsureValue @within Util @param Scope Fusion.Scope<any> @param Value Fusion.UsedAs<any> @return Fusion.Value<Fusion.Scope<any>, any> Converts the `Value` argument to a `Fusion.Value` object, if it is not one already. ]=] local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent....
154
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Util/Fallback.luau
luau
.luau
--[=[ @function Fallback @within Util @param Value Fusion.UsedAs<any> @param Fallback any @return any Defaults the given `Value` to `Fallback` if nil. ]=] local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) export type Any = Fusion.UsedAs<any> export type AnyDictionary = Any | { ...
273
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Util/Unit.luau
luau
.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Unit = {} --[=[ @function Vector2 @within Util @param Scope Fusion.Scope(typeof(Fusion)) @param X Fusion.UsedAs<number> @param Y Fusion.UsedAs<number> @return Fusion.Computed<Vector2> ]=] function Unit.Vector2( Scope: Fusio...
805
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Util/ViewportSize.luau
luau
.luau
local Workspace = game:GetService("Workspace") local ViewportSize = { Size = Vector2.new(), SizeListener = nil, Observers = {}, } function ViewportSize:Observe(Callback: (Vector2) -> ()) table.insert(ViewportSize.Observers, Callback) Callback(ViewportSize.Size) end function ViewportSize:_SetSize(Size: Vector2) ...
222
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Util/init.luau
luau
.luau
--[=[ @class Util Important utilities for UI development. ]=] local Colors = require(script.Colors) local EnsureValue = require(script.EnsureValue) local CombineProps = require(script.CombineProps) local Fallback = require(script.Fallback) local Emphasize = require(script.Emphasize) local Unit = require(script....
168
latte-soft/wax
latte-soft-wax-9101ac5/.luau/wax.d.luau
luau
.luau
declare wax: { version: string, envname: string, shared: {[any]: any}, script: LuaSourceContainer, require: (...any) -> ...any, }
41
latte-soft/wax
latte-soft-wax-9101ac5/examples/hello-wax-and-fusion/src/init.client.luau
luau
.luau
local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local PlayerGui = LocalPlayer:FindFirstChildWhichIsA("PlayerGui") local Fusion = require(script.Fusion) local New = Fusion.New local Children = Fusion.Children local Value = Fusion.Value local Computed = Fusion.Computed local ValueCh...
437
latte-soft/wax
latte-soft-wax-9101ac5/examples/react-roblox/src/init.client.luau
luau
.luau
local Players = game:GetService("Players") local React = require(script.ReactLuau.React) local ReactRoblox = require(script.ReactLuau.ReactRoblox) local e = React.createElement local LocalPlayer = Players.LocalPlayer local PlayerGui = LocalPlayer.PlayerGui local Element = e("ScreenGui", {}, { e("TextLabel", { ...
151
latte-soft/wax
latte-soft-wax-9101ac5/lune/lib/BundleModel.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to> local luau = require("@lune/luau") local roblox = require("@lune/roblox") local LuneUtils = require("./libraries/LuneUtils") local Log = LuneUtils.Log local StringUtils = LuneUtils.StringUtils local LuaEncode = require("./libraries/LuaEncod...
2,053
latte-soft/wax
latte-soft-wax-9101ac5/lune/lib/data/DefaultDarkluaConfig.luau
luau
.luau
local serde = require("@lune/serde") local Config = { generator = { name = "dense", column_span = 120, }, rules = { "convert_index_to_field", "compute_expression", "group_local_assignment", "filter_after_early_return", "remove_comments", "rem...
143
latte-soft/wax
latte-soft-wax-9101ac5/lune/lib/data/Template.luau
luau
.luau
-- This codegen template *must* be 100% compatible with Lua 5.1x+, NOT just Luau -- With that being said, this explains the weird cflow in some parts return [[ -- ++++++++ WAX BUNDLED DATA BELOW ++++++++ -- -- Will be used later for getting flattened globals local ImportGlobals -- Holds direct closure data (defining...
3,664
latte-soft/wax
latte-soft-wax-9101ac5/lune/lib/data/Version.luau
luau
.luau
return "0.4.2"
8
latte-soft/wax
latte-soft-wax-9101ac5/lune/lib/libraries/LuneUtils/CommandUtils.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to> local process = require("@lune/process") local CommandUtils = {} function CommandUtils.CommandExists(binary: string): boolean if process.os ~= "windows" then -- Unix-compliance is simple! return process.exec("type", { binary }, { shell ...
176
latte-soft/wax
latte-soft-wax-9101ac5/lune/lib/libraries/LuneUtils/EnsureFileTree.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to> local fs = require("@lune/fs") --[[ This kinda looks like a strange function, because of the format a "FileTree" accepts: ```lua EnsureFileTree({ ["test"] = { ["test.txt"] = "hi", ["test.json"] = "...
303
latte-soft/wax
latte-soft-wax-9101ac5/lune/lib/libraries/LuneUtils/ParseArgs.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2025 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: { ...
485
latte-soft/wax
latte-soft-wax-9101ac5/lune/lib/libraries/LuneUtils/RecursiveReadDir.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to> local fs = require("@lune/fs") local function RecursiveReadDir(directory: string, _existingFileList: { string }?): { string } if not string.match(directory, "[/\\]$") then directory ..= "/" end local FileList = _existingFileList or {} ...
155
latte-soft/wax
latte-soft-wax-9101ac5/lune/lib/libraries/LuneUtils/Run.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2025 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.ExecResult local Args = args or {} local Direc...
219
latte-soft/wax
latte-soft-wax-9101ac5/lune/lib/libraries/LuneUtils/init.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to> return { Log = require("./LuneUtils/Log"), StringUtils = require("./LuneUtils/StringUtils"), CommandUtils = require("./LuneUtils/CommandUtils"), WebhookQueue = require("./LuneUtils/WebhookQueue"), Run = require("./LuneUtils/Run"), Parse...
128
latte-soft/wax
latte-soft-wax-9101ac5/lune/make.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to> local fs = require("@lune/fs") local process = require("@lune/process") local LuneUtils = require("./lib/libraries/LuneUtils") local Log = LuneUtils.Log local StringUtils = LuneUtils.StringUtils local CommandUtils = LuneUtils.CommandUtils lo...
617
latte-soft/wax
latte-soft-wax-9101ac5/lune/run-tests.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to> -- This is a basic automated "test" runner, just for overlooking basic -- functionality and making sure everything works as expected and implemented local fs = require("@lune/fs") local process = require("@lune/process") local LuneUtils = re...
938
latte-soft/wax
latte-soft-wax-9101ac5/lune/test-codegen.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to> local fs = require("@lune/fs") local BundleModel = require("./lib/BundleModel") local FilePath = "junk/testgen.lua" local ModelCodegen = BundleModel({}) fs.writeFile(FilePath, ModelCodegen)
72
latte-soft/wax
latte-soft-wax-9101ac5/tests/errors/src/BadRequire.server.luau
luau
.luau
print(require("Path/Does/Not/Exist"))
11
latte-soft/wax
latte-soft-wax-9101ac5/tests/errors/src/CompilerError.server.luau
luau
.luau
a
2
latte-soft/wax
latte-soft-wax-9101ac5/tests/errors/src/RuntimeError.server.luau
luau
.luau
error("This is an intentional error message")
9
latte-soft/wax
latte-soft-wax-9101ac5/tests/errors/src/ScopeExit.server.luau
luau
.luau
error("This error is intentional, but shouldn't be in the scope of this virtual script itself", 3)
23
latte-soft/wax
latte-soft-wax-9101ac5/tests/hello-wax/src/CoolModule.luau
luau
.luau
return "Hello, Wax! (Bundled w/ Wax v" .. wax.version .. ")"
20
latte-soft/wax
latte-soft-wax-9101ac5/tests/hello-wax/src/init.server.luau
luau
.luau
print(require(script.CoolModule))
7
latte-soft/wax
latte-soft-wax-9101ac5/tests/instance-methods/src/Child/AnotherChild/AScript.luau
luau
.luau
return "hi"
4
latte-soft/wax
latte-soft-wax-9101ac5/tests/instance-methods/src/Child/AnotherChild2/NestedChild/AScript.luau
luau
.luau
return "hi2"
5
latte-soft/wax
latte-soft-wax-9101ac5/tests/instance-methods/src/init.server.luau
luau
.luau
print("All descendant GetFullName() results:") for _, Ref in next, script:GetDescendants() do print(Ref:GetFullName()) end print("\nAll children of `Child` folder:") for _, Ref in next, script.Child:GetChildren() do print(Ref:GetFullName()) end print("\nFindFirstChild() result for \"AScript\" under \"AnotherC...
184
latte-soft/wax
latte-soft-wax-9101ac5/tests/string-requires/src/CoolModule.luau
luau
.luau
return "Hello, Wax! (New Funky Mode)"
12
latte-soft/wax
latte-soft-wax-9101ac5/tests/string-requires/src/FolderWithInit/init.luau
luau
.luau
return "Modules with 'init' work"
9
latte-soft/wax
latte-soft-wax-9101ac5/tests/string-requires/src/OtherScript.server.luau
luau
.luau
print(require("FolderWithInit/init"))
8
latte-soft/wax
latte-soft-wax-9101ac5/tests/string-requires/src/init.server.luau
luau
.luau
print(require("CoolModule"))
6
latte-soft/wax
latte-soft-wax-9101ac5/tests/vararg/src/init.server.luau
luau
.luau
print("\"...\": ", ...)
6
latte-soft/wax
latte-soft-wax-9101ac5/tests/wax-global/src/init.server.luau
luau
.luau
print("wax.version: ", wax.version) print("wax.envname: ", wax.envname) print("wax.shared: ", wax.shared) print("wax.script: ", wax.script) print("wax.require: ", wax.require)
52
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/examples/Client/Observers/AntiGravity.luau
luau
.luau
local ReplicatedStorage = game:GetService('ReplicatedStorage') local RunService = game:GetService('RunService') local QuickZone = require(ReplicatedStorage.QuickZone) local SharedGroups = require(ReplicatedStorage.Common.Groups) local SharedZones = require(ReplicatedStorage.Common.Zones) local localPlayer = game:GetS...
278
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/examples/Client/Observers/CameraEffects.luau
luau
.luau
local ReplicatedStorage = game:GetService('ReplicatedStorage') local Lighting = game:GetService('Lighting') local QuickZone = require(ReplicatedStorage.QuickZone) local SharedZones = require(ReplicatedStorage.Common.Zones) local DEFAULTS = { Brightness = Lighting.Brightness, Ambient = Lighting.Ambient, FogEnd = Li...
420
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/examples/Client/Observers/Disco.luau
luau
.luau
local ReplicatedStorage = game:GetService('ReplicatedStorage') local RunService = game:GetService('RunService') local QuickZone = require(ReplicatedStorage.QuickZone) local SharedGroups = require(ReplicatedStorage.Common.Groups) local discoPart = workspace:WaitForChild('DiscoPart') local defaultColor = discoPart.Colo...
277
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/examples/Client/Observers/SpeedBoost.luau
luau
.luau
local ReplicatedStorage = game:GetService('ReplicatedStorage') local TweenService = game:GetService('TweenService') local QuickZone = require(ReplicatedStorage.QuickZone) local SharedGroups = require(ReplicatedStorage.Common.Groups) local SharedZones = require(ReplicatedStorage.Common.Zones) local camera = workspace....
382
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/examples/Client/Runtime.client.luau
luau
.luau
while not game:IsLoaded() do game.Loaded:Wait() end local ReplicatedStorage = game:GetService('ReplicatedStorage') local QuickZone = require(ReplicatedStorage.QuickZone) QuickZone:configure({ enabled = true, autoSyncRate = 30, frameBudget = 1, }) for _, instance in script.Parent.Observers:GetChildren() do if in...
98
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/examples/Common/Groups.luau
luau
.luau
local RunService = game:GetService('RunService') local QuickZone = require(game.ReplicatedStorage.QuickZone) local Group = QuickZone.Group --[=[ Put groups here only if they need to be accessed by multiple scripts. (e.g., The "Players" group is used by Hazards, SafeZones, and Disco). ]=] local Groups = { Players =...
106
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/examples/Server/Observers/Hazards.luau
luau
.luau
local ReplicatedStorage = game:GetService('ReplicatedStorage') local RunService = game:GetService('RunService') local QuickZone = require(ReplicatedStorage.QuickZone) local SharedGroups = require(ReplicatedStorage.Common.Groups) local SharedZones = require(ReplicatedStorage.Common.Zones) local hazardObserver = QuickZ...
262
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/examples/Server/Observers/SafeZone.luau
luau
.luau
local ReplicatedStorage = game:GetService('ReplicatedStorage') local QuickZone = require(ReplicatedStorage.QuickZone) local SharedGroups = require(ReplicatedStorage.Common.Groups) local safeZonePart = workspace:WaitForChild('SafeZone') local safeZone = QuickZone.Zone.fromPart(safeZonePart) local safeObserver = Quick...
226
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/examples/Server/Runtime.server.luau
luau
.luau
local ReplicatedStorage = game:GetService('ReplicatedStorage') local QuickZone = require(ReplicatedStorage.QuickZone) QuickZone:configure({ enabled = true, autoSyncRate = 30, frameBudget = 1, }) for _, instance in script.Parent.Observers:GetChildren() do if instance:IsA('ModuleScript') then require(instance) e...
82
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/src/Classes/Group.luau
luau
.luau
--!strict --[=[ @class Group Groups represent a collection of entities that should be tracked by the system. :::info Observer Every entity must be in a group to be observed. ::: ]=] local CollectionService = game:GetService('CollectionService') local Players = game:GetService('Players') local RunService = game...
4,480
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/src/Classes/Observer.luau
luau
.luau
--!strict --[=[ @class Observer Observers are the logical bridge between Groups and Zones. They monitor specific groups and trigger events when entities within those groups enter or exit any zones associated with the observer. ]=] local Players = game:GetService('Players') local RunService = game:GetService('Ru...
10,352
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/src/Config.luau
luau
.luau
--!strict local Config = {} -- Static enums used to determine how to read an entity's position Config.Strategy = { POS = 1, PRIM = 2, WORLD = 3, CFRAME = 4, TRANSFORM = 5, PIVOT = 6, } Config.Group = { -- Entities are automatically cleaned up for that group if destroyed autoClean = true, } Config.Scheduler ...
372
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/src/Core/PlayerTracker.luau
luau
.luau
--!strict local Players = game:GetService('Players') local Types = require(script.Parent.Parent.Types) local State = require(script.Parent.State) local activeTrackers = {} :: { [Player]: () -> () } local playerSubscriptions = {} :: { [Player]: { [number]: Types.InternalGroup } } local PlayerTracker = {} local func...
904
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/src/Core/Scheduler.luau
luau
.luau
--!native --!optimize 2 --!strict local RunService = game:GetService('RunService') local Config = require(script.Parent.Parent.Config) local Types = require(script.Parent.Parent.Types) local Geometry = require(script.Parent.Parent.Utils.Geometry) local LinearBVH = require(script.Parent.Parent.Utils.LinearBVH) local L...
3,871
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/src/Core/State.luau
luau
.luau
--!strict local Types = require(script.Parent.Parent.Types) local State = { nextZoneId = 1, nextObserverId = 1, nextGroupId = 1, staticCFrames = {} :: { [number]: CFrame }, staticHalfSizes = {} :: { [number]: Vector3 }, staticTypes = {} :: { [number]: number }, dynamicCFrames = {} :: { [number]: CFrame }, d...
643
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/src/Types.luau
luau
.luau
--!strict --[=[ @type ShapeType "Block" | "Ball" | "Cylinder" | "Wedge" | "CornerWedge" @within QuickZone The geometric shape of a Zone. ]=] export type ShapeType = 'Block' | 'Ball' | 'Cylinder' | 'Wedge' | 'CornerWedge' --[=[ @interface EntityTable @within QuickZone .Position Vector3? .WorldPosition Vector3? ...
3,262
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/src/Utils/Geometry.luau
luau
.luau
--!native --!optimize 2 --!strict local BLOCK_SHAPE_VALUE = Enum.PartType.Block.Value local BALL_SHAPE_VALUE = Enum.PartType.Ball.Value local CYLINDER_SHAPE_VALUE = Enum.PartType.Cylinder.Value local WEDGE_SHAPE_VALUE = Enum.PartType.Wedge.Value local CORNER_WEDGE_SHAPE_VALUE = Enum.PartType.CornerWedge.Value local M...
1,320
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/src/Utils/LinearBVH.luau
luau
.luau
--!native --!optimize 2 --!strict local Geometry = require(script.Parent.Geometry) local Types = require(script.Parent.Parent.Types) local HUGE_VECTOR = vector.one * math.huge local NEGATIVE_HUGE_VECTOR = -HUGE_VECTOR local unionBounds = Geometry.unionBounds local getObjectBounds = Geometry.getObjectBounds local get...
1,415
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/src/Utils/Log.luau
luau
.luau
--!strict local Log = {} local function formatLog(messageTemplate: string, trace: string?, ...: any): string local messageText = string.format(messageTemplate, ...) messageText = `[QuickZone] {messageText}` local finalTrace = trace or debug.traceback('', 3) if finalTrace ~= '' then messageText ..= ` \n---- S...
232
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/src/init.luau
luau
.luau
--!strict --v1.4.7 • LDGerrits --[=[ @class QuickZone A high-performance, physics-free spatial query library for Roblox. Maintain 60 FPS with 1M+ zones. ]=] local RunService = game:GetService('RunService') local Types = require(script.Types) local Config = require(script.Config) local Scheduler = require(script.Co...
4,973
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/tests/Runtime.server.luau
luau
.luau
--!strict local ServerScriptService = game:GetService('ServerScriptService') local TestFolder = ServerScriptService.Test local TiniestFolder = TestFolder.Tiniest local SpecificationsFolder = TestFolder.Specifications local Tiniest = require(TiniestFolder.tiniest_for_roblox).configure({}) local tests = Tiniest.collec...
149
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/tests/Tiniest/tiniest.luau
luau
.luau
-- From dphfox/tiniest, licenced under BSD --!strict local tiniest_plugin = require("./tiniest_plugin") type Context = DescribeContext | RunContext type DescribeContext = { type: "describe", labels: {string}, add_test: (Test) -> () } type RunContext = { type: "run" } export type ErrorReport = { type: "tiniest...
1,423
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/tests/Tiniest/tiniest_expect.luau
luau
.luau
-- From dphfox/tiniest, licenced under BSD --!strict local tiniest_quote = require("./tiniest_quote") local tiniest_expect = {} type Context = { target: unknown, test: string, params: {unknown} } local context: Context = { target = nil, test = "", params = {} } local function fail( message: string? ): never...
1,098
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/tests/Tiniest/tiniest_for_roblox.luau
luau
.luau
-- From dphfox/tiniest, licenced under BSD --!strict local tiniest_expect = require("./tiniest_expect") local tiniest_time = require("./tiniest_time") local tiniest_pretty = require("./tiniest_pretty") local tiniest = require("./tiniest") export type Options = { snapshot_path: string?, save_snapshots: boolean?, pr...
675
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/tests/Tiniest/tiniest_plugin.luau
luau
.luau
-- From dphfox/tiniest, licenced under BSD --!strict export type Plugin = { is_tiniest_plugin: true } local tiniest_plugin = {} function tiniest_plugin.configure( plugins: {any}? ) if plugins ~= nil then for index, plugin in plugins do if not plugin.is_tiniest_plugin then error(`sanity check: plugin #{in...
186
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/tests/Tiniest/tiniest_pretty.luau
luau
.luau
-- From dphfox/tiniest, licenced under BSD --!strict local tiniest_plugin = require("./tiniest_plugin") local tiniest = require("./tiniest") type Test = tiniest.Test type TestRunResult = tiniest.TestRunResult type RunResult = tiniest.RunResult export type Options = { plugins: nil | {tiniest_plugin.Plugin}, disable_...
1,820
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/tests/Tiniest/tiniest_quote.luau
luau
.luau
-- From dphfox/tiniest, licenced under BSD --!strict local function tiniest_quote( x: unknown, given_indent_amount: number? ): string if type(x) == "nil" or type(x) == "number" or type(x) == "boolean" or type(x) == "userdata" then return tostring(x) elseif type(x) == "string" then return string.fo...
434
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/tests/Tiniest/tiniest_time.luau
luau
.luau
-- From dphfox/tiniest, licenced under BSD --!strict local tiniest = require("./tiniest") local tiniest_pretty = require("./tiniest_pretty") type Test = tiniest.Test export type TestRunResult = tiniest.TestRunResult & { duration: number } export type RunResult = tiniest.RunResult & { duration: number } export type...
642
LDGerrits/QuickZone
LDGerrits-QuickZone-2878e0c/tests/Util.luau
luau
.luau
--!strict type InstanceTree = { className: string, properties: { [string]: any }?, children: { InstanceTree }?, } local PART_DEFAULTS: { [string]: any } = { Transparency = 1, Anchored = true, CanCollide = false, CanQuery = false, CanTouch = false, AudioCanCollide = false, EnableFluidForces = false, } local ...
318
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.env.example.luau
luau
.luau
return { ROBLOX_API_KEY = "API_KEY_HERE", DISCORD_CLIENT_ID = "YOUR_DISCORD_APP_CLIENT_ID", }
30
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/.config.luau
luau
.luau
return { luau = { languagemode = "strict", lint = { ["*"] = true }, linterrors = true, aliases = { batteries = "../Packages/lute@v1.0.0/batteries", dotenv = "../Packages/dotenv@v0.1.2/src", }, }, }
84
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/build.luau
luau
.luau
local cli = require("@batteries/cli") local dotenv = require("@dotenv") local fs = require("@std/fs") local path = require("@std/path") local pp = require("@batteries/pp") local process = require("@std/process") local richterm = require("@batteries/richterm") local toml = require("@batteries/toml") local buildSystem =...
1,680
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/lib/build-system/compileAsync.luau
luau
.luau
local fs = require("@std/fs") local path = require("@std/path") local copyInto = require("@scripts/lib/copyInto") local project = require("@repo/project") local run = require("@scripts/lib/run") local runBuildGroupAsync = require("@scripts/lib/build-system/runBuildGroupAsync") local types = require("@scripts/lib/build...
444
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/lib/build-system/init.luau
luau
.luau
local types = require("@self/types") export type BuildContext = types.BuildContext return { compileAsync = require("@self/compileAsync"), readBuildCacheAsync = require("@self/readBuildCacheAsync"), writeBuildCacheAsync = require("@self/writeBuildCacheAsync"), runBuildGroupAsync = require("@self/runBuildGroupAsync...
70
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/lib/build-system/runBuildGroupAsync.luau
luau
.luau
local fs = require("@std/fs") local process = require("@std/process") local richterm = require("@batteries/richterm") local hashPath = require("@scripts/lib/build-system/hashPath") local types = require("@scripts/lib/build-system/types") type BuildGroup = types.BuildGroup local function trimDecimals(n: number, decim...
404
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/lib/build-system/types.luau
luau
.luau
local path = require("@std/path") local BuildVars = require("@repo/plugin/src/BuildVars/Types") type BuildVars = BuildVars.BuildVars export type Channel = "prod" | "dev" export type Target = "creator-store" | "local" export type BuildCache = { -- Maps file path to MD5 hash [string]: string, } export type BuildCon...
152
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/lib/build-system/writeBuildVarsAsync.luau
luau
.luau
local fs = require("@std/fs") local json = require("@std/json") local path = require("@std/path") local project = require("@repo/project") local types = require("@scripts/lib/build-system/types") local function writeBuildVarsAsync(context: types.BuildContext) local contents = json.serialize(context.vars :: any, true...
105
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/lib/copyInto.luau
luau
.luau
local fs = require("@std/fs") local path = require("@std/path") local function copyInto(src: path.Pathlike, dest: path.Pathlike) if fs.type(src) == "dir" then fs.createDirectory(dest, { makeParents = true, }) for _, file in fs.listDirectory(src) do local filePath = path.join(src, file.name) local file...
146
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/lib/find.luau
luau
.luau
local path = require("@std/path") local findWhere = require("./findWhere") local function find(root: path.Pathlike, filenamePattern: string): { path.Path } return findWhere(root, function(filePath) local fileName = path.basename(filePath) return fileName and fileName:match(filenamePattern) ~= nil end) end retu...
71
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/lib/findWhere.luau
luau
.luau
local fs = require("@std/fs") local path = require("@std/path") local function findWhere(rootDirPath: path.Pathlike, matcher: (path: path.Pathlike) -> boolean?): { path.Path } assert(fs.type(rootDirPath) == "dir", "rootDirPath must be a directory") local descendants: { path.Path } = {} local function search(rootP...
183
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/lib/run.luau
luau
.luau
local path = require("@std/path") local process = require("@std/process") local richterm = require("@batteries/richterm") type Options = { cwd: path.Pathlike?, env: { [string]: string }?, captureOutput: boolean?, -- @DEPRECATED: Use `captureOutput` instead. stdio: any, } --[[ By default this function will retu...
413
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/lib/watch.luau
luau
.luau
local fs = require("@std/fs") local path = require("@std/path") local richterm = require("@batteries/richterm") local task = require("@lute/task") local getDescendants = require("./getDescendants") type Options = { roots: { path.Pathlike }, excludedFilePatterns: { string }?, onChanged: ((filePath: path.Path) -> ()...
420
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/lint.luau
luau
.luau
local path = require("@std/path") local process = require("@std/process") local findWhere = require("@scripts/lib/findWhere") local project = require("@repo/project") local run = require("@scripts/lib/run") local function findLuaFiles() local result = {} for _, folder in project.FOLDERS_TO_LINT do local matches ...
216
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/patch.luau
luau
.luau
local fs = require("@std/fs") local process = require("@std/process") local rawArgs = { ... } if rawArgs[1] == "patch" then table.remove(rawArgs, 1) end local PATCHES_DIR = "plugin/patches" local function printUsage() print("Usage: lute run patch <package-path>") print() print("Creates or updates a git-format pa...
947
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/setup.luau
luau
.luau
local fs = require("@std/fs") local json = require("@std/json") local path = require("@std/path") local process = require("@std/process") local project = require("@repo/project") local rawArgs = { ... } local function hasArg(name: string, alias: string?): boolean for _, arg in rawArgs do if arg == name or (alias ...
549
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/tasks/run-tests.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") -- This path is defined in tests.project.json local TestRunner = (require :: any)(ReplicatedStorage.StudioActivity.Bin.TestRunner) TestRunner.runTests() return nil
51
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/.lute/test.luau
luau
.luau
local cli = require("@batteries/cli") local dotenv = require("@dotenv") local path = require("@std/path") local process = require("@std/process") local system = require("@std/system") local project = require("@repo/project") local run = require("./lib/run") pcall(dotenv.config) local args = cli.parser() args:add("ap...
363
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/plugin/bin/Presence.plugin.luau
luau
.luau
local setup = require(script.Parent.setup) local setupMain = require(script.Parent.setupMain) setup(plugin, setupMain)
24
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/plugin/bin/TestRunner.luau
luau
.luau
local Plugin = script:FindFirstAncestor("StudioActivity") local Packages = Plugin.Packages local Charm = require(Packages.Charm) local Jest = require(Packages.Dev.Jest) local function runTests() local root = script.Parent.Parent.Source -- selene: allow(global_usage) _G.__DEV__ = true -- selene: allow(global_usag...
244
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/plugin/bin/createPluginLoader.luau
luau
.luau
--[[ The purpose of this module is to prevent the plugin loading heavy libraries (COUGH react) until the user actually interacts with it. ]] local StudioService = game:GetService("StudioService") --[[ Creates a signal that buffers events fired before any listener connects. On first connect, all buffered events ar...
1,655
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/plugin/bin/setup.luau
luau
.luau
local RunService = game:GetService("RunService") local Plugin = script:FindFirstAncestor("StudioActivity") local Packages = Plugin.Packages local Charm = require(Packages.Charm) local Telemetry = require(Plugin.Source.Telemetry.fireEventAsync) local Types = require(Plugin.Source.Telemetry.Types) local createPluginLo...
1,200
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/plugin/bin/setupGuest.luau
luau
.luau
--[[ Lightweight entry point used when the plugin loads inside a play-test data model rather than the edit data model. Play Solo creates two test data models (one server, one client) that each receive their own copy of the plugin. We don't run the full UI, auth, or presence pipeline in those data models; we just ...
726
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/plugin/bin/setupMain.luau
luau
.luau
local Plugin = script:FindFirstAncestor("StudioActivity") local createPluginLoader = require(script.Parent.createPluginLoader) -- The main function runs when the plugin is opened for the first time. -- Returns a cleanup function to be called during plugin unload. local function main(plugin: Plugin, pluginLoaderContex...
123
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/plugin/src/ActivityPreview/ActivityButtons.luau
luau
.luau
local Plugin = script:FindFirstAncestor("StudioActivity") local Packages = Plugin.Packages local Foundation = require(Packages.Foundation) local React = require(Packages.React) local ReactUtils = require(Packages.ReactUtils) local Types = require(script.Parent.Types) local View = Foundation.View local Button = Found...
412
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/plugin/src/ActivityPreview/ActivityDetails.luau
luau
.luau
local Plugin = script:FindFirstAncestor("StudioActivity") local Packages = Plugin.Packages local Foundation = require(Packages.Foundation) local React = require(Packages.React) local ReactUtils = require(Packages.ReactUtils) local Types = require(script.Parent.Types) local View = Foundation.View local Text = Foundat...
512
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/plugin/src/ActivityPreview/ActivityImage.luau
luau
.luau
local Plugin = script:FindFirstAncestor("StudioActivity") local Packages = Plugin.Packages local Foundation = require(Packages.Foundation) local React = require(Packages.React) local ReactCharm = require(Packages.ReactCharm) local AppAssetsStore = require(Plugin.Source.Api.AppAssetsStore) local Types = require(script...
744
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/plugin/src/ActivityPreview/ActivityPreview.luau
luau
.luau
local Plugin = script:FindFirstAncestor("StudioActivity") local Packages = Plugin.Packages local Foundation = require(Packages.Foundation) local React = require(Packages.React) local ReactUtils = require(Packages.ReactUtils) local ActivityButtons = require(script.Parent.ActivityButtons) local ActivityDetails = requir...
551
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/plugin/src/ActivityPreview/ActivityPreview.story.luau
luau
.luau
local Plugin = script:FindFirstAncestor("StudioActivity") local Packages = Plugin.Packages local Foundation = require(Packages.Foundation) local React = require(Packages.React) local Storyteller = require(Packages.Dev.Storyteller) local ActivityPreview = require(script.Parent.ActivityPreview) local View = Foundation...
257
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/plugin/src/ActivityPreview/ActivityTimer.luau
luau
.luau
local Plugin = script:FindFirstAncestor("StudioActivity") local Packages = Plugin.Packages local Foundation = require(Packages.Foundation) local React = require(Packages.React) local ReactUtils = require(Packages.ReactUtils) local useTimerText = require(script.Parent.useTimerText) local View = Foundation.View local ...
431
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/plugin/src/ActivityPreview/Types.luau
luau
.luau
export type ActivityButton = { label: string, url: string, } export type ActivityAssets = { largeImage: string?, largeText: string?, smallImage: string?, smallText: string?, } export type Activity = { name: string, details: string?, detailsUrl: string?, state: string?, stateUrl: string?, buttons: { Activi...
98
BrookenRecord/studio-activity
BrookenRecord-studio-activity-2d05cc2/plugin/src/ActivityPreview/init.luau
luau
.luau
return require(script.ActivityPreview)
6