repo
stringclasses
341 values
file_path
stringlengths
29
173
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.66M
tokens
int64
2
598k
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/core/init.luau
luau
.luau
const types = require '@self/types' const runner = require '@self/runner' const t = require '@lutest_release' export type TestSpec = types.TestSpec export type TestMode = types.TestMode export type HookFn = types.HookFn export type SuiteHooks = types.SuiteHooks export type TestScope = types.TestScope export type Runna...
232
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/core/types.luau
luau
.luau
export type TestMode = 'run' | 'skip' | 'only' | 'todo' export type TestFn = () -> () export type HookFn = () -> () export type SuiteHooks = { before_all: { HookFn }, before_each: { HookFn }, after_each: { HookFn }, after_all: { HookFn }, } export type TestScope = { name: string, hooks: SuiteHooks, } export ty...
476
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/core/version.luau
luau
.luau
const VALUE = '0.7.1' return { VALUE = VALUE, }
18
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/fixtures/wally-consumer/tests/wally_package.luau
luau
.luau
local ReplicatedStorage = game:GetService 'ReplicatedStorage' local t = (require :: any)((ReplicatedStorage :: any).Packages.lutest) local sequence = {} t.suite('Wally package consumer', function() t.before_each(function() table.insert(sequence, 'before') end) t.test('should execute through the packaged library...
112
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/game/client/inventory_hud.luau
luau
.luau
--!nocheck -- lute-lint-global-ignore(unused_variable) local ReplicatedStorage = game:GetService 'ReplicatedStorage' local catalog = require(script.Parent.Parent.shared.item_catalog) local t = require(ReplicatedStorage.Packages.lutest) local inventory_hud = {} function inventory_hud.format_slot(item_id: string, quan...
151
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/game/server/inventory_service.luau
luau
.luau
--!nocheck -- lute-lint-global-ignore(unused_variable) local ReplicatedStorage = game:GetService 'ReplicatedStorage' local inventory = require(script.Parent.Parent.shared.inventory) local t = require(ReplicatedStorage.Packages.lutest) local inventory_service = {} function inventory_service.create_for_player(player_i...
155
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/game/server/leaderstats.luau
luau
.luau
--!nocheck -- lute-lint-global-ignore(unused_variable) local ReplicatedStorage = game:GetService 'ReplicatedStorage' local t = require(ReplicatedStorage.Packages.lutest) local leaderstats = {} function leaderstats.create() local container = Instance.new 'Folder' container.Name = 'leaderstats' local _coins = Inst...
178
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/game/shared/inventory.luau
luau
.luau
--!nocheck -- lute-lint-global-ignore(unused_variable) local ReplicatedStorage = game:GetService 'ReplicatedStorage' local catalog = require(script.Parent.item_catalog) local t = require(ReplicatedStorage.Packages.lutest) local inventory = {} function inventory.new(capacity: number) return { capacity = capacity, ...
391
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/game/shared/item_catalog.luau
luau
.luau
--!nocheck local catalog = { apple = { id = 'apple', name = 'Apple', max_stack = 10, }, potion = { id = 'potion', name = 'Health Potion', max_stack = 5, }, } function catalog.get(item_id: string) return catalog[item_id] end return catalog
80
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/lib/context.luau
luau
.luau
const types = require '@core/types' const t = require '@lutest_release' export type TestSpec = types.TestSpec export type RuntimeRegister = (TestSpec) -> () local runtime_register = nil :: RuntimeRegister? local registration_owner = nil :: unknown? local session_depth = 0 const function begin_session() session_dept...
774
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/lib/init.luau
luau
.luau
const types = require '@core/types' const registry = require '@self/registry' const context = require '@self/context' const t = require '@lutest_release' export type TestSpec = types.TestSpec export type TestMode = types.TestMode export type HookFn = types.HookFn export type SuiteHooks = types.SuiteHooks export type T...
2,554
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/lib/registry.luau
luau
.luau
const types = require '@core/types' const t = require '@lutest_release' export type TestSpec = types.TestSpec export type TestMode = types.TestMode type TestBuckets = { [string]: { TestSpec } } const test_buckets = {} :: TestBuckets local active_module_identity = nil :: string? const function bucket_for(module_iden...
1,213
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/runtimes/lute/config.luau
luau
.luau
const fs = require '@std/fs' const stringext = require '@std/stringext' const errors = require '@core/errors' const path_utils = require '@lutest/utils/path' const t = require '@lutest_release' export type RuntimeName = 'lute' | 'roblox' export type LutestConfig = { roots: { string }, ignore: { string }, require: s...
3,488
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/runtimes/lute/init.luau
luau
.luau
const core = require '@core' const config = require '@runtimes/lute/config' const discovery = require '@runtimes/lute/discovery' const runner = require '@runtimes/lute/runner' const t = require '@lutest_release' export type TestSuite = core.TestSuite export type TestSuiteResult = core.TestSuiteResult export type Lutes...
233
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/runtimes/roblox/credentials.luau
luau
.luau
const fs = require '@std/fs' const path = require '@std/path' const process = require '@std/process' const stringext = require '@std/stringext' const errors = require '@core/errors' const path_utils = require '@lutest/utils/path' const t = require '@lutest_release' const ENVIRONMENT_KEY = 'ROBLOX_OPEN_CLOUD_API_KEY' ...
497
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/runtimes/roblox/discovery.luau
luau
.luau
const config = require '@runtimes/lute/config' const lute_discovery = require '@runtimes/lute/discovery' const fs = require '@std/fs' const path_utils = require '@lutest/utils/path' const t = require '@lutest_release' const query = require '@std/syntax/query' const syntax = require '@std/syntax' const utils = require '...
1,922
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/runtimes/roblox/embedded_assets.luau
luau
.luau
export type EmbeddedAssets = { library: { [string]: string }, bundle_script: string, } return { library = {}, bundle_script = '', } :: EmbeddedAssets
38
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/runtimes/roblox/init.luau
luau
.luau
const bundle = require '@self/bundle' const credentials = require '@self/credentials' const debug = require '@self/debug' const discovery = require '@self/discovery' const harness = require '@self/harness' const open_cloud = require '@self/open_cloud' const output = require '@self/output' const progress = require '@sel...
1,001
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/runtimes/roblox/output.luau
luau
.luau
const version = require '@core/version' const ui = require '@lutest/utils/ui' const function non_interactive_prefix(): string return `lutest({ui.accent 'roblox'})@{version.VALUE}` end return { non_interactive_prefix = non_interactive_prefix, }
60
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/runtimes/roblox/protocol.luau
luau
.luau
const json = require '@std/json' const errors = require '@core/errors' const t = require '@lutest_release' export type TestResult = { name: string, kind: 'passed' | 'failed' | 'skipped' | 'todo', error_message: string?, } export type LifecycleFailure = { suite_name: string, hook_name: string, error_message: str...
2,060
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/runtimes/roblox/rojo.luau
luau
.luau
const fs = require '@std/fs' const json = require '@std/json' const path = require '@std/path' const process = require '@std/process' const system = require '@std/system' const errors = require '@core/errors' const config = require '@runtimes/lute/config' const path_utils = require '@lutest/utils/path' const t = requir...
2,616
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/scripts/build-roblox-bundle.luau
luau
.luau
local function lune_require(name) return require(`@lune/{name}`) :: any end local fs = lune_require 'fs' local process = lune_require 'process' local roblox = lune_require 'roblox' local serde = lune_require 'serde' local function fail(message) error(`build-roblox-bundle: {message}`, 0) end local function find_arg...
1,119
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/scripts/build-roblox-library.luau
luau
.luau
const fs = require '@std/fs' const json = require '@std/json' const path = require '@std/path' const process = require '@std/process' const transform = require '@runtimes/roblox/library_transform' const DEFAULT_PACKAGE_ROOT = '.tmp/wally-package' const DEFAULT_OUTPUT = 'dist/Lib.rbxm' const MANIFEST_PATH = '.tmp/roblo...
555
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/scripts/build-wally-package.luau
luau
.luau
const fs = require '@std/fs' const path = require '@std/path' const transform = require '@runtimes/roblox/library_transform' const OUTPUT_ROOT = '.tmp/wally-package' const function ensure_directory(directory: string) if fs.exists(directory) then return end fs.createDirectory(directory, { makeParents = true }) end ...
329
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/scripts/setup.luau
luau
.luau
const fs = require '@std/fs' const process = require '@std/process' type SetupCommand = { name: string, args: { string }, } const function add_command_if_manifest_exists( commands: { SetupCommand }, manifest: string, command: SetupCommand ) if not fs.exists(manifest) then return end table.insert(commands, comm...
514
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/scripts/test.luau
luau
.luau
const process = require '@std/process' const system = require '@std/system' const binary_path = if system.win32 then 'dist/lutest.exe' else 'dist/lutest' const build = process.run { 'lute', 'run', 'scripts/release.luau', } if build.exitcode ~= 0 then process.exit(build.exitcode) end const test = process.run { bin...
96
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/utils/path.luau
luau
.luau
const fs = require '@std/fs' const path = require '@std/path' const process = require '@std/process' const t = require '@lutest_release' const function normalize_path(value: path.Pathlike): string const formatted = path.format(value):gsub('\\', '/') const normalized = path.format(path.normalize(formatted)) return ...
643
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/utils/suggest.luau
luau
.luau
const t = require '@lutest_release' const function levenshtein_distance(left: string, right: string): number if left == right then return 0 end if #left == 0 then return #right end if #right == 0 then return #left end const previous = table.create(#right + 1, 0) const current = table.create(#right + 1, 0) for ...
634
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/utils/tty.luau
luau
.luau
const process = require '@std/process' const system = require '@std/system' const t = require '@lutest_release' type ProcessResult = { ok: boolean, } type ProcessRunOptions = process.ProcessRunOptions type ProcessRunner = ( args: { string }, options: ProcessRunOptions ) -> ProcessResult const function tty_probe_...
655
lutest-dev/lutest
lutest-dev-lutest-8e0fbb4/utils/ui.luau
luau
.luau
const tint = require '@packages/tint' -- Keep terminal output calm: one identity color and colors for state only. const accent = tint.hex '#8B9CFF' const success = tint.hex '#46D39A' const failure = tint.hex '#FF718B' const warning = tint.hex '#F6C85F' const todo = tint.hex '#C69CFF' const muted = tint.hex '#8D97AA' ...
220
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/autoUpdate.luau
luau
.luau
local types = require(script.Parent.types) local platform = require(script.Parent.platform) local unwrapElement = platform.unwrapElement --[[ Automatically updates the position of the floating element when necessary. Should only be called when the floating element is mounted or visible on the screen. ]] local funct...
175
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/computePosition.luau
luau
.luau
local types = require(script.Parent.types) local placement = require(script.Parent.utils.placement) local getPlacementPosition = placement.getPlacementPosition local function computePosition(rects: types.ElementRects, placement: types.Placement, rtl: boolean) local reference = rects.reference local target = rects.t...
330
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/detectOverflow.luau
luau
.luau
local types = require(script.Parent.types) local getPaddingObject = require(script.Parent.utils.getPaddingObject) local rects = require(script.Parent.utils.rects) local convertRectToBoundingRect = rects.convertRectToBoundingRect local platform = require(script.Parent.platform) local getOffsetParent = platform.getOff...
744
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/init.luau
luau
.luau
local types = require(script.types) -- Positioning export type Placement = types.Placement export type Side = types.Side export type Alignment = types.Alignment export type Axis = types.Axis export type Length = types.Length export type Position = types.Position export type Dimensions = types.Dimensions -- Shapes exp...
737
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/middleware/init.luau
luau
.luau
local offset = require(script.offset) local shift = require(script.shift) local hide = require(script.hide) local size = require(script.size) local flip = require(script.flip) local autoPlacement = require(script.autoPlacement) local arrow = require(script.arrow) local inline = require(script.inline) export type Offse...
182
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/platform/convertOffsetParentRectToRelativeRect.luau
luau
.luau
local types = require(script.Parent.Parent.types) local getLayerElement = require(script.Parent.getLayerElement) local getElementBoundingRect = require(script.Parent.getElementBoundingRect) local getScale = require(script.Parent.getScale) --[[ Converts the given rect into a rect that is relative to that of the given...
251
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/platform/getClippingRect.luau
luau
.luau
local types = require(script.Parent.Parent.types) local getLayerElement = require(script.Parent.getLayerElement) local isElement = require(script.Parent.isElement) local rects = require(script.Parent.Parent.utils.rects) local createRectFromGuiObject = rects.createRectFromGuiObject local convertRectToBoundingRect = re...
863
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/platform/getElementBoundingRect.luau
luau
.luau
local types = require(script.Parent.Parent.types) local getScale = require(script.Parent.getScale) local function createBoundingRectFromElement(element: types.ContainingElement): types.BoundingRect local position = element.AbsolutePosition local size = element.AbsoluteSize return { x = position.X, y = positio...
393
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/platform/getElementRects.luau
luau
.luau
local types = require(script.Parent.Parent.types) local getOffsetParent = require(script.Parent.getOffsetParent) local getRectRelativeToOffsetParent = require(script.Parent.getRectRelativeToOffsetParent) --[[ Returns the rects of the reference and target element. Two things to note: - The reference element is r...
211
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/platform/getLayerElement.luau
luau
.luau
local types = require(script.Parent.Parent.types) --[[ Returns the contaning `LayerCollector` instance of the given element, if one exists. ]] local function getLayerElement(element: types.ContainingElement): LayerCollector? return if element:IsA("LayerCollector") then element else element:FindFirstAncestorWhichIsA(...
77
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/platform/getOffsetParent.luau
luau
.luau
local isElement = require(script.Parent.isElement) --[[ Returns the "offset" parent of the given element. The "offset" parent is the first valid parent of the given element. Most of the time, this is just the `Parent` value, but there are cases where a `Folder` instance may be used. Because of that, this is usef...
141
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/platform/getRectRelativeToOffsetParent.luau
luau
.luau
local types = require(script.Parent.Parent.types) local getElementBoundingRect = require(script.Parent.getElementBoundingRect) local function getRectRelativeToOffsetParent( element: types.ReferenceElement, offsetParent: types.ContainingElement | nil, cache: types.Cache ): types.Rect local elementRect = getElement...
225
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/platform/getScale.luau
luau
.luau
local types = require(script.Parent.Parent.types) local isElement = require(script.Parent.isElement) --[[ Returns the scale of the given element. The scale of an element is the factor of each ancestor `UIScale` that affects it. ]] local function getScale(element: types.ContainingElement, cache: types.Cache) loca...
164
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/platform/init.luau
luau
.luau
return { getOffsetParent = require(script.getOffsetParent), getElementRects = require(script.getElementRects), getClippingRect = require(script.getClippingRect), getLayerElement = require(script.getLayerElement), getRectRelativeToOffsetParent = require(script.getRectRelativeToOffsetParent), getElementBoundingRect...
115
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/platform/isElement.luau
luau
.luau
--[[ Returns `true` if the provided value is a `GuiObject` or a `LayerCollector`. ]] local function isElement(x: unknown) if typeof(x) ~= "Instance" then return false end return x:IsA("GuiObject") or x:IsA("LayerCollector") end return isElement
69
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/platform/unwrapElement.luau
luau
.luau
local types = require(script.Parent.Parent.types) --[[ Attempts to unwrap an element into its `GuiObject` form, if one exists. If the given element is virtual and has a `contextElement` value then that is what is returned. ]] local function unwrapElement(element: types.ReferenceElement) return if typeof(element) ...
84
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/process.luau
luau
.luau
local types = require(script.Parent.types) local computePosition = require(script.Parent.computePosition) local platform = require(script.Parent.platform) local getElementRects = platform.getElementRects local MAX_MIDDLEWARE_RESETS = 50 export type ProcessConfig = { --[[ Where to place the floating element...
770
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/types.luau
luau
.luau
-- Placement export type Side = "top" | "left" | "right" | "bottom" export type Placement = Side | "top-start" | "top-end" | "left-start" | "left-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" export type Alignment = "start" | "end" export type Axis = "x" | "y" export type Length = "width"...
734
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/utils/getPaddingObject.luau
luau
.luau
local types = require(script.Parent.Parent.types) local function getPaddingObject(padding: types.Padding): types.SideObject return if typeof(padding) == "number" then { top = padding, bottom = padding, left = padding, right = padding, } else { top = padding.top or 0, bottom = padding.bottom or...
109
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/utils/merge.luau
luau
.luau
local function merge<A, B>(a: A, b: B): A & B local cloned = table.clone(a :: any) for key, value in b :: any do cloned[key] = value end return (cloned :: any) :: A & B end return merge
65
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/utils/placement.luau
luau
.luau
local types = require(script.Parent.Parent.types) type Side = types.Side type Alignment = types.Alignment type Axis = types.Axis type Placement = types.Placement --[[ Returns the {@link Side | side} and {@link Alignment | alignment} of the given placement. Note that the alignment will only exist when the placement...
1,262
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/utils/read.luau
luau
.luau
local types = require(script.Parent.Parent.types) local function read<T>(value: types.DerivableInput<T>, state: types.MiddlewareState) return if typeof(value) == "function" then value(state) else value end return read
51
Quamatic/aether
Quamatic-aether-e98ae6f/src/core/src/utils/rects.luau
luau
.luau
local types = require(script.Parent.Parent.types) local function createRectFromGuiObject(element: GuiObject | LayerCollector) local position = element.AbsolutePosition local size = element.AbsoluteSize return { x = position.X, y = position.Y, width = size.X, height = size.Y, } end local function convertR...
224
Quamatic/aether
Quamatic-aether-e98ae6f/src/react/src/init.luau
luau
.luau
local Aether = require(script.Parent.Aether) -- Type re-exports export type Placement = Aether.Placement export type Side = Aether.Side export type Alignment = Aether.Alignment export type Axis = Aether.Axis export type Length = Aether.Length export type Position = Aether.Position export type Dimensions = Aether.Dimen...
782
Quamatic/aether
Quamatic-aether-e98ae6f/src/react/src/utils/shallowEqualDependencies.luau
luau
.luau
local middleware = require(script.Parent.Parent.middleware) type ReactiveMiddleware = middleware.ReactiveMiddleware local function shadowEqualDependencies(middlewareA: { ReactiveMiddleware }, middlewareB: { ReactiveMiddleware }) if middlewareA == middlewareB then return true end if #middlewareA ~= #middlewareB t...
241
Quamatic/aether
Quamatic-aether-e98ae6f/src/react/src/utils/useLatestRef.luau
luau
.luau
local React = require(script.Parent.Parent.Parent.React) local function useLatestRef<T>(value: T): { current: T } local ref = React.useRef(value) React.useLayoutEffect(function() ref.current = value end) return ref end return useLatestRef
59
Quamatic/aether
Quamatic-aether-e98ae6f/src/vide/src/init.luau
luau
.luau
local Aether = require(script.Parent.Aether) -- Type re-exports export type Placement = Aether.Placement export type Side = Aether.Side export type Alignment = Aether.Alignment export type Axis = Aether.Axis export type Length = Aether.Length export type Position = Aether.Position export type Dimensions = Aether.Dimen...
772
Quamatic/aether
Quamatic-aether-e98ae6f/stories/aether.storybook.luau
luau
.luau
return { name = "Aether", storyRoots = { script.Parent.vide, script.Parent.react }, groupRoots = true, }
30
Quamatic/aether
Quamatic-aether-e98ae6f/stories/react/Chrome.luau
luau
.luau
local React = require(script.Parent.Parent.Parent.DevPackages.React) local e = React.createElement type Props = { title: string, description: string, goal: string, children: any, } local function Chrome(props: Props) return e("Frame", { AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(0.5, 0....
1,031
Quamatic/aether
Quamatic-aether-e98ae6f/stories/react/Flip.story.luau
luau
.luau
local React = require(script.Parent.Parent.Parent.DevPackages.React) local ReactRoblox = require(script.Parent.Parent.Parent.DevPackages.ReactRoblox) local Aether = require(script.Parent.Parent.Parent.DevPackages.Aether) local AetherReact = require(script.Parent.Parent.Parent.DevPackages.AetherReact) local Chrome = re...
619
Quamatic/aether
Quamatic-aether-e98ae6f/stories/react/Placement.story.luau
luau
.luau
local React = require(script.Parent.Parent.Parent.DevPackages.React) local ReactRoblox = require(script.Parent.Parent.Parent.DevPackages.ReactRoblox) local Aether = require(script.Parent.Parent.Parent.DevPackages.Aether) local AetherReact = require(script.Parent.Parent.Parent.DevPackages.AetherReact) local Chrome = re...
1,386
Quamatic/aether
Quamatic-aether-e98ae6f/stories/vide/Arrow.story.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.DevPackages.Vide) local Aether = require(script.Parent.Parent.Parent.DevPackages.Aether) local AetherVide = require(script.Parent.Parent.Parent.DevPackages.AetherVide) local Chrome = require(script.Parent.Chrome) local create = vide.create local source = vide.source lo...
1,096
Quamatic/aether
Quamatic-aether-e98ae6f/stories/vide/AutoPlacement.story.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.DevPackages.Vide) local Aether = require(script.Parent.Parent.Parent.DevPackages.Aether) local AetherVide = require(script.Parent.Parent.Parent.DevPackages.AetherVide) local Chrome = require(script.Parent.Chrome) local create = vide.create local source = vide.source lo...
605
Quamatic/aether
Quamatic-aether-e98ae6f/stories/vide/Chrome.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.DevPackages.Vide) local create = vide.create export type Props = { title: string, description: string, goal: string, children: any, } local function Chrome(props: Props) return create "Frame" { Name = "Content", AnchorPoint = Vector2.new(0.5, 0.5), Position...
135
Quamatic/aether
Quamatic-aether-e98ae6f/stories/vide/Flip.story.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.DevPackages.Vide) local Aether = require(script.Parent.Parent.Parent.DevPackages.Aether) local AetherVide = require(script.Parent.Parent.Parent.DevPackages.AetherVide) local Chrome = require(script.Parent.Chrome) local create = vide.create local source = vide.source lo...
602
Quamatic/aether
Quamatic-aether-e98ae6f/stories/vide/Hide.story.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.DevPackages.Vide) local Aether = require(script.Parent.Parent.Parent.DevPackages.Aether) local AetherVide = require(script.Parent.Parent.Parent.DevPackages.AetherVide) local Chrome = require(script.Parent.Chrome) local create = vide.create local source = vide.source lo...
661
Quamatic/aether
Quamatic-aether-e98ae6f/stories/vide/Offset.story.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.DevPackages.Vide) local Aether = require(script.Parent.Parent.Parent.DevPackages.Aether) local AetherVide = require(script.Parent.Parent.Parent.DevPackages.AetherVide) local Chrome = require(script.Parent.Chrome) local create = vide.create local source = vide.source lo...
543
Quamatic/aether
Quamatic-aether-e98ae6f/stories/vide/Placement.story.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.DevPackages.Vide) local Aether = require(script.Parent.Parent.Parent.DevPackages.Aether) local AetherVide = require(script.Parent.Parent.Parent.DevPackages.AetherVide) local Chrome = require(script.Parent.Chrome) local create = vide.create local source = vide.source lo...
1,291
Quamatic/aether
Quamatic-aether-e98ae6f/stories/vide/Shift.story.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.DevPackages.Vide) local Aether = require(script.Parent.Parent.Parent.DevPackages.Aether) local AetherVide = require(script.Parent.Parent.Parent.DevPackages.AetherVide) local Chrome = require(script.Parent.Chrome) local create = vide.create local source = vide.source lo...
597
Quamatic/aether
Quamatic-aether-e98ae6f/stories/vide/Size.story.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.DevPackages.Vide) local Aether = require(script.Parent.Parent.Parent.DevPackages.Aether) local AetherVide = require(script.Parent.Parent.Parent.DevPackages.AetherVide) local Chrome = require(script.Parent.Chrome) local create = vide.create local source = vide.source lo...
654
Quamatic/aether
Quamatic-aether-e98ae6f/stories/vide/Virtual.story.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.DevPackages.Vide) local Aether = require(script.Parent.Parent.Parent.DevPackages.Aether) local AetherVide = require(script.Parent.Parent.Parent.DevPackages.AetherVide) local Chrome = require(script.Parent.Chrome) local create = vide.create local source = vide.source lo...
635
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/editors/code/src/definitions.ts
roblox-ts
.ts
import * as vscode from "vscode"; import * as utils from "./utils"; import path from "path"; export const isExternalFile = (path: string) => { return path.startsWith("http://") || path.startsWith("https://"); }; export const outputLocationForDefinition = ( context: vscode.ExtensionContext, packageName: string, ...
580
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/editors/code/src/extension.ts
roblox-ts
.ts
import * as vscode from "vscode"; import * as os from "os"; import { fetch } from "undici"; import { CloseAction, CloseHandlerResult, ErrorAction, ErrorHandler, ErrorHandlerResult, Executable, LanguageClient, LanguageClientOptions, Message, ServerOptions, TransportKind, } from "vscode-languageclie...
4,445
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/editors/code/src/onTypeFormattingMiddleware.ts
roblox-ts
.ts
import * as vscode from "vscode"; import { ProvideOnTypeFormattingEditsSignature } from "vscode-languageclient"; export function isQuoteConversionEdit(edits: vscode.TextEdit[]): boolean { return edits.some((edit) => edit.newText === "`"); } export function shouldHandleQuoteConversion( edits: vscode.TextEdit[] | n...
369
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/editors/code/src/test/helper.ts
roblox-ts
.ts
/* -------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * ----------------------------------------------------------------...
316
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/editors/code/src/utils.ts
roblox-ts
.ts
import * as vscode from "vscode"; import * as path from "path"; import * as os from "os"; export const basenameUri = (uri: vscode.Uri): string => { return path.basename(uri.fsPath); }; export const exists = (uri: vscode.Uri): Thenable<boolean> => { return vscode.workspace.fs.stat(uri).then( () => true, ()...
185
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/plugin/cloud/publishing_task.luau
luau
.luau
--!strict --- Script to publish the Luau Language Server companion plugin to Roblox local AssetService = game:GetService("AssetService") local ASSET_ID = 10913122509 local CREATOR_ID = 68136726 print("Executing AssetService:CreateAssetVersionAsync") local result, number = AssetService:CreateAssetVersionAsync(game....
108
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/plugin/src/Assets.luau
luau
.luau
--!strict --- Asset IDs for images used in the plugin's toolbar and UI. --- These are Roblox asset IDs pointing to uploaded images. local Assets = {} --- Default icon Assets.Icon = "rbxassetid://85321628471210" --- Icon with a green square indicating connection Assets.ConnectedIcon = "rbxassetid://126078034992458" ...
108
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/plugin/src/InstanceTracker.luau
luau
.luau
--!strict --- Tracks changes to Roblox Instances and notifies listeners with filtering based on include paths. --- Monitors name and parent property changes, as well as new descendants. --- Encodes Roblox Instances into a serializable format for the language server. local Log = require(script.Parent.Utils.Log) local ...
1,609
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/plugin/src/Settings/DefaultSettings.luau
luau
.luau
--- Configuration for the Luau Language Server --- https://devforum.roblox.com/t/luau-language-server-for-external-editors/2185389 --- Make sure that `luau-lsp.studioPlugin.enabled` is set to `true` in VSCode for the plugin to connect return { --- The host to connect to the language server. host = "http://localhost"...
346
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/plugin/src/Utils/Debounce.luau
luau
.luau
--!strict --- Debounce utility for rate-limiting function calls. --- Delays callback execution until a period of inactivity. --- --- Usage: --- ```lua --- local debounce = Debounce.new(0.5, function() --- print("Called after 0.5s of inactivity") --- end) --- debounce:call() -- Starts/resets the timer --- debounce:...
454
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/plugin/src/Utils/Log.luau
luau
.luau
--!strict --- Logging utility for the Luau Language Server plugin. --- Provides leveled logging with configurable output filtering. --- --- Usage: --- ```lua --- Log.setLevel(Log.Level.DEBUG) --- Log.info("Connected to server") --- Log.debug("Processing", itemCount, "items") --- ``` local Log = {} --- Numeric log le...
683
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/plugin/src/Utils/Signal.luau
luau
.luau
--!strict --- A dead simple strictly typed signal/event utility for managing listeners. --- Provides a reusable pattern for registering callbacks and firing events. --- --- Usage: --- ```lua --- local signal = Signal.new() --- local disconnect = signal:connect(function(value) --- print("Received:", value) --- end)...
486
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/scripts/remodel.d.lua
luau
.lua
declare extern type RemodelInstance with Name: string ClassName: string Parent: RemodelInstance function Destroy(self): () function Clone(self): RemodelInstance function GetChildren(self): { RemodelInstance } function GetDescendants(self): { RemodelInstance } function FindFirstChild(self, name: string): Remodel...
485
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/tests/testdata/bad_standard_definitions.d.luau
luau
.luau
--#METADATA#{} declare extern type Object with end declare extern type Instance with end declare extern type ServiceProvider with end declare extern type Enum with end declare extern type EnumItem with end
46
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/tests/testdata/extra_definitions_relying_on_mutations.d.luau
luau
.luau
--#METADATA#{"CREATABLE_INSTANCES":[], "SERVICES": []} export type ExtraDataRelyingOnMutations = { RigType: Enum.HumanoidRigType, }
44
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/tests/testdata/non-ascii/ō.luau
luau
.luau
local _ = 1
5
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/tests/testdata/requires/relative_to_file/dependency.luau
luau
.luau
return 1234
5
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/tests/testdata/requires/relative_to_file/main.luau
luau
.luau
-- selene: allow(unused_variable) local other = require("dependency")
16
JohnnyMorganz/luau-lsp
JohnnyMorganz-luau-lsp-53f4238/tests/testdata/standard_definitions.d.luau
luau
.luau
--#METADATA#{"CREATABLE_INSTANCES":["TextLabel","Part"], "SERVICES": ["ReplicatedStorage","ServerScriptService","Workspace"]} declare extern type Enum with function GetEnumItems(self): { any } end declare extern type EnumItem with Name: string Value: number EnumType: Enum function IsA(self, enumNam...
1,047
jackhexed/luaup
jackhexed-luaup-aa31fde/bench/init.luau
luau
.luau
local luau = require("@lune/luau") local fs = require("@lune/fs") local lossless_source = fs.readFile("lossless/parse.luau") local lossless_bytecode = luau.compile(lossless_source, { optimizationLevel = 2, coverageLevel = 0, debugLevel = 1, }) local lossless_bytecode_parser = luau.load(lossless_bytecode, { codeg...
822
jackhexed/luaup
jackhexed-luaup-aa31fde/lossless/span.luau
luau
.luau
local cst = require("./cst") local function unreachable(_: never): never error("unreachable") end local span_generic_declaration: (cst.GenericDeclaration) -> cst.Span local span_generic_declaration_with_defaults: (cst.GenericDeclarationWithDefaults) -> cst.Span local span_type_arg: (cst.TypeArg) -> cst.Span local sp...
3,658
jackhexed/luaup
jackhexed-luaup-aa31fde/lossless/visit.luau
luau
.luau
--!optimize 2 --!nolint LocalShadow local cst = require("./cst") local function unreachable(_: never): never error("unreachable") end export type Visitor<State> = { visit_token: (state: State, token: cst.Token) -> (), visit_generic_declaration: (state: State, node: cst.GenericDeclaration) -> (), visit_generic_de...
12,908
jackhexed/luaup
jackhexed-luaup-aa31fde/lossy/ast.luau
luau
.luau
--- Stores the locational information of a token or AST node. --- --- Components: --- * x: The start index. --- * y: The end index. --- * z: Unused. export type Span = { read x: number, read y: number, read z: number } --- An identifier or name; such as `foo` or `bar`. export type AstIdentifier = { --- The span of t...
8,442
typeforge-luau/typeforge
typeforge-luau-typeforge-342f53b/src/init.luau
luau
.luau
--!strict --!nolint LocalShadow --> Helpers ---------------------------------------------------------------------------- type function handle_negation<T>(input: type, callback: (input: type, input_tag: string) -> T) local input_tag = input.tag if input_tag == "negation" then local input_inner = input:...
18,085
typeforge-luau/typeforge
typeforge-luau-typeforge-342f53b/src/init.test.luau
luau
.luau
--!strict local t = require("@self") type function set_indexer(input: typeof(types.newtable()), index: type, result: type) input:setindexer(index, result) return input end --> Core ---------------------------------------------------------------------------------------------- -- Omit -------------------------...
14,925
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/.lune/dev.luau
luau
.luau
local process = require("@lune/process") local stdio = require("@lune/stdio") local task = require("@lune/task") local processes = {} local COMMANDS = { "npm run watch", "rojo sourcemap default.project.json -o sourcemap.json --watch", "rojo serve", } for _, command in COMMANDS do local args = string....
251
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/patches/oldSolver.luau
luau
.luau
-- This is a patch for the old solver, just copy and paste it into: -- planck/src/init.luau local Phase = require(script.Phase) :: any local Pipeline = require(script.Pipeline) :: any local Scheduler = require(script.Scheduler) :: any local conditions = require(script.conditions) :: any type GenericTable = { [any]: ...
2,564
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/src/jest.config.luau
luau
.luau
return { testMatch = { "**/__tests__/*.(spec|test)", }, testPathIgnorePatterns = { "_Index", "DevPackages", }, }
41
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/src/planck/src/DependencyGraph.luau
luau
.luau
local AdjacencyMatrix = {} AdjacencyMatrix.__index = AdjacencyMatrix function AdjacencyMatrix.__tostring(self: AdjacencyMatrix) local s = "\n" for i = 1, self.length do if i == 1 then s ..= "\n" end local sub = "" for j = 1, self.width do if j == self.width then sub ..= `{self.matrix[i][j]}` ...
1,103