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 |
|---|---|---|---|---|---|
YetAnotherClown/planck | YetAnotherClown-planck-79e91ad/src/planck/src/Phase.luau | luau | .luau | --- @class Phase
---
--- Phases represent tags that tell the scheduler when to
--- schedule a set of systems.
local Phase = {}
Phase.__index = Phase
function Phase.__tostring(self: Phase)
return self._name
end
--- @within Phase
---
--- Creates a new Phase, with an optional name to use for debugging.
--- When no name... | 267 |
YetAnotherClown/planck | YetAnotherClown-planck-79e91ad/src/planck/src/Pipeline.luau | luau | .luau | local DependencyGraph = require(script.Parent.DependencyGraph)
local Phase = require(script.Parent.Phase)
type DependencyGraph<T> = DependencyGraph.DependencyGraph<T>
type Phase = Phase.Phase
--- @class Pipeline
---
--- Pipelines represent a set of ordered Phases. Systems cannot be
--- assigned to Pipelines themselve... | 618 |
YetAnotherClown/planck | YetAnotherClown-planck-79e91ad/src/planck/src/__tests__/InitializerSystems.test.luau | luau | .luau | --!nonstrict
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local root = script.Parent.Parent
local Phase = require(root.Phase)
local Scheduler = require(root.Scheduler)
local JestGlobals = require(ReplicatedStorage.DevPackages.JestGlobals)
local describe = JestGlobals.describe
local expect = JestGl... | 3,868 |
YetAnotherClown/planck | YetAnotherClown-planck-79e91ad/src/planck/src/__tests__/Scheduler.test.luau | luau | .luau | --!nonstrict
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local root = script.Parent.Parent
local Phase = require(root.Phase)
local Scheduler = require(root.Scheduler)
local Pipeline = require(root.Pipeline)
local JestGlobals = require(ReplicatedStor... | 2,049 |
YetAnotherClown/planck | YetAnotherClown-planck-79e91ad/src/planck/src/__tests__/conditions.test.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local root = script.Parent.Parent
local Scheduler = require(root.Scheduler)
local conditions = require(root.conditions)
local isNot = conditions.isNot
local runOnce = conditions.runOnce
local timePassed = conditions.timePassed
local onEvent = conditions.... | 812 |
YetAnotherClown/planck | YetAnotherClown-planck-79e91ad/src/planck/src/__tests__/hooks.test.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local root = script.Parent.Parent
local Phase = require(root.Phase)
local Scheduler = require(root.Scheduler)
local JestGlobals = require(ReplicatedStorage.DevPackages.JestGlobals)
local describe = JestGlobals.describe
local expect = JestGlobals.expect
... | 340 |
YetAnotherClown/planck | YetAnotherClown-planck-79e91ad/src/planck/src/__tests__/systems.test.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local root = script.Parent.Parent
local Phase = require(root.Phase)
local Scheduler = require(root.Scheduler)
type SystemErrorContext = Scheduler.SystemErrorContext
local JestGlobals = require(ReplicatedStorage.DevPackages.JestGlobals)
local describe =... | 1,153 |
YetAnotherClown/planck | YetAnotherClown-planck-79e91ad/src/planck/src/conditions.luau | luau | .luau | local utils = require(script.Parent.utils)
local getConnectFn = utils.getConnectFn
type GenericTable = utils.GenericTable
type SignalLike<U...> = utils.SignalLike<U...>
type ConnectionLike = utils.ConnectionLike
type ConnectFn<T, U...> = utils.ConnectFn<T, U...>
type Callback<U...> = utils.Callback<U...>
export type ... | 1,173 |
YetAnotherClown/planck | YetAnotherClown-planck-79e91ad/src/planck/src/init.luau | luau | .luau | local Phase = require(script.Phase)
local Pipeline = require(script.Pipeline)
local Scheduler = require(script.Scheduler)
local conditions = require(script.conditions)
export type Phase = Phase.Phase
export type Pipeline = Pipeline.Pipeline
export type Scheduler<U...> = Scheduler.Scheduler<U...>
export type System<U... | 272 |
YetAnotherClown/planck | YetAnotherClown-planck-79e91ad/src/planck_jabby/src/init.luau | luau | .luau | local Planck = require(script.Parent.Planck)
type Scheduler<U...> = Planck.Scheduler<U...>
type SystemInfo<U...> = Planck.SystemInfo<U...>
type SystemHookContext = Planck.SystemHookContext
type SystemReplaceContext = Planck.SystemReplaceContext
type SystemEditedContext = Planck.SystemEditedContext
type SystemCallConte... | 1,311 |
YetAnotherClown/planck | YetAnotherClown-planck-79e91ad/src/planck_matter_hooks/src/Queue.luau | luau | .luau | --!nonstrict
local Queue = {}
Queue.__index = Queue
function Queue.new()
return setmetatable({
_head = nil,
_tail = nil,
}, Queue)
end
function Queue:pushBack(value)
local entry = {
value = value,
next = nil,
}
if self._tail ~= nil then
self._tail.next = entry
end
self._tail = entry
if self._hea... | 152 |
YetAnotherClown/planck | YetAnotherClown-planck-79e91ad/src/planck_matter_hooks/src/init.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Planck = require(script.Parent.Planck)
type Scheduler<U...> = Planck.Scheduler<U...>
type System<U...> = Planck.System<U...>
type Phase = Planck.Phase
type PhaseContext = Planck.PhaseContext
type SystemHookContext = Planck.SystemHookContext
type Sys... | 1,113 |
YetAnotherClown/planck | YetAnotherClown-planck-79e91ad/src/planck_runservice/src/__tests__/main.test.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Planck = require(ReplicatedStorage.Packages.Planck)
local PlanckRunService = require(ReplicatedStorage.Packages.PlanckRunService)
local Phase = Planck.Phase
local Scheduler = Planck.Scheduler
local JestGlobals = require(ReplicatedStorage.DevPackage... | 291 |
YetAnotherClown/planck | YetAnotherClown-planck-79e91ad/src/planck_runservice/src/init.luau | luau | .luau | local RunService = game:GetService("RunService")
local Planck = require(script.Parent.Planck)
type Scheduler<U...> = Planck.Scheduler<U...>
local Phase = Planck.Phase
type Phase = Planck.Phase
local Pipeline = Planck.Pipeline
type Pipeline = Planck.Pipeline
local Phases = {
PreRender = Phase.new("PreRender"),
Pre... | 527 |
YetAnotherClown/planck | YetAnotherClown-planck-79e91ad/src/run-tests.server.luau | luau | .luau | _G.NOCOLOR = _G.NOCOLOR
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Packages = ReplicatedStorage.Packages
local DevPackages = ReplicatedStorage.DevPackages
local Jest = require(DevPackages.Jest)
local runCLIOptions = {
verbose = false,
ci = false,
}
local projects = {
Packages,
}
Jest.r... | 92 |
Corecii/GreenTea | Corecii-GreenTea-9901687/.pesde/roblox_sync_config_generator.luau | luau | .luau | local process = require("@lune/process")
local home_dir = if process.os == "windows" then process.env.userprofile else process.env.HOME
require(home_dir .. "/.pesde/scripts/lune/rojo/roblox_sync_config_generator.luau")
| 54 |
Corecii/GreenTea | Corecii-GreenTea-9901687/.pesde/sourcemap_generator.luau | luau | .luau | local process = require("@lune/process")
local home_dir = if process.os == "windows" then process.env.userprofile else process.env.HOME
require(home_dir .. "/.pesde/scripts/lune/rojo/sourcemap_generator.luau") | 54 |
Corecii/GreenTea | Corecii-GreenTea-9901687/lune/build-lune-zip.luau | luau | .luau | local process = require("@lune/process")
local fs = require("@lune/fs")
local function exec(cmdline: string | { string }, options: process.SpawnOptions?)
local pieces = {}
if typeof(cmdline) == "string" then
for piece in string.gmatch(" " .. cmdline, "%s+([^%s]+)") do
table.insert(pieces, piece)
end
else
p... | 391 |
Corecii/GreenTea | Corecii-GreenTea-9901687/lune/enable-loadmodule.luau | luau | .luau |
local fs = require("@lune/fs")
local process = require("@lune/process")
local serde = require("@lune/serde")
if process.env.windir ~= nil then
-- Windows
local appDataPath = process.env.LOCALAPPDATA
local robloxVersionsPath = `{appDataPath}\\Roblox\\Versions`
if not fs.isDir(robloxVersionsPath) then
error(`Ro... | 517 |
Corecii/GreenTea | Corecii-GreenTea-9901687/lune/moonwave.luau | luau | .luau | local fs = require("@lune/fs")
local task = require("@lune/task")
local process = require("@lune/process")
export type Path = string
local function getModifiedAt(path: Path): number
local meta = fs.metadata(path)
return assert(meta.modifiedAt).unixTimestampMillis
end
local function rebuild_item(options: {
base: P... | 1,110 |
Corecii/GreenTea | Corecii-GreenTea-9901687/lune/prepare-lune-version.luau | luau | .luau | --[[
This is a simplified Roblox -> Lune converter specifically for GreenTea.
I have chosen this approach over DarkLua and other because...
1. String requires are coming to Roblox soon, which makes this less necessary.
2. DarkLua and similar add a lot of complexity for something that is really
simple in this ca... | 363 |
Corecii/GreenTea | Corecii-GreenTea-9901687/lune/set-version.luau | luau | .luau | local fs = require("@lune/fs")
local serde = require("@lune/serde")
local process = require("@lune/process")
local wally = serde.decode("toml", fs.readFile("wally.toml"))
local lastVersion = wally.package.version
local nextVersion = assert(process.args[1], "version required!\n\nusage:\n lune set-version -- <version>... | 508 |
Corecii/GreenTea | Corecii-GreenTea-9901687/lune/wally-install.luau | luau | .luau | local process = require("@lune/process")
local function exec(cmdline: string)
local pieces = {}
for piece in string.gmatch(" " .. cmdline, "%s+([^%s]+)") do
table.insert(pieces, piece)
end
local program = table.remove(pieces, 1)
assert(program ~= nil, "cmdline must include a program")
local result = process.s... | 162 |
Corecii/GreenTea | Corecii-GreenTea-9901687/src-t-standalone-pesde/t.luau | luau | .luau | local GreenTea = require(script.Parent.roblox_packages.GreenTea)
export type Cause = GreenTea.Cause
export type Type = GreenTea.Type
export type TuplePacked<T...> = GreenTea.TuplePacked<T...>
return GreenTea.t
| 60 |
Corecii/GreenTea | Corecii-GreenTea-9901687/src-t-standalone-wally/init.luau | luau | .luau | local GreenTea = require(script.Parent.GreenTea)
export type Cause = GreenTea.Cause
export type Type = GreenTea.Type
export type TuplePacked<T...> = GreenTea.TuplePacked<T...>
return GreenTea.t | 55 |
axiom-co/framework | axiom-co-framework-fe85912/src/logs.luau | luau | .luau | return {
FatalInit = "Init errored: %s",
FatalAddModule = "Added module errored: %s",
ProviderDuplicate = "Provider '%s' already exists",
AlreadyStarted = "Framework has already started",
ReservedName = "'%s' is a reserved %s name",
InvalidType = "Expected type %s; got '%s'",
}
| 80 |
axiom-co/framework | axiom-co-framework-fe85912/src/spawn.luau | luau | .luau | local FreeThreads: { thread } = {}
local function RunCallback(callback: (...any) -> ...any, thread: thread, ...)
callback(...)
table.insert(FreeThreads, thread)
end
local function Yielder()
while true do
RunCallback(coroutine.yield())
end
end
return function<T...>(callback: (T...) -> (), ...: T...)
local Thre... | 139 |
axiom-co/framework | axiom-co-framework-fe85912/src/types.luau | luau | .luau | export type Provider<T> = {
Name: string?,
Uses: { any }?,
Order: number?,
Init: (() -> ())?,
Start: (() -> ())?,
} & T
export type Hook<T...> = {
Name: string,
Fire: (self: Hook<T...>, T...) -> (),
Listeners: { (...any) -> () },
}
return {}
| 78 |
axiom-co/framework | axiom-co-framework-fe85912/tests/hooks/callback/consumer.luau | luau | .luau | local function HookCallback(args)
print(args)
end
return {
HookCallback = HookCallback,
}
| 23 |
axiom-co/framework | axiom-co-framework-fe85912/tests/hooks/callback/hook.luau | luau | .luau | local Packages = script.Parent.Parent.Parent.Parent
local Framework = require(Packages.framework.src)
local TEST_NAME = "HOOK-TEST"
local RunService = game:GetService("RunService")
local Hook = Framework.Hook("HookCallback", function(self, ...)
for _, listener in self.Listeners do
print(`{TEST_NAME}: Hook custom li... | 100 |
axiom-co/framework | axiom-co-framework-fe85912/tests/hooks/consumer.luau | luau | .luau | local function HookTest(arg)
print(`{arg}: Default listener`)
end
return {
HookTest = HookTest,
}
| 27 |
axiom-co/framework | axiom-co-framework-fe85912/tests/hooks/hook.luau | luau | .luau | local Packages = script.Parent.Parent.Parent
local Framework = require(Packages.framework.src)
local TEST_NAME = "HOOK-TEST"
local RunService = game:GetService("RunService")
local Hook = Framework.Hook("HookTest")
RunService.Heartbeat:Connect(function()
Hook:Fire(TEST_NAME)
end)
return {}
| 67 |
axiom-co/framework | axiom-co-framework-fe85912/tests/providers/dependencies/dep1.luau | luau | .luau | local TEST_NAME = "DEPENDENCIES-TEST"
local Dep2 = require(script.Parent.dep2)
local function Init()
print(`{TEST_NAME}: Dependency 1, using Dependency 2 (second)`)
end
return {
Init = Init,
Uses = { Dep2 }
}
| 60 |
axiom-co/framework | axiom-co-framework-fe85912/tests/providers/dependencies/dep2.luau | luau | .luau | local TEST_NAME = "DEPENDENCIES-TEST"
local function Init()
print(`{TEST_NAME}: Dependency 2 (first)`)
end
return {
Init = Init,
}
| 38 |
axiom-co/framework | axiom-co-framework-fe85912/tests/providers/dependencies/module.luau | luau | .luau | local TEST_NAME = "DEPENDENCIES-TEST"
local Dep1 = require(script.Parent.dep1)
local function Init()
print(`{TEST_NAME}: Module (third)`)
end
return {
Init = Init,
Uses = { Dep1 }
}
| 53 |
axiom-co/framework | axiom-co-framework-fe85912/tests/providers/order/mod1.luau | luau | .luau | local TEST_NAME = "ORDER-TEST"
local function Init()
print(`{TEST_NAME}: First`)
end
return {
Init = Init,
Order = -3,
}
| 38 |
axiom-co/framework | axiom-co-framework-fe85912/tests/providers/order/mod2.luau | luau | .luau | local TEST_NAME = "ORDER-TEST"
local function Init()
print(`{TEST_NAME}: Second`)
end
return {
Init = Init,
Order = -2,
}
| 38 |
axiom-co/framework | axiom-co-framework-fe85912/tests/providers/order/mod3.luau | luau | .luau | local TEST_NAME = "ORDER-TEST"
local function Init()
print(`{TEST_NAME}: Third`)
end
return {
Init = Init,
Order = -1,
}
| 38 |
axiom-co/framework | axiom-co-framework-fe85912/tests/providers/provider.luau | luau | .luau | local TEST_NAME = "PROVIDER-TEST"
local function Init()
print(`{TEST_NAME}: Init (first)`)
end
local function Start()
print(`{TEST_NAME}: Start (second)`)
end
return {
Init = Init,
Start = Start,
Name = "provider-custom",
}
| 67 |
axiom-co/framework | axiom-co-framework-fe85912/tests/start.server.luau | luau | .luau | local Packages = script.Parent.Parent
local Tests = script.Parent
local Framework = require(Packages.framework.src)
local TESTING = {
-- lifecycles
Tests.hooks,
Tests.hooks.callback,
-- providers
Tests.providers,
Tests.providers.dependencies,
Tests.providers.order,
}
Framework.Add(TESTING)... | 76 |
Roblox/react-luau | Roblox-react-luau-9351444/WorkspaceStatic/jest.config.lua | luau | .lua | local Workspace = script.Parent
-- In case we need to specify a custom testSetupFile for a project, we need to do that in in a separate jest.config.lua file that's in the project's root folder.
-- Therefore we specify the project here and provide it to the "projects" field in this config file.
-- We also need to add t... | 213 |
Roblox/react-luau | Roblox-react-luau-9351444/WorkspaceStatic/jest/matchers/toErrorDev.lua | luau | .lua | local createConsoleMatcher = require(script.Parent.createConsoleMatcher)
return createConsoleMatcher("error", "toErrorDev")
| 24 |
Roblox/react-luau | Roblox-react-luau-9351444/WorkspaceStatic/jest/matchers/toLogDev.lua | luau | .lua | local createConsoleMatcher = require(script.Parent.createConsoleMatcher)
return createConsoleMatcher("log", "toLogDev")
| 24 |
Roblox/react-luau | Roblox-react-luau-9351444/WorkspaceStatic/jest/matchers/toWarnDev.lua | luau | .lua | local createConsoleMatcher = require(script.Parent.createConsoleMatcher)
return createConsoleMatcher("warn", "toWarnDev")
| 24 |
Roblox/react-luau | Roblox-react-luau-9351444/bin/run-deep-tree-benchmark.lua | luau | .lua | local Packages = script.Parent.RoactAlignment
local RotrieverWorkspace = Packages._Workspace
local Roact = require(RotrieverWorkspace.React.React)
local ReactRoblox = require(RotrieverWorkspace.ReactRoblox.ReactRoblox)
local config = {}
if _G.minSamples ~= nil then
config.sampleCount = tonumber(_G.minSamples)
end
r... | 106 |
Roblox/react-luau | Roblox-react-luau-9351444/bin/run-first-render-benchmark.lua | luau | .lua | local Packages = script.Parent.RoactAlignment
local RotrieverWorkspace = Packages._Workspace
local Roact = require(RotrieverWorkspace.React.React)
local ReactRoblox = require(RotrieverWorkspace.ReactRoblox.ReactRoblox)
local Scheduler = require(RotrieverWorkspace.Scheduler.Scheduler)
local firstRenderBenchmark =
requ... | 135 |
Roblox/react-luau | Roblox-react-luau-9351444/bin/run-frame-rate-benchmark.lua | luau | .lua | local Packages = script.Parent.RoactAlignment
local RotrieverWorkspace = Packages._Workspace
local Roact = require(RotrieverWorkspace.React.React)
local ReactRoblox = require(RotrieverWorkspace.ReactRoblox.ReactRoblox)
local Scheduler = require(RotrieverWorkspace.Scheduler.Scheduler)
local frameRateBenchmark =
requir... | 135 |
Roblox/react-luau | Roblox-react-luau-9351444/bin/run-sierpinski-triangle-benchmark.lua | luau | .lua | local Packages = script.Parent.RoactAlignment
local RotrieverWorkspace = Packages._Workspace
local Roact = require(RotrieverWorkspace.React.React)
local ReactRoblox = require(RotrieverWorkspace.ReactRoblox.ReactRoblox)
local sierpinskiTriangleBenchmark = require(
RotrieverWorkspace.React.Dev.PerformanceBenchmarks
).s... | 127 |
Roblox/react-luau | Roblox-react-luau-9351444/bin/run-wide-tree-benchmark.lua | luau | .lua | local Packages = script.Parent.RoactAlignment
local RotrieverWorkspace = Packages._Workspace
local Roact = require(RotrieverWorkspace.React.React)
local ReactRoblox = require(RotrieverWorkspace.ReactRoblox.ReactRoblox)
local wideTreeBenchmark =
require(RotrieverWorkspace.React.Dev.PerformanceBenchmarks).wideTreeBench... | 112 |
Roblox/react-luau | Roblox-react-luau-9351444/bin/spec.lua | luau | .lua | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 328 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/example-app/StarterScript.lua | luau | .lua | local CorePackages = game:GetService("CorePackages")
local RunService = game:GetService("RunService")
if RunService:IsServer() then
return
end
-- Set global flags and initialize devtools before React is ever used
local ReactGlobals = require(CorePackages.ReactGlobals)
ReactGlobals.__DEV__ = true
ReactGlobals.__PROFI... | 105 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-core/src/init.lua | luau | .lua | local backend = require(script.backend)
return {
backend = backend,
}
| 15 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-core/src/utils/serializeTable.lua | luau | .lua | local HttpService = game:GetService("HttpService")
type Record = { [string]: any }
local ENCODE_TO_NULL = newproxy()
--- Serializes a table such that it can be encoded as JSON via HttpService.
local function serializeTable(tbl: Record): Record
local seen = {}
local function visitPropsRecursive(parent: Record): an... | 1,080 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-extensions/src/init.lua | luau | .lua | -- ROBLOX note: no upstream
-- ROBLOX note: The setup function adds the glue required for DeveloperTools to initialize the Roact devtools correctly
local Packages = script.Parent
return {
setup = function(debugMode: boolean)
local ReactGlobals = require(Packages.ReactGlobals)
-- ROBLOX note: Set globals for Reac... | 540 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-shared/src/backend/views/Highlighter/Overlay/OverlayRect.lua | luau | .lua | local OverlayRect = {}
OverlayRect.__index = OverlayRect
function OverlayRect.new(container: GuiBase2d)
local self = setmetatable({}, OverlayRect)
self.container = container
local node = Instance.new("Frame")
node.Name = "OverlayRect"
node.BackgroundTransparency = 1
node.Parent = container
self.node = node
l... | 488 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-shared/src/backend/views/Highlighter/Overlay/OverlayTip.lua | luau | .lua | type Box = { top: number, left: number, width: number, height: number }
local function calculatePosition(dims: Box, bounds: Box, size: Vector2)
local tipHeight = math.max(size.Y, 20)
local tipWidth = math.max(size.X, 60)
local margin = 5
local top: number
if dims.top + dims.height + tipHeight <= bounds.top + bou... | 1,016 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-shared/src/clipboardjs.mock.lua | luau | .lua | -- ROBLOX TODO: stub for clipboardjs, remove when we know how we'll handle its intent in a Roblox way
return {}
| 30 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-shared/src/devtools/ProfilerStore.lua | luau | .lua | --!strict
--[[*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
]]
local Packages = script.Parent.Parent.Parent
local LuauPolyfill = require(Packages.LuauPolyfill)
local Arr... | 2,912 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-shared/src/devtools/ProfilingCache.lua | luau | .lua | --!strict
--[[*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
]]
local Packages = script.Parent.Parent.Parent
local LuauPolyfill = require(Packages.LuauPolyfill)
local Arra... | 1,104 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-shared/src/devtools/init.lua | luau | .lua | return {
utils = require(script.utils),
store = require(script.store),
cache = require(script.cache),
devtools = {
Components = {
views = {
types = require(script.views.Components.types),
},
},
},
}
| 52 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-shared/src/devtools/types.lua | luau | .lua | --!strict
local Packages = script.Parent.Parent.Parent
local LuauPolyfill = require(Packages.LuauPolyfill)
type Array<T> = LuauPolyfill.Array<T>
type Map<K, V> = LuauPolyfill.Map<K, V>
type Object = LuauPolyfill.Object
type Set<K> = LuauPolyfill.Set<K>
local ComponentsTypes = require(script.Parent.Parent.devtools.vie... | 2,556 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-shared/src/devtools/views/Profiler/FlamegraphChartBuilder.lua | luau | .lua | --!strict
--[[*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
]]
local Packages = script.Parent.Parent.Parent.Parent.Parent
local LuauPolyfill = require(Packages.LuauPolyfi... | 1,718 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-shared/src/devtools/views/Profiler/InteractionsChartBuilder.lua | luau | .lua | --!strict
--[[*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
]]
local Packages = script.Parent.Parent.Parent.Parent.Parent
local LuauPolyfill = require(Packages.LuauPolyfi... | 545 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-shared/src/devtools/views/Profiler/RankedChartBuilder.lua | luau | .lua | --!strict
--[[*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
]]
local Packages = script.Parent.Parent.Parent.Parent.Parent
local LuauPolyfill = require(Packages.LuauPolyfi... | 986 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-shared/src/devtools/views/Profiler/utils.lua | luau | .lua | --!strict
--[[*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
]]
local Packages = script.Parent.Parent.Parent.Parent.Parent
local LuauPolyfill = require(Packages.LuauPolyfi... | 2,487 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-shared/src/init.lua | luau | .lua | -- ROBLOX note: upstream doesn't have a root index.js, we may want to contribute a proper contract upstream
local Bridge = require(script.bridge)
local Types = require(script.types)
local Backend = require(script.backend)
export type BackendBridge = Bridge.BackendBridge
export type ComponentFilter = Types.ComponentFi... | 132 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-shared/src/jest.config.lua | luau | .lua | return {
setupFilesAfterEnv = { script.Parent.__tests__.setupTests },
testMatch = { "**/*.(spec|test)" },
}
| 29 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-devtools-timeline/src/init.lua | luau | .lua | -- ROBLOX note: no upstream
local exports = {}
local constants = require(script.constants)
exports.REACT_TOTAL_NUM_LANES = constants.REACT_TOTAL_NUM_LANES
exports.SCHEDULING_PROFILER_VERSION = constants.SCHEDULING_PROFILER_VERSION
local types = require(script.types)
export type ScrollState = types.ScrollState
export... | 359 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-globals/src/ReactGlobals.global.lua | luau | .lua | -- NOTE: No upstream
--[[
Defines all React globals in a type-safe manner that's scoped to each
copy of React. For backwards compatibility, this module will load the
initial values for each flag from _G. However, this is considered legacy
behavior and new code should import this package and set the fla... | 792 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-globals/src/init.lua | luau | .lua | local ReactGlobals = require(script["ReactGlobals.global"])
return ReactGlobals
| 15 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-reconciler/src/RobloxReactProfiling.lua | luau | .lua | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 1,542 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-refresh/src/init.lua | luau | .lua | return {
ReactFreshRuntime = require(script.ReactFreshRuntime),
}
| 14 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-roblox/src/ReactReconciler.roblox.lua | luau | .lua | --!strict
-- ROBLOX deviation: Initializes the reconciler with this package's host
-- config and returns the resulting module
local Packages = script.Parent.Parent
local initializeReconciler = require(Packages.ReactReconciler)
local ReactRobloxHostConfig = require(script.Parent.client.ReactRobloxHostConfig)
return i... | 79 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-roblox/src/client/roblox/RobloxComponentProps.lua | luau | .lua | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 2,699 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-roblox/src/client/roblox/__tests__/waitForEvents.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 170 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-telemetry/src/ReactTelemetry.lua | luau | .lua | local Packages = script.Parent.Parent
local LuauPolyfill = require(Packages.LuauPolyfill)
local Object = LuauPolyfill.Object
local reportCounter = require(script.Parent.reportCounter)
local customFields = require(script.Parent.customFields)
local ReactTelemetry = {}
ReactTelemetry.customFields = customFields
local ... | 313 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-telemetry/src/customFields.lua | luau | .lua | export type Context = "universal_app" | "in_experience" | "plugin" | "unknown"
export type CustomFields = {
context: Context,
plugin_name: string?,
}
local plugin = script:FindFirstAncestorWhichIsA("Plugin")
local customFields: CustomFields = {
context = if plugin then "plugin" else "unknown",
plugin_name = if pl... | 90 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-telemetry/src/init.lua | luau | .lua | local customFields = require(script.customFields)
export type CustomFields = customFields.CustomFields
return require(script.ReactTelemetry)
| 26 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-telemetry/src/reportCounter.lua | luau | .lua | local TelemetryService = game:GetService("TelemetryService")
local Packages = script.Parent.Parent
local SafeFlags = require(Packages.SafeFlags)
local ReactGlobals = require(Packages.ReactGlobals)
local FFlagReactTelemetryEnabled =
SafeFlags.createGetFFlag("ReactTelemetryEnabled", false)()
export type CounterOption... | 255 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react-test-renderer/src/roblox/RobloxComponentProps.lua | luau | .lua | local Packages = script.Parent.Parent.Parent
local Shared = require(Packages.Shared)
local LuauPolyfill = require(Packages.LuauPolyfill)
type Object = LuauPolyfill.Object
type Array<T> = LuauPolyfill.Array<T>
local Tag = Shared.Tag
local TagManagers = {}
local function setInitialTags(
hostInstance: any,
_tag: st... | 717 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/react/src/ReactBinding.roblox.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 1,510 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/roact-compat/src/Portal.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 244 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/roact-compat/src/RoactTree.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 1,068 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/roact-compat/src/createFragment.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 241 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/roact-compat/src/init.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 526 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/roact-compat/src/setGlobalConfig.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 274 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/roact-compat/src/warnOnce.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 243 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/scheduler/src/NoYield.lua | luau | .lua | -- ROBLOX note: no upstream
--!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unles... | 426 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/scheduler/src/unstable_mock.lua | luau | .lua | --!strict
--[[*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*]]
local Tracing = require(script.Parent.Tracing)
local TracingSubscriptions = require(script.Parent.TracingSubscriptions)... | 365 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/shared/src/ErrorHandling.roblox.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 1,551 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/shared/src/PropMarkers/Change.lua | luau | .lua | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 338 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/shared/src/PropMarkers/Event.lua | luau | .lua | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 328 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/shared/src/PropMarkers/Tag.lua | luau | .lua | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 179 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/shared/src/ReactElementType.lua | luau | .lua | --!strict
--[[*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
]]
local Packages = script.Parent.Parent
local LuauPolyfill = require(Packages.LuauPolyfill)
type Object = Luau... | 357 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/shared/src/ReactFiberHostConfig/init.lua | luau | .lua | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 353 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/shared/src/ReactTypes.lua | luau | .lua | --!strict
--[[*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
]]
local Packages = script.Parent.Parent
local LuauPolyfill = require(Packages.LuauPolyfill)
type Array<T> = L... | 2,197 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/shared/src/Type.roblox.lua | luau | .lua | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 308 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/shared/src/UninitializedState.roblox.lua | luau | .lua | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 343 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/shared/src/console.lua | luau | .lua | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 322 |
Roblox/react-luau | Roblox-react-luau-9351444/modules/shared/src/enqueueTask.roblox.lua | luau | .lua | --!strict
--[[*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
]]
local Packages = script.Parent.Parent
local LuauPolyfill = require(Packages.LuauPolyfill)
local setTimeout = Luau... | 109 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.