repo stringclasses 254
values | file_path stringlengths 29 241 | code stringlengths 100 233k | tokens int64 14 69.4k |
|---|---|---|---|
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/ExportImportHelper.luau | local plugin = script:FindFirstAncestorWhichIsA("Plugin")
local SelectionService = game:GetService("Selection")
local StudioService = game:GetService("StudioService")
local HttpService = game:GetService("HttpService")
local ScriptEditorService = game:GetService("ScriptEditorService")
local RunService = game:GetServic... | 627 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/History.luau | -- History for datastore connections and keys
local MAIN_HISTORY_KEY = "DataDelveHistory alpha 1"
local Types = require(script.Parent.Types)
local History = {}
History.__index = History
function History.new(gameId: number)
local self = setmetatable({
gameId = tostring(gameId),
}, History)
-- Sorted by most re... | 906 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/Pages.luau | -- Wrapper for page APIs
-- TBH this causes too much indirection, kind of annoying to use
local Pages = {}
Pages.__index = Pages
type PagesState = unknown
type PagesInterface = {
initialize: () -> (PagesState?, string?),
next: (PagesState) -> { items: { unknown }?, isFinished: boolean } | { error: string },
}
funct... | 767 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/Session.luau | -- Main interface with datastores
local Types = require(script.Parent.Types)
local Pages = require(script.Parent.Pages)
local DataStoreService = game:GetService("DataStoreService")
local Settings = require(script.Parent.Settings)
local Session = {}
Session.__index = Session
-- Static
function Session.new()
local... | 2,392 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/Settings.luau | --!strict
local ViewerTypes = require(script.Parent.UI.Viewers.Types)
local BufferViewerTypes = require(script.Parent.UI.BufferViewers.Types)
local MAIN_SETTINGS_KEY = "DataDelveSetting alpha 1"
export type SettingsData = {
themePreset: string,
themeAccent: string,
hideGameName: boolean,
highlightColors: "Defaul... | 378 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/Transactor.luau | --!strict
export type Transaction = () -> ()
export type TransactorImplementation = {
__index: TransactorImplementation,
new: () -> Transactor,
destroy: (Transactor) -> (),
transact: (Transactor, Transaction) -> boolean,
}
export type TransactorFields = {
locked: boolean,
lockedChanged: RBXScriptSignal,
_lo... | 288 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/Types.luau | --!strict
-- I was going to use this more, but I forgot about it. Now it houses these two types.
type OldDataStoreConnectionBase = {
name: string,
scope: string?,
isOrdered: boolean,
}
type OldAllScopesDataStoreConnection = OldDataStoreConnectionBase & {
isOrdered: false,
allScopes: true,
}
type OldNormalDataSto... | 292 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/BufferViewers/Deserializer.luau | --!strict
local SelectionService = game:GetService("Selection")
local ScriptEditorService = game:GetService("ScriptEditorService")
local Types = require(script.Parent.Types)
local ViewerTypes = require(script.Parent.Parent.Viewers.Types)
local UIMessages = require(script.Parent.Parent.UIMessages)
local Theme = requir... | 2,767 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/BufferViewers/Hex/DataInspector.luau | --!strict
-- I will document later. For now, good luck! 🫡
export type DataInspectorSizing = "fillContainer" | "fillContainerY"
export type DataInspectorNewParams = {
container: GuiObject,
-- Default is "fillContainer"
sizing: DataInspectorSizing?,
theme: ThemeData,
}
export type ThemeData = {
background: Color... | 2,968 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/BufferViewers/Hex/FormProvider/init.luau | --!strict
local HexEditor = require(script.Parent.HexEditor)
local Validators = require(script.Parent.Parent.Parent.Parent.Validators)
local constrainTextBoxStyleState = require(script.Parent.Parent.Parent.Utilities.constrainTextBoxStyleState)
local StyleState = script.Parent.Parent.Parent.StyleState
local LabelStyl... | 1,167 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/BufferViewers/Hex/HexEditor.luau | --!strict
-- I will document later. For now, good luck! 🫡
-- Parameters when using HexEditor.new(container, params, dependencies):
-- "fillContainer" makes the hex editor fill up the entire container (UDim2.fromScale(1, 1))
-- "fillContainerY" makes the hex hex editor fill up the Y-axis, but take up only as much spa... | 15,219 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/BufferViewers/Hex/init.luau | --!strict
local Theme = require(script.Parent.Parent.Theme)
local Types = require(script.Parent.Types)
local HexEditor = require(script.HexEditor)
local DataInspector = require(script.DataInspector)
local FormProvider = require(script.FormProvider)
export type HexImplementation = {
__index: HexImplementation,
from... | 1,373 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/BufferViewers/Types.luau | --!strict
local UIMessages = require(script.Parent.Parent.UIMessages)
local Theme = require(script.Parent.Parent.Theme)
export type BufferViewerMode = "Hex" | "Deserializer"
export type BufferViewerFromOptions = {
uiMessages: UIMessages.UIMessages,
theme: Theme.Theme,
inputReceiver: GuiObject,
widget: PluginGui,... | 187 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/ModalState.luau | --!strict
-- Keeps track if the UI has a modal or not.
type ModalStateImplementation = {
__index: ModalStateImplementation,
new: () -> ModalState,
push: (ModalState) -> (),
pop: (ModalState) -> (),
wrap: <T>(ModalState, action: () -> T) -> T,
pushId: (ModalState, id: string) -> (),
popId: (ModalState, id... | 357 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/PopupHelper/init.luau | -- Helps with popup stuff
-- `clamp` clamps an object so it doesn't go out of bounds of a container
-- `attach` attach an object to another object so it moves with that object
-- `modal` turns an object into a modal so it blocks input from other objects
-- `attach` and `modal` return objects that should be destroyed on... | 1,956 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/BackgroundStyleState.luau | local TweenService = game:GetService("TweenService")
local StyleStateHelper = require(script.Parent.StyleStateHelper)
local BackgroundStyleState = {}
BackgroundStyleState.__index = BackgroundStyleState
type BackgroundStyleStateOptions = {
style: "default" | "popup" | "image" | "header",
}
function BackgroundStyleSta... | 373 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/BreadcrumbsStyleState/init.luau | -- Handles bread crumbs
-- If the breadcrumbs is too long for the window, it will switch into a dropdown
local TweenService = game:GetService("TweenService")
local StyleStateHelper = require(script.Parent.StyleStateHelper)
local ButtonStyleState = require(script.Parent.ButtonStyleState)
local SelectStyleState = requi... | 2,346 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/ButtonStyleState.luau | local StyleStateHelper = require(script.Parent.StyleStateHelper)
local ButtonStyleState = {}
ButtonStyleState.__index = ButtonStyleState
export type ButtonStyle = "primary" | "secondary" | "transparent" | "dormant" | "input"
export type ButtonStyleStateFromOptions = {
style: ButtonStyle | nil,
disabled: boolean?,
}... | 1,361 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/Input/CheckboxStyleState.luau | local TweenService = game:GetService("TweenService")
local StyleStateHelper = require(script.Parent.Parent.StyleStateHelper)
local ButtonStyleState = require(script.Parent.Parent.ButtonStyleState)
local CheckboxStyleState = {}
CheckboxStyleState.__index = CheckboxStyleState
export type CheckboxOptions = {
default: b... | 778 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/Input/DatePickerStyleState.luau | --!strict
-- This wraps over TextBox
-- Maybe later, can adjust for other locales.
-- Also could add a calender popup.
-- Use :getValue to get the value (unix timestamp milliseconds)
-- Valid Formats:
-- MM/DD/YY
-- MM-DD-YY
-- Month Day, Year
-- Month Day
-- ISO 8601
local TextBoxStyleState = require(script.Parent... | 1,661 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/Input/OverlayTextBoxStyleState.luau | --!strict
-- Only works with text box that are not multiline
-- Does not support text boxes with UIPadding that uses Scale
local TextService = game:GetService("TextService")
local Players = game:GetService("Players")
local StyleStateHelper = require(script.Parent.Parent.StyleStateHelper)
local Theme = require(script... | 1,201 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/Input/SelectStyleState/init.luau | --!strict
local TextService = game:GetService("TextService")
local TweenService = game:GetService("TweenService")
local Theme = require(script.Parent.Parent.Parent.Theme)
local PopupHelper = require(script.Parent.Parent.Parent.PopupHelper)
local StyleStateHelper = require(script.Parent.Parent.StyleStateHelper)
local... | 2,305 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/Input/ShortcutsTextBoxStyleState/init.luau | --!strict
-- This handles "shortcuts text box" which are text box with shortcuts that auto replace special sequences.
-- Shortcuts:
-- @username: This will replace @username with the id of the user with that name
-- Use :getText(errorHandler) to get the text instead of textBox.Text
-- Must pass in a function to han... | 662 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/Input/ShortcutsTextBoxStyleState/parseShortcuts.luau | --!strict
export type ShortcutType = "normal" | "escapedNormal" | "mention"
export type ShortcutPiece = {
type: ShortcutType,
content: string,
-- "escapedNormal" will always start with \\ which should be ignored
-- "mention" will always start with @ which should be ignored
}
export type ShortcutsString = { Shortc... | 1,006 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/Input/SwitchStyleState.luau | --!strict
-- Same as Checkbox, just styled differently
local StyleStateHelper = require(script.Parent.Parent.StyleStateHelper)
local ButtonStyleState = require(script.Parent.Parent.ButtonStyleState)
local SwitchStyleState = {}
SwitchStyleState.__index = SwitchStyleState
export type SwitchOptions = {
default: boolea... | 579 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/Input/TextBoxStyleState/init.luau | local PopupHelper = require(script.Parent.Parent.Parent.PopupHelper)
local StyleStateHelper = require(script.Parent.Parent.StyleStateHelper)
local TextBoxStyleState = {}
TextBoxStyleState.__index = TextBoxStyleState
function TextBoxStyleState.from(theme: any, textBox: TextBox & { UIStroke: UIStroke })
local self = s... | 1,112 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/LabelStyleState.luau | local TweenService = game:GetService("TweenService")
local StyleStateHelper = require(script.Parent.StyleStateHelper)
local LabelStyleState = {}
LabelStyleState.__index = LabelStyleState
export type LabelStyleStateFromOptions = {
style: "text" | "error" | nil,
emphasis: "normal" | "light" | nil
}
function LabelStyl... | 574 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/LoadMoreListStyleState.luau | -- Provide a `createItemStyleState(...)` function.
-- Other consumers of the StyleState can then call `:add(...)` which will use the `createItemStyleState` to add a StyleState into the list.
-- `Pages` does this when a new page is loaded.
--
-- StyleStates produced from `createItemStyleState` can have method `setSelect... | 940 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/ScrollingFrameStyleState.luau | --!strict
local TweenService = game:GetService("TweenService")
local StyleStateHelper = require(script.Parent.StyleStateHelper)
local ScrollingFrame = {}
ScrollingFrame.__index = ScrollingFrame
function ScrollingFrame.from(theme, scrollingFrame: ScrollingFrame)
local self = setmetatable({
scrollingFrame = scrollin... | 190 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/SeparatorStyleState.luau | local TweenService = game:GetService("TweenService")
local StyleStateHelper = require(script.Parent.StyleStateHelper)
local SeparatorStyleState = {}
SeparatorStyleState.__index = SeparatorStyleState
function SeparatorStyleState.from(theme, separator: Frame)
local self = setmetatable({
separator = separator,
them... | 263 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/StyleStateHelper.luau | export type TransitionSpeed = "fast" | "slow" | "instant" | "veryFast" | "superDuperFast" | nil
export type StyleState = {
from: (theme: any, object: GuiObject, ...any) -> StyleState,
update: (StyleState, TransitionSpeed) -> (),
destroy: (StyleState, completely: boolean?) -> (),
}
local TweenService = game:GetServ... | 550 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/StyleStateWrapper.luau | -- Utility class useful for one-off style states.
-- See `UI.createUserCard` for example
local StyleStateHelper = require(script.Parent.StyleStateHelper)
local StyleStateWrapper = {}
StyleStateWrapper.__index = StyleStateWrapper
export type StyleStateWrapperOptions = {
autoFollowTheme: boolean?, -- default: true
o... | 352 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/TabsStyleState/init.luau | local TweenService = game:GetService("TweenService")
local StyleStateHelper = require(script.Parent.StyleStateHelper)
local ButtonStyleState = require(script.Parent.ButtonStyleState)
local TabsStyleState = {}
TabsStyleState.__index = TabsStyleState
function TabsStyleState.from(theme, frame: Frame)
local buttons = {}... | 736 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/Utility/ConfirmDialogStyleState/init.luau | -- TODO: should auto-follow theme when using.createDialog
local StyleStateHelper = require(script.Parent.Parent.StyleStateHelper)
local PopupHelper = require(script.Parent.Parent.Parent.PopupHelper)
local BackgroundStyleState = require(script.Parent.Parent.BackgroundStyleState)
local ButtonStyleState = require(script... | 734 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/Utility/ContextMenuStyleState/init.luau | -- TODO: should auto-follow theme when using.createMenu
local TweenService = game:GetService("TweenService")
local StyleStateHelper = require(script.Parent.Parent.StyleStateHelper)
local PopupHelper = require(script.Parent.Parent.Parent.PopupHelper)
local TRY_CLOSE_SUBMENU_DELAY = 0.275
local ContextMenuStyleState ... | 2,844 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/Utility/LoadingBarStyleState/init.luau | -- Should be used ephemerally
-- Example:
-- ```
-- local styleState = LoadingBarStyleState.from(theme, frame)
-- task.spawn(styleState.animate, styleState)
-- task.wait(5)
-- styleState:destroy()
-- ```
local Theme = require(script.Parent.Parent.Parent.Theme)
local GRADIENT_BILINEAR = NumberSequence.new({
NumberSe... | 684 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/Utility/PopupFormStyleState/init.luau | --!strict
local StyleStateHelper = require(script.Parent.Parent.StyleStateHelper)
local StyleStateWrapper = require(script.Parent.Parent.StyleStateWrapper)
local PopupHelper = require(script.Parent.Parent.Parent.PopupHelper)
local BackgroundStyleState = require(script.Parent.Parent.BackgroundStyleState)
local ButtonS... | 639 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/StyleState/Utility/SkeletonStyleState/init.luau | -- Should be used ephemerally
-- Just apply this to any object.
-- Objects in the children that have attribute "SkeletonPlaceholder" will be styled.
-- If they also have "DeleteWithSkeleton" attribute they will be deleted when the skeleton is deleted.
--- Call :animate to animate the skeleton
local TweenService = ga... | 587 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Theme/Oklab.luau | local Oklab = {}
function Oklab.fromLinearSrgb(c: vector): vector
local l = 0.4122214708 * c.x + 0.5363325363 * c.y + 0.0514459929 * c.z;
local m = 0.2119034982 * c.x + 0.6806995451 * c.y + 0.1073969566 * c.z;
local s = 0.0883024619 * c.x + 0.2817188376 * c.y + 0.6299787005 * c.z;
local l_ = l ^ (1/3);
local m_ ... | 833 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Theme/init.luau | --!strict
local StudioSettings = settings().Studio
local Oklab = require(script.Oklab)
local Theme = {}
Theme.__index = Theme
Theme.accentHues = {
red = 0,
orange = 21,
yellow = 42,
yellowGreen = 72,
green = 115,
greenBlue = 140,
seaGreen = 165,
cyan = 190,
blue = 220,
purpleBlue = 235,
purple = 265,
pin... | 8,678 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Tooltip/init.luau | --!strict
local TextService = game:GetService("TextService")
local TweenService = game:GetService("TweenService")
local PopupHelper = require(script.Parent.PopupHelper)
local Tooltip = {}
Tooltip.__index = Tooltip
local FrameTemplate = script.FrameTemplate
local DropShadowTemplate = script.DropShadowTemplate
local ... | 1,717 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/UIMessages/init.luau | -- Utility to send alerts/toasts
-- Layout manually calculated (no AutomaticSize).
local TweenService = game:GetService("TweenService")
local TextService = game:GetService("TextService")
local StyleState = script.Parent.StyleState
local PopupHelper = require(script.Parent.PopupHelper)
local StyleStateWrapper = requi... | 2,161 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Utilities/TimestampHelper.luau | --!strict
local TimestampHelper = {}
-- Guesses what time of timestamp a number is, or nil if it doesn't look like a timestamp
-- The second parameter is if the guess should be conservative and guess it's not a timestamp
-- more often.
function TimestampHelper.guessTimestampType(n: number, conservative: "conservative... | 315 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Utilities/byteLengthToReadableString.luau | --!strict
local giga = 10^9
local mega = 10^6
local kilo = 10^3
return function(bytes: number)
return tostring(bytes):reverse():gsub("(%d%d%d)", "%1,"):gsub(",$", ""):reverse()
end | 61 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Utilities/checkTrulyVisible.luau | --!strict
return function(object: GuiObject): boolean
local current: any = object
while current do
if (not current) or not current.Visible then
return false
end
current = current.Parent
if current:IsA("LayerCollector") then
break
elseif not current:IsA("GuiObject") then
return false
end
end
re... | 88 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Utilities/constrainTextBoxStyleState.luau | --!strict
-- Makes sure a TextBox matches a validator.
return function(textBoxStyleState, validators: { (string) -> (boolean, string?) })
textBoxStyleState.textBox:GetPropertyChangedSignal("Text"):Connect(function()
if textBoxStyleState.textBox.Text == "" then
textBoxStyleState:setError(nil :: string?):update("... | 142 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Utilities/createTabSwitchGroup.luau | --!strict
-- Makes it so when you press tab, it switches between the TextBoxes.
local checkTrulyVisible = require(script.Parent.checkTrulyVisible)
return function(textBoxes: { TextBox })
local currentSelected = nil
local currentConnection: RBXScriptConnection? = nil
for i, textBox in textBoxes do
-- Don't need... | 410 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Utilities/disableFrameWhenModalAppears.luau | -- `PopupHelper.modal` creates a frame to block input, but it does not block MouseMovement inputs.
-- To fix that, this utility function will detect when the input blocking frame of `PopupHelper.modal`
-- appears and disable `Interactable` for all the frames you give it. This will prevent MouseMovement
-- inputs from b... | 334 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Utilities/getHighlightColors.luau | -- Gets highlight colors for the TreeViewer. Depends on global state from `Settings`
-- to see if it should use the built-in theme or the script editors theme.
export type Colors = {
plain: Color3,
background: Color3,
hoverBackground: Color3,
selectBackground: Color3,
scrollbar: Color3,
mainAccent: Color3,
r... | 909 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Utilities/lockObjectWithoutResize.luau | --!strict
-- Sets the position of an object without triggering AutomaticSize resizing.
-- Assumes UIPadding only has offset padding.
-- EXAMPLE: This is used in the `Insert Into/After` menus for the expand button which is
-- positioned at the top right.
return function(
object: GuiObject,
container: GuiOb... | 240 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Utilities/promptKeyValueForm.luau | -- Form that has two fields (each one is optional, but you must have one field active)
-- Used in:
-- - Insert Into/After
-- - Insert for OrderedDataStore
local Assets = script.Parent.Parent.Assets
local StyleState = script.Parent.Parent.StyleState
local StyleStateWrapper = require(StyleState.StyleStateWrapper)
local... | 1,849 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Utilities/showShadowOnScroll.luau | return function(scrollingFrame: ScrollingFrame, shadow: Frame)
return scrollingFrame:GetPropertyChangedSignal("CanvasPosition"):Connect(function()
shadow.Visible = scrollingFrame.CanvasPosition.Y > 10
end)
end
| 45 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Viewers/Code/CodeEditor.luau | --!strict
local TextService = game:GetService("TextService")
local Types = require(script.Parent.Types)
export type NewOptions = {
theme: Types.Theme,
doLex: (source: string) -> {Token},
}
export type Token = {
kind: string,
start: number,
length: number,
}
type CodeEditorObject = Types.TextEditorObject & {
_... | 3,219 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Viewers/Code/DumbEditor.luau | --!strict
-- Editor with missing no highlighting or error capabilties.
local Types = require(script.Parent.Types)
export type NewOptions = {
theme: Types.Theme,
}
export type DumbEditorObject = Types.TextEditorObject & {
_textChanged: BindableEvent,
_activeErrorsChanged: BindableEvent,
_frame: ScrollingFrame,... | 916 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Viewers/Code/Types.luau | --!strict
export type Theme = {
padding: {top: number, left: number, bottom: number, right: number},
font: Font, -- should be monospace
textSize: number,
backgroundColor: Color3,
textColor: Color3,
disabledTextColor: Color3,
scrollbarThickness: number,
scrollbarColor: Color3,
tokenColors: {[string]: string},... | 301 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Viewers/Code/init.luau | --!strict
local Settings = require(script.Parent.Parent.Parent.Settings)
local Theme = require(script.Parent.Parent.Theme)
local UIMessages = require(script.Parent.Parent.UIMessages)
local json5 = require(script.Parent.Parent.Parent.json5)
local JSONHelper = require(script.Parent.Parent.Parent.JSONHelper)
local Type... | 2,306 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Viewers/Types.luau | --!strict
local JSONHelper = require(script.Parent.Parent.Parent.JSONHelper)
local Theme = require(script.Parent.Parent.Theme)
local UIMessages = require(script.Parent.Parent.UIMessages)
local ModalState = require(script.Parent.Parent.ModalState)
export type ViewerMode = "Tree" | "Code"
export type KeyInfo = {
Crea... | 615 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Views/HistoryView.luau | --!strict
local Theme = require(script.Parent.Parent.Theme)
local History = require(script.Parent.Parent.Parent.History)
local Types = require(script.Parent.Parent.Parent.Types)
local Assets = script.Parent.Parent.Assets
local StyleState = script.Parent.Parent.StyleState
local StyleStateHelper = require(StyleState.S... | 1,490 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Views/OrderedDataStoreView/OrderedDataStoreKeyStyleState.luau | local OrderedDataStoreKeyStyleState = {}
OrderedDataStoreKeyStyleState.__index = OrderedDataStoreKeyStyleState
function OrderedDataStoreKeyStyleState.from(theme, highlightColors, frame)
local self = setmetatable({
theme = theme,
frame = frame,
_highlightColors = highlightColors,
selecting = false,
_disabl... | 503 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Views/OrderedDataStoreView/init.luau | --!strict
local DESCENDING_ICON = "rbxassetid://17650920474"
local ASCENDING_ICON = "rbxassetid://17650919434"
local rfmt = require(script.Parent.Parent.Parent.rfmt)
local StyleState = script.Parent.Parent.StyleState
local Assets = script.Parent.Parent.Assets
local Settings = require(script.Parent.Parent.Parent.Set... | 3,886 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Views/SearchView.luau | --!strict
local TweenService = game:GetService("TweenService")
local Assets = script.Parent.Parent.Assets
local StyleState = script.Parent.Parent.StyleState
local Theme = require(script.Parent.Parent.Theme)
local PopupHelper = require(script.Parent.Parent.PopupHelper)
local ViewerTypes = require(script.Parent.Parent... | 1,590 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Views/SettingsView/AccentColorButtonStyleState.luau | local TweenService = game:GetService("TweenService")
local Theme = require(script.Parent.Parent.Parent.Theme)
local StyleStateHelper = require(script.Parent.Parent.Parent.StyleState.StyleStateHelper)
local ButtonStyleState = require(script.Parent.Parent.Parent.StyleState.ButtonStyleState)
local AccentColorButtonStyl... | 341 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Views/SettingsView/init.luau | --!strict
local SelectionService = game:GetService("Selection")
local ServerScriptService = game:GetService("ServerScriptService")
local ChangeHistoryService = game:GetService("ChangeHistoryService")
local rfmt = require(script.Parent.Parent.Parent.rfmt)
local StyleState = script.Parent.Parent.StyleState
local Asset... | 2,365 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Views/VersionsView.luau | --!strict
local DESCENDING_ICON = "rbxassetid://17650920474"
local ASCENDING_ICON = "rbxassetid://17650919434"
local rfmt = require(script.Parent.Parent.Parent.rfmt)
local StyleState = script.Parent.Parent.StyleState
local Assets = script.Parent.Parent.Assets
local Session = require(script.Parent.Parent.Parent.Sess... | 3,523 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Widgets/BufferWidget.luau | --!strict
local plugin = script:FindFirstAncestorOfClass("Plugin")
local StudioService = game:GetService("StudioService")
local Settings = require(script.Parent.Parent.Parent.Settings)
local UIMessages = require(script.Parent.Parent.UIMessages)
local Theme = require(script.Parent.Parent.Theme)
local Types = require(... | 1,470 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/Widgets/SingleKeyWidget.luau | --!strict
-- This is a widget for a single key, used for "Open in New Widget"
local plugin = script:FindFirstAncestorOfClass("Plugin")
local HttpService = game:GetService("HttpService")
local Theme = require(script.Parent.Parent.Theme)
local Session = require(script.Parent.Parent.Parent.Session)
local Transactor = r... | 1,524 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/UI/init.luau | local rfmt = require(script.Parent.rfmt)
local Types = require(script.Parent.Types)
local Theme = require(script.Theme)
local Validators = require(script.Parent.Validators)
local PopupHelper = require(script.PopupHelper)
local Tooltip = require(script.Tooltip)
local Assets = script.Assets
local StyleState = script.S... | 4,604 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/Validators.luau | --!strict
export type Validator = (any) -> (boolean, string?) -- return 1: success, return 2: reason
local Validators: { [string]: Validator } = {}
local function isValidInteger(str: unknown): boolean
local number = tonumber(str)
if number then
local isValidInteger = (number == math.floor(number)) and number == n... | 687 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/main.server.luau | --!strict
type App = {
new: (id: string) -> App,
toggleEnabled: (App) -> (),
getEnabled: (App) -> boolean,
enabledChanged: RBXScriptSignal,
}
local IS_CANARY = script.Parent.IsCanaryRelease.Value
local RunService = game:GetService("RunService")
local App = require(script.Parent.App) :: App
local ClientFallback... | 495 |
pinehappi/DataDelve | pinehappi-DataDelve-191db10/src/rfmt.luau | -- Rich-Text ForMaT
-- Convience functions for wrapping things in rich text tags.
local rfmt = {}
function rfmt.code(s: string): string
return `<font face="RobotoMono">{s}</font>`
end
return rfmt
| 53 |
latte-soft/wax | latte-soft-wax-9101ac5/.luau/wax.d.luau | declare wax: {
version: string,
envname: string,
shared: {[any]: any},
script: LuaSourceContainer,
require: (...any) -> ...any,
}
| 41 |
latte-soft/wax | latte-soft-wax-9101ac5/examples/hello-wax-and-fusion/src/init.client.luau | local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:FindFirstChildWhichIsA("PlayerGui")
local Fusion = require(script.Fusion)
local New = Fusion.New
local Children = Fusion.Children
local Value = Fusion.Value
local Computed = Fusion.Computed
local ValueCh... | 437 |
latte-soft/wax | latte-soft-wax-9101ac5/examples/react-roblox/src/init.client.luau | local Players = game:GetService("Players")
local React = require(script.ReactLuau.React)
local ReactRoblox = require(script.ReactLuau.ReactRoblox)
local e = React.createElement
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer.PlayerGui
local Element = e("ScreenGui", {}, {
e("TextLabel", {
... | 151 |
latte-soft/wax | latte-soft-wax-9101ac5/lune/lib/BundleModel.luau | -- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to>
local luau = require("@lune/luau")
local roblox = require("@lune/roblox")
local LuneUtils = require("./libraries/LuneUtils")
local Log = LuneUtils.Log
local StringUtils = LuneUtils.StringUtils
local LuaEncode = require("./libraries/LuaEncod... | 2,053 |
latte-soft/wax | latte-soft-wax-9101ac5/lune/lib/data/Template.luau | -- This codegen template *must* be 100% compatible with Lua 5.1x+, NOT just Luau
-- With that being said, this explains the weird cflow in some parts
return [[
-- ++++++++ WAX BUNDLED DATA BELOW ++++++++ --
-- Will be used later for getting flattened globals
local ImportGlobals
-- Holds direct closure data (defining... | 3,664 |
latte-soft/wax | latte-soft-wax-9101ac5/lune/lib/libraries/LuneUtils/CommandUtils.luau | -- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to>
local process = require("@lune/process")
local CommandUtils = {}
function CommandUtils.CommandExists(binary: string): boolean
if process.os ~= "windows" then
-- Unix-compliance is simple!
return process.exec("type", { binary }, { shell ... | 176 |
latte-soft/wax | latte-soft-wax-9101ac5/lune/lib/libraries/LuneUtils/EnsureFileTree.luau | -- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to>
local fs = require("@lune/fs")
--[[
This kinda looks like a strange function, because of the format a "FileTree" accepts:
```lua
EnsureFileTree({
["test"] = {
["test.txt"] = "hi",
["test.json"] = "... | 303 |
latte-soft/wax | latte-soft-wax-9101ac5/lune/lib/libraries/LuneUtils/ParseArgs.luau | -- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to>
type OptionsInput = { [string]: { string | number | boolean | nil } }
type OptionsOutput = { [string]: string | number | boolean | nil }
local process = require("@lune/process")
local Log = require("./Log")
local function ParseArgs(args: { ... | 485 |
latte-soft/wax | latte-soft-wax-9101ac5/lune/lib/libraries/LuneUtils/RecursiveReadDir.luau | -- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to>
local fs = require("@lune/fs")
local function RecursiveReadDir(directory: string, _existingFileList: { string }?): { string }
if not string.match(directory, "[/\\]$") then
directory ..= "/"
end
local FileList = _existingFileList or {}
... | 155 |
latte-soft/wax | latte-soft-wax-9101ac5/lune/lib/libraries/LuneUtils/Run.luau | -- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to>
local process = require("@lune/process")
local Log = require("./Log")
local function Run(
command: string,
args: { string }?,
directRun: boolean?,
errorHandler: (string?) -> ()?
): process.ExecResult
local Args = args or {}
local Direc... | 219 |
latte-soft/wax | latte-soft-wax-9101ac5/lune/lib/libraries/LuneUtils/init.luau | -- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to>
return {
Log = require("./LuneUtils/Log"),
StringUtils = require("./LuneUtils/StringUtils"),
CommandUtils = require("./LuneUtils/CommandUtils"),
WebhookQueue = require("./LuneUtils/WebhookQueue"),
Run = require("./LuneUtils/Run"),
Parse... | 128 |
latte-soft/wax | latte-soft-wax-9101ac5/lune/make.luau | -- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to>
local fs = require("@lune/fs")
local process = require("@lune/process")
local LuneUtils = require("./lib/libraries/LuneUtils")
local Log = LuneUtils.Log
local StringUtils = LuneUtils.StringUtils
local CommandUtils = LuneUtils.CommandUtils
lo... | 617 |
latte-soft/wax | latte-soft-wax-9101ac5/lune/run-tests.luau | -- MIT License | Copyright (c) 2023-2025 Latte Softworks <https://latte.to>
-- This is a basic automated "test" runner, just for overlooking basic
-- functionality and making sure everything works as expected and implemented
local fs = require("@lune/fs")
local process = require("@lune/process")
local LuneUtils = re... | 938 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/model/Config/Legacy/Custom_Commands.luau | NOTE = [[
Legacy custom commands are automatically registered in the new admin!
]]
--[[
ADMIN POWERS
0 Player
1 VIP/Donor
2 Moderator
3 Administrator
4 Super Administrator
5 Owner
6 Game Creator
First table consists of the different variations of the command.
Second table consists of the description and an... | 332 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/model/Config/Legacy/Settings.luau | NOTE = [[
Most settings are automatically registered in the new admin!
]]
-- Use usernames or userIds to add a user to a list
-- For example; Admins = {'MyBestFriend', 'Telamon', 261}
local Banned = {
-- "someoneyoudislike",
} -- For those who have wronged you, & this guy
------------------------------------------... | 1,087 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/model/Config/addons/src/ExampleAddon.luau | -- addons not containing in "Client" or "Server" will run in both contexts (shared)
return function(_K)
if _K.DEBUG then
_K.log(`Hello World from ExampleAddon!`, "INFO")
end
_K.Registry.registerCommand(_K, {
name = "customcommand",
aliases = { "customcommandalias", "customcommandalias2" },
description = "Cu... | 1,221 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/model/Config/addons/src/ExampleAddonClient.luau | -- addons with "Client" in their name will only run on the player's computer!
return function(_K)
-- _K.UI.new "TextLabel" {
-- Parent = _K.UI.LayerTop,
-- AnchorPoint = Vector2.new(0.5, 0.5),
-- Position = UDim2.new(0.5, 0, 0.5, 0),
-- Text = "Hello World from ExampleAddonClient!",
-- }
end
| 109 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/model/Config/addons/src/ExampleAddonServer.luau | -- addons with "Server" in their name will only run on the game server!
return function(_K)
-- _K.log("Hello World from ExampleAddonServer!", "INFO")
end
| 40 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/model/Loader.server.luau | local Package = script.Parent
local DEMO_PLACE = 2569622788
local MAIN_MODULE_ID = 1868400649
local MAIN_MODULE_NAME = "MainModule"
local AUTO_UPDATE = true
local LEGACY = false
local CONFIG = Package:FindFirstChild("Config")
if CONFIG then
AUTO_UPDATE = CONFIG:GetAttribute("AutoUpdate")
LEGACY = CONFIG:GetAttribu... | 534 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/model/README.luau | return [[
┌─┐┌┬┐┌┐ ┬─┐┌─┐┌─┐┌─┐ ┌─┐┬─┐┌─┐┌─┐┌┬┐┬┬ ┬┬┌┬┐┬ ┬ ┌┐┌┌─┐┌┬┐ ┌─┐┬ ┬┌─┐┌─┐┌─┐
├┤ │││├┴┐├┬┘├─┤│ ├┤ │ ├┬┘├┤ ├─┤ │ │└┐┌┘│ │ └┬┘ ││││ │ │ │ ├─┤├─┤│ │└─┐
└─┘┴ ┴└─┘┴└─┴ ┴└─┘└─┘ └─┘┴└─└─┘┴ ┴ ┴ ┴ └┘ ┴ ┴ ┴ ┘ ┘└┘└─┘ ┴ └─┘┴ ┴┴ ┴└─┘└─┘o
Trusted by millions of developers, Kohl's Admin is your all-in-one ... | 594 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/src/Client/About.luau | local UI = require(script.Parent:WaitForChild("UI"))
local CREDITS = require(script.Parent:WaitForChild("Credits"))
local UserFrame = require(script.Parent:WaitForChild("UserFrame"))
local About = {}
About.__index = About
function About.new(_K)
local scroller = UI.new "Scroller" {
Name = "About",
}
local STUDIO... | 3,755 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/src/Client/Announce.luau | local _K = require(script.Parent.Parent)
local Notify = require(script.Parent:WaitForChild("Notify"))
return function(dialogOverride)
return Notify(_K.Util.Table.merge(dialogOverride, { Announce = true }))
end
| 45 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/src/Client/Bans.luau | local UI = require(script.Parent:WaitForChild("UI"))
local Bans = {}
Bans.__index = Bans
function Bans.new(_K)
local BANS = _K.Data.bans
local escape = _K.Util.String.escapeRichText
local function close(self)
self.Activated(false)
end
local newBanDialog, unbanDialog
unbanDialog = UI.new "Dialog" {
Layout... | 4,538 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/src/Client/CommandBar/CompletionData.luau | local Players = game:GetService("Players")
local Package = script.Parent.Parent.Parent
local Command = require(Package.Shared.Process:WaitForChild("Command"))
local LocalPlayer = Players.LocalPlayer
return function(_K, text, cursorPosition)
local from = LocalPlayer.UserId
local data = {
commands = {},
message... | 1,936 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/src/Client/Commands.luau | local UI = require(script.Parent:WaitForChild("UI"))
local Commands = {}
Commands.__index = Commands
local filterRichFormat = `<font transparency="0.5">%s</font><b>%s</b><font transparency="0.5">%s</font>`
local function _argsString(command)
if not command.args or #command.args == 0 then
return ""
end
local arg... | 3,627 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/src/Client/Credits.luau | return {
{
Title = "Contributors",
Users = {
{ Id = 44391621, Tooltip = "Project Founder & Architect. Driving the vision forward. 👑" }, -- kohl
{ Id = 15554260, Tooltip = "Web Development lead and design infrastructure. 🌐" }, -- zeejaym
{ Id = 3286467, Tooltip = "Critical input on design and system plan... | 1,962 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/src/Client/Dashboard.luau | local _K = require(script.Parent.Parent)
local UI = require(script.Parent:WaitForChild("UI"))
local About = require(script.Parent:WaitForChild("About"))
local Bans = require(script.Parent:WaitForChild("Bans"))
local Commands = require(script.Parent:WaitForChild("Commands"))
local Logs = require(script.Parent:WaitForCh... | 5,219 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/src/Client/Explorer/ExplorerOrder.luau | --stylua: ignore
return {Accessory=30,AccessoryDescription=22,Accoutrement=20,Actor=10,AdGui=200,AdPortal=200,AirController=20,AlignOrientation=30,AlignPosition=30,AngularVelocity=30,Animation=220,AnimationConstraint=30,AnimationController=220,AnimationTrack=220,Animator=220,ArcHandles=200,Atmosphere=5,AtmosphereSensor... | 1,827 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/src/Client/Explorer/init.luau | local _K = require(script.Parent.Parent)
local UI = require(script.Parent:WaitForChild("UI"))
local ExplorerOrder = require(script:WaitForChild("ExplorerOrder"))
local ContentProvider = game:GetService("ContentProvider")
local Reflection = game:GetService("ReflectionService")
local DragScope = {
Active = false,
Sta... | 5,357 |
kohls-admin/kohls-admin | kohls-admin-kohls-admin-2413f1e/src/Client/GetKA.luau | local _K = require(script.Parent.Parent)
local UI = _K.UI
task.defer(function()
local ADMIN_MODEL_ID = 172732271
local ok, result = _K.Util.Retry(function()
return _K.Service.Marketplace:PlayerOwnsAssetAsync(_K.LocalPlayer, ADMIN_MODEL_ID)
end)
local ownsModel = ok and result
if (_K.LocalPlayer:GetAttribute("_... | 1,231 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.