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
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/DevLinks/React.lua
luau
.lua
local REQUIRED_MODULE = require(script.Parent.Parent.React) export type Object = REQUIRED_MODULE.Object export type Binding<T> = REQUIRED_MODULE.Binding<T> export type BindingUpdater<T> = REQUIRED_MODULE.BindingUpdater<T> export type LazyComponent<T, P> = REQUIRED_MODULE.LazyComponent<T, P> export type StatelessFuncti...
453
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/DevLinks/ReactRoblox.lua
luau
.lua
local REQUIRED_MODULE = require(script.Parent.Parent.ReactRoblox) export type RootType = REQUIRED_MODULE.RootType return REQUIRED_MODULE
26
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/DevLinks/ReactTestRenderer.lua
luau
.lua
return require(script.Parent.Parent.ReactTestRenderer)
9
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/DevLinks/RobloxShared.lua
luau
.lua
local REQUIRED_MODULE = require(script.Parent.Parent.RobloxShared) export type NodeJS_WriteStream = REQUIRED_MODULE.NodeJS_WriteStream export type Writeable = REQUIRED_MODULE.Writeable return REQUIRED_MODULE
41
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/DevLinks/Symbol.lua
luau
.lua
local REQUIRED_MODULE = require(script.Parent.Parent.Symbol) export type Symbol = REQUIRED_MODULE.Symbol return REQUIRED_MODULE
22
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/DevLinks/TestUtils.lua
luau
.lua
return require(script.Parent.Parent.TestUtils)
8
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/TestRoot/jest.config.lua
luau
.lua
local Workspace = script.Parent return { setupFilesAfterEnv = { Workspace.testSetupFile }, testMatch = { "**/*.(spec|test)?(.lua|.luau)", "**/__tests__/index" }, -- Wally-installed dependencies live under Packages/_Index/<pkg>@<ver>/ and -- may ship their own __tests__ files (unless the dependency's wally.toml --...
120
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/TestRoot/normalizeStackTraces.lua
luau
.lua
-- Dependency packages whose *internal* frames surface in stack-trace snapshots. -- Wally mounts them versioned under `_Index/roblox_<pkg>@<ver>/<pkg>` while -- Rotriever mounts them flat under a PascalCase alias, so the same frame renders -- differently per layout. Canonicalizing to the alias (and dropping the churny ...
676
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/TestRoot/testSetupFile.lua
luau
.lua
--[[* * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. ]] -- Some of the `jest-runtime` tests are very slow and cause -- timeouts on travis -- jest.setTimeout(70000) ...
130
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/scripts/run-tests.luau
luau
.luau
--[[ * 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 ]] -- Thin entry point uploaded via `rocale-cli ...
201
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-benchmark/src/CustomReporters.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...
292
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-benchmark/src/MetricLogger.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...
288
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-benchmark/src/__tests__/utils.lua
luau
.lua
local exports = {} local function sum(nums: { number }) local sum = 0 for _, num in nums do sum += num end return sum end exports.sum = sum local function average(nums: { number }) if #nums > 0 then return sum(nums) / #nums end return 0 end exports.average = average return exports
83
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-benchmark/src/benchmark.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...
755
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-benchmark/src/heartbeatModule.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...
179
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-benchmark/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...
225
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-benchmark/src/reporters/FpsReporter.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...
279
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-benchmark/src/reporters/HeartbeatReporter.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...
453
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-benchmark/src/reporters/SectionTimeReporter.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...
360
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-benchmark/src/testModule.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...
194
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-circus/src/init.lua
luau
.lua
-- ROBLOX upstream: no upstream --[[ * 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 requ...
226
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-console/src/helpers.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...
555
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-diff/src/PrettyFormat.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...
335
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-each/src/nilPlaceholder.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...
188
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-globals/src/init.lua
luau
.lua
-- /** -- * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. -- * -- * 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 local ExpectModule = require(Packages.Expect) export t...
110
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-mock-genv/src/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...
1,321
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-mock-rbx/src/DataModelMocker.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...
587
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-mock-rbx/src/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...
242
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-mock/src/init.lua
luau
.lua
--!nonstrict local CurrentModule = script local Packages = CurrentModule.Parent local LuauPolyfill = require(Packages.LuauPolyfill) local Error = LuauPolyfill.Error local Set = LuauPolyfill.Set local Symbol = require(Packages.Symbol) local JestMockGenv = require(Packages.JestMockGenv) type GlobalMocker = JestMockGenv...
3,893
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/__tests__/mock_me.lua
luau
.lua
-- ROBLOX NOTE: no upstream local exports = {} exports.mocked = false exports.actual = true return exports
28
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/__tests__/rbs_fixture.lua
luau
.lua
return { name = "rbs_fixture", location = "__tests__" }
16
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/__tests__/rbs_native_errors.global.lua
luau
.lua
-- Captures the actual error messages from the native require for @rbx and @std -- passthrough paths. These vary across roblox-cli versions, so we capture them -- dynamically rather than hardcoding expected strings. -- -- This module must be loaded with the real Roblox native require, NOT Jest's -- sandboxed require. ...
201
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/__tests__/requireNil.roblox.lua
luau
.lua
return nil
3
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/__tests__/requireOne.roblox.lua
luau
.lua
return 1
4
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/__tests__/requireTwo.roblox.lua
luau
.lua
return nil, nil
5
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/__tests__/returnRequire.roblox.lua
luau
.lua
return function() return require end
8
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/__tests__/runtimeTestFile.lua
luau
.lua
-- ROBLOX NOTE: no upstream return {}
12
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/__tests__/test_fenv/init.lua
luau
.lua
-- ROBLOX NOTE: no upstream local Packages = script.Parent.Parent.Parent local JestGlobals = require(Packages.Dev.JestGlobals) local jest = JestGlobals.jest return { game = game, workspace = workspace, jest = jest, }
55
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/__tests__/test_rbs/init.lua
luau
.lua
return { name = "test_rbs" }
10
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/__tests__/test_rbs/nested/deep.lua
luau
.lua
return { name = "deep", location = "test_rbs/nested" }
17
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/__tests__/test_rbs/nested/init.lua
luau
.lua
return { name = "nested" }
8
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/__tests__/test_rbs/self_test/child.lua
luau
.lua
return { name = "self_child" }
9
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/__tests__/test_rbs/self_test/init.lua
luau
.lua
return (require :: any)("@self/child")
11
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/__tests__/test_rbs/sibling.lua
luau
.lua
return { name = "sibling", location = "test_rbs" }
16
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/_types.lua
luau
.lua
--[[* * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. ]] local CurrentModule = script.Parent local Packages = CurrentModule.Parent local moduleMockerModule = requir...
385
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-runtime/src/resolveInstancePath.lua
luau
.lua
local PATH_SEPARATOR = "/" local PASSTHROUGH_PREFIXES = { "@std", "@rbx" } local function resolveInstancePath(relativeTo: Instance, instancePath: string): Instance? local parts = instancePath:split(PATH_SEPARATOR) local firstPart = parts[1] for _, prefix in PASSTHROUGH_PREFIXES do if firstPart == prefix then ...
582
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-types/src/Error.lua
luau
.lua
export type Error = { message: string, name: string, stack: string?, } local Error = {} Error.__index = Error function Error.new(message: string?): Error local self = setmetatable({}, Error) :: any self.message = message or "" self.name = "Error" self.stack = debug.traceback(message, 2) return (self :: any) :...
138
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-types/src/Promise.lua
luau
.lua
export type PromiseLike<T> = { andThen: ( self: PromiseLike<T>, resolve: ((T) -> ...(nil | T | PromiseLike<T>))?, reject: ((any) -> ...(nil | T | PromiseLike<T>))? ) -> PromiseLike<T>, } export type PromiseStatus = "Started" | "Resolved" | "Rejected" | "Cancelled" export type Promise<T> = { andThen: ( self...
249
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest-util/src/getFileSystemService.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...
278
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/jest/src/args.roblox.lua
luau
.lua
local processServiceExists, ProcessService = pcall(function() return game:GetService("ProcessService") end) local args = {} if processServiceExists then for _, arg in ProcessService:GetCommandLineArgs() do local a = arg:split("=") a[1] = a[1]:gsub("^%-%-", "") args[a[1]] = a[2] or true end end return args
90
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/path/src/init.lua
luau
.lua
local pathModule = require(script.path) local Path = pathModule.Path export type Path = pathModule.Path local function makePathImpl() local path = Path.new() path:initialize("/", "/") return path end return { path = makePathImpl(), Path = Path, }
59
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/pretty-format/src/__tests__/dont_touch_im_used_in_snapshots/please_dont_touch_this.lua
luau
.lua
--[[ I copied this folder into here for testing purposes. Specifically, one of the unit tests tries to serialise this folder, and saves the result to a snapshot. If the snapshot changes, the test fails. So if you touch this folder, you'll break that test. Apart from that, nothing in here does any...
77
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/pretty-format/src/plugins/RedactStackTraces.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...
517
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/pretty-format/src/plugins/RobloxInstance.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,198
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/roblox-shared/src/RobloxInstance.lua
luau
.lua
--!nonstrict --[[ * 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 ...
1,946
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/roblox-shared/src/Writeable.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...
292
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/roblox-shared/src/__tests__/getParent.test.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...
526
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/roblox-shared/src/cleanLoadStringStack.lua
luau
.lua
return function(line: string): string local spacing, filePath, lineNumber, extra = line:match('(%s*)%[string "(.-)"%]:(%d+)(.*)') if filePath then local match = filePath if spacing then match = spacing .. match end if lineNumber then match = match .. ":" .. lineNumber end if extra then match = ma...
107
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/roblox-shared/src/ensureDirectoryExists.lua
luau
.lua
-- moved from jest-snapshot/utils.lua local Packages = script.Parent.Parent local LuauPolyfill = require(Packages.LuauPolyfill) local Error = LuauPolyfill.Error local getParent = require(script.Parent.getParent) local getDataModelService = require(script.Parent.getDataModelService) local FileSystemService = getDataM...
241
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/roblox-shared/src/escapePatternCharacters.lua
luau
.lua
local function escapePatternCharacters(str: string): string return string.gsub(str, "([%(%)%.%%%+%-%*%?%[%^%$])", "%%%1") end return { escapePatternCharacters = escapePatternCharacters, }
52
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/roblox-shared/src/getDataModelService.lua
luau
.lua
-- checks that the service exists and is accessible before returning it, otherwise returns nil return function(service: string) local success, result = pcall(function() local service = game:GetService(service) local _ = service.Name return service end) return success and result or nil end
63
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/roblox-shared/src/getParent.lua
luau
.lua
-- ROBLOX deviation: added to handle file paths in snapshot/State local function getParent(path: string, level_: number?): string local level = if level_ then level_ else 0 local isUnixPath = string.sub(path, 1, 1) == "/" local t = {} for p in string.gmatch(path, "[^\\/][^\\/]*") do table.insert(t, p) end if ...
147
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/roblox-shared/src/getRelativePath.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...
224
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/roblox-shared/src/nodeUtils.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...
384
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/roblox-shared/src/normalizePromiseError.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...
344
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/roblox-shared/src/redactStackTrace.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...
420
Roblox/jest-roblox
Roblox-jest-roblox-ba9d684/src/roblox-shared/src/stripAnsi.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...
200
tacheometry/Rostar
tacheometry-Rostar-7b5d979/.lune/UnpackFiles.luau
luau
.luau
local remodel = require("./remodel") local fs = require("@lune/fs") local serde = require("@lune/serde") local informationFile = serde.decode("json", fs.readFile("RostarData.json")) local initialRojoProject do local success, exists = pcall(remodel.isFile, informationFile.rojoProjectPath) if success and exists then ...
2,970
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Addons/InterfaceManager.luau
luau
.luau
local httpService = game:GetService("HttpService") local InterfaceManager = {} do InterfaceManager.Folder = "FluentRenewedSettings" InterfaceManager.Settings = { Theme = "Dark", Acrylic = true, Transparency = true, MenuKeybind = Enum.KeyCode.RightControl } function Interf...
811
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Addons/SaveManager.luau
luau
.luau
local httpService = game:GetService("HttpService") type Dropdown = {Value: any, Values: {i: any}, Multi: boolean, Displayer: (v) -> (n)?, SetValue: (any) -> ()} local DisplayerParser = { Encode = function(Value) local Encoded = {} for Val: any, Bool: boolean in Value do table.insert(Encoded, Val) end r...
2,849
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Example.client.luau
luau
.luau
local Library = require(game:GetService("ReplicatedStorage"):WaitForChild("Fluent"):WaitForChild("MainModule")) local Window = Library:Window{ Title = `Fluent {Library.Version}`, SubTitle = "by Actual Master Oogway", TabWidth = 160, Size = UDim2.fromOffset(830, 525), Resize = true, Acrylic = tr...
2,464
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Lune/Build/Lib/BundleModel.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2024 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/LuaEncode") ...
2,053
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Lune/Build/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", "remove_empty_do", "remove_function_call_parens", "remove...
157
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Lune/Build/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,702
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Lune/Build/Lib/Data/Version.luau
luau
.luau
return "0.4.1"
8
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Lune/Build/Lib/Libraries/LuneUtils/CommandUtils.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2024 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.spawn("type", { binary }, { shell...
176
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Lune/Build/Lib/Libraries/LuneUtils/EnsureFileTree.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2024 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
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Lune/Build/Lib/Libraries/LuneUtils/ParseArgs.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2024 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: { st...
485
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Lune/Build/Lib/Libraries/LuneUtils/RecursiveReadDir.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2024 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
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Lune/Build/Lib/Libraries/LuneUtils/Run.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2024 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.ExecuteResult local Args = args or {} local Dire...
219
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Lune/Build/Lib/Libraries/LuneUtils/init.luau
luau
.luau
-- MIT License | Copyright (c) 2023-2024 Latte Softworks <https://latte.to> return { Log = require("Log"), StringUtils = require("StringUtils"), CommandUtils = require("CommandUtils"), WebhookQueue = require("WebhookQueue"), Run = require("Run"), ParseArgs = require("ParseArgs"), EnsureFileTree = require("Ensu...
97
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Lune/Types/fs.luau
luau
.luau
local DateTime = require("./datetime") type DateTime = DateTime.DateTime export type MetadataKind = "file" | "dir" | "symlink" --[=[ @interface MetadataPermissions @within FS Permissions for the given file or directory. This is a dictionary that will contain the following values: * `readOnly` - If the target ...
1,803
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Lune/Types/regex.luau
luau
.luau
--[=[ @class RegexMatch A match from a regular expression. Contains the following values: - `start` -- The start index of the match in the original string. - `finish` -- The end index of the match in the original string. - `text` -- The text that was matched. - `len` -- The length of the text that was matched...
1,354
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Lune/Types/task.luau
luau
.luau
--[=[ @class Task Built-in task scheduler & thread spawning ### Example usage ```lua local task = require("@lune/task") -- Waiting for a certain amount of time task.wait(1) print("Waited for one second") -- Running a task after a given amount of time task.delay(2, function() print("Ran after two second...
541
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Src/Components/Assets.luau
luau
.luau
return { Close = "rbxassetid://9886659671", Min = "rbxassetid://9886659276", Max = "rbxassetid://9886659406", Restore = "rbxassetid://9886659001", }
60
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Src/Components/Button.luau
luau
.luau
local Root = script.Parent.Parent local Flipper = require(Root.Packages.Flipper) local Creator = require(Root.Modules.Creator) local New = Creator.New local Spring = Flipper.Spring.new return function(Theme, Parent, DialogCheck) local Button = {} DialogCheck = DialogCheck or false Button.Title = New("TextLabel",...
566
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Src/Components/Dialog.luau
luau
.luau
local Root = script.Parent.Parent local Creator = require(Root.Modules.Creator) local Button_Component = require(Root.Components.Button) local Signal = require(Root.Packages.Signal) local New = Creator.New local Dialog = { Window = nil, } function Dialog:Init(Window) Dialog.Window = Window return Dialog end func...
1,253
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Src/Components/Element.luau
luau
.luau
local Root = script.Parent.Parent local Creator = require(Root.Modules.Creator) local New = Creator.New return function(Title, Desc, Parent, Hover, Config) local Element = { CreatedAt = tick() } Config = typeof(Config) == "table" and Config or {} Element.TitleLabel = New("TextLabel", { FontFace = Font.new("r...
1,165
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Src/Components/Notification.luau
luau
.luau
local Root = script.Parent.Parent local Flipper = require(Root.Packages.Flipper) local Creator = require(Root.Modules.Creator) local Acrylic = require(Root.Modules.Acrylic) local Spring = Flipper.Spring.new local Instant = Flipper.Instant.new local New = Creator.New local SoundService = game:GetService("SoundService...
1,689
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Src/Components/Section.luau
luau
.luau
local Root = script.Parent.Parent local Creator = require(Root.Modules.Creator) local New = Creator.New return function(Title, Parent) local Section = {} Section.Layout = New("UIListLayout", { Padding = UDim.new(0, 5), }) Section.Container = New("Frame", { Size = UDim2.new(1, 0, 0, 26), Position = UDim2.f...
448
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Src/Components/Tab.luau
luau
.luau
local Root = script.Parent.Parent local Flipper = require(Root.Packages.Flipper) local Creator = require(Root.Modules.Creator) local New = Creator.New local Spring = Flipper.Spring.new local Instant = Flipper.Instant.new local Components = Root.Components local TabModule = { Window = nil, Tabs = {}, Containers = {...
1,699
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Src/Components/Textbox.luau
luau
.luau
local TextService = game:GetService("TextService") local Root = script.Parent.Parent local Flipper = require(Root.Packages.Flipper) local Creator = require(Root.Modules.Creator) local New = Creator.New return function(Parent, Acrylic) local Textbox = {} Acrylic = Acrylic or false Textbox.Input = New("TextBox", { ...
1,162
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Src/Components/TitleBar.luau
luau
.luau
local Root = script.Parent.Parent local Creator = require(Root.Modules.Creator) local New = Creator.New local AddSignal = Creator.AddSignal return function(Config) local TitleBar = {} local Library = require(Root) local function BarButton(Icon, Pos, Parent, Debounce, Callback) local Button = { Callback = Ca...
2,013
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Src/Components/Window.luau
luau
.luau
-- a wise man once said: "i will rewrite this someday" local Root = script.Parent.Parent local Flipper = require(Root.Packages.Flipper) local Creator = require(Root.Modules.Creator) local Acrylic = require(Root.Modules.Acrylic) local Signal = require(Root.Packages.Signal) local Assets = require(script.Parent.Assets) l...
4,146
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Src/Elements/Button.luau
luau
.luau
local Root = script.Parent.Parent local Creator = require(Root.Modules.Creator) local New = Creator.New local Components = Root.Components local Element = {} Element.__index = Element Element.__type = "Button" function Element:New(Config) assert(Config.Title, "Button - Missing Title") Config.Callback = Config.Cal...
270
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Src/Elements/Colorpicker.luau
luau
.luau
local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local Mouse = LocalPlayer:GetMouse() local Root = script.Parent.Parent local Creator = require(Root.Modules.Creator) local New = Creator.New local Components = Root.Components local Element = {} Element.__index = Element Element.__ty...
4,927
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Src/Elements/Dropdown.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local Mouse = game:GetService("Players").LocalPlayer:GetMouse() local Camera = game:GetService("Workspace").CurrentCamera local Root = script.Parent.Parent local Creator = require(Root.Modules.Creator) local Flipper = require(Root.Packages.Flipper) local Ne...
4,506
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Src/Elements/Input.luau
luau
.luau
local Root = script.Parent.Parent local Creator = require(Root.Modules.Creator) local AddSignal = Creator.AddSignal local Components = Root.Components local Element = {} Element.__index = Element Element.__type = "Input" function Element:New(Idx, Config) local Library = self.Library assert(Config.Title, "Input - M...
654
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Src/Elements/Keybind.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local Root = script.Parent.Parent local Creator = require(Root.Modules.Creator) local New = Creator.New local Components = Root.Components local Element = {} Element.__index = Element Element.__type = "Keybind" function Element:New(Idx, Config) local Lib...
1,720
ActualMasterOogway/Fluent-Renewed
ActualMasterOogway-Fluent-Renewed-b224870/Src/Elements/Paragraph.luau
luau
.luau
local Root = script.Parent.Parent local Components = Root.Components local Element = {} Element.__index = Element Element.__type = "Paragraph" function Element:New(Idx, Config) local Library = self.Library assert(Config.Title, "Paragraph - Missing Title") Config.Content = Config.Content or "" local Paragraph = {...
460