Merge branch 'master' of github.com:Rowblox/rowblox

This commit is contained in:
I-Have-An-Issue 2022-10-07 18:30:05 -04:00
commit 62c09f5b6b
No known key found for this signature in database
GPG Key ID: E55435DEA0825091
61 changed files with 706 additions and 60 deletions

3
.env.example Normal file
View File

@ -0,0 +1,3 @@
PRIVATE_KEY=
MONGO_URL=
MAINTENANCE=false

View File

@ -1,4 +1,4 @@
name: 'deploy'
name: "production deploy"
on:
workflow_dispatch:
@ -18,5 +18,5 @@ jobs:
- name: Push to dokku
uses: dokku/github-action@master
with:
git_remote_url: 'ssh://dokku@calones.xyz/rowblox'
git_remote_url: "ssh://dokku@calones.xyz/rowblox"
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}

22
.github/workflows/sitetest.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: "sitetest deploy"
on:
workflow_dispatch:
push:
branches:
- sitetest
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Push to dokku
uses: dokku/github-action@master
with:
git_remote_url: "ssh://dokku@calones.xyz/rowblox-sitetest"
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}

View File

@ -1,8 +1,8 @@
{
"useTabs": true,
"singleQuote": true,
"singleQuote": false,
"trailingComma": "none",
"printWidth": 100,
"printWidth": 200,
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]

View File

@ -1,38 +1,8 @@
# create-svelte
# rowblox-sitetest
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
This repo is for testing development, Major overhauls may happen often.
## Creating a project
This is the development repository of `rowblox`.
**PLEASE** prototype ideas here before committing your ideas to the production repository.
If you're seeing this, you've probably already done this step. Congrats!
```bash
# create a new project in the current directory
npm create svelte@latest
# create a new project in my-app
npm create svelte@latest my-app
```
## Developing
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
```bash
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
```
## Building
To create a production version of your app:
```bash
npm run build
```
You can preview the production build with `npm run preview`.
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
Hai

View File

@ -1,6 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
plugins: {
tailwindcss: {},
autoprefixer: {}
}
};

View File

@ -1,3 +1,47 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;
html,
body {
@apply text-black;
padding: 0;
margin: 0;
}
.scrolling-background {
background-image: url(/img/background.png);
animation-name: scrollbg;
animation-duration: 120s;
animation-iteration-count: infinite;
animation-timing-function: ease;
animation-direction: alternate;
}
.dropdown:hover .dropdown-content {
display: block;
}
.mobile-compatible {
display: none;
}
@keyframes scrollbg {
0% {
background-position: 0 0;
}
100% {
background-position: 100% 100%;
}
}
@media (max-width: 1024px) {
.navbar {
display: none !important;
}
.mobile-compatible {
display: block;
}
}

View File

@ -7,6 +7,6 @@
%sveltekit.head%
</head>
<body>
<div>%sveltekit.body%</div>
%sveltekit.body%
</body>
</html>

8
src/hooks.server.js Normal file
View File

@ -0,0 +1,8 @@
/** @type {import('@sveltejs/kit').Handle} */
export async function handle({ event, resolve }) {
if (event.url.pathname !== "/maintenance" && process.env.MAINTENANCE == "true" && process.env.PRODUCTION == "true") {
return new Response("", { status: 302, headers: { Location: "/maintenance" } });
}
return await resolve(event);
}

0
src/lib/classes/Asset.js Normal file
View File

0
src/lib/classes/Game.js Normal file
View File

3
src/lib/classes/User.js Normal file
View File

@ -0,0 +1,3 @@
export default class RowbloxUser {
constructor() {}
}

View File

View File

View File

View File

0
src/lib/database.js Normal file
View File

167
src/lib/hostscript.js Normal file
View File

@ -0,0 +1,167 @@
const script = `
------------------- UTILITY FUNCTIONS --------------------------
local cdnSuccess = 0
local cdnFailure = 0
function waitForChild(parent, childName)
while true do
local child = parent:findFirstChild(childName)
if child then
return child
end
parent.ChildAdded:wait()
end
end
-- returns the player object that killed this humanoid
-- returns nil if the killer is no longer in the game
function getKillerOfHumanoidIfStillInGame(humanoid)
-- check for kill tag on humanoid - may be more than one - todo: deal with this
local tag = humanoid:findFirstChild("creator")
-- find player with name on tag
if tag then
local killer = tag.Value
if killer.Parent then -- killer still in game
return killer
end
end
return nil
end
-----------------------------------END UTILITY FUNCTIONS -------------------------
-----------------------------------"CUSTOM" SHARED CODE----------------------------------
pcall(function() settings().Network.UseInstancePacketCache = true end)
pcall(function() settings().Network.UsePhysicsPacketCache = true end)
pcall(function() settings()["Task Scheduler"].PriorityMethod = Enum.PriorityMethod.AccumulatedError end)
settings().Network.PhysicsSend = Enum.PhysicsSendMethod.TopNErrors
settings().Network.ExperimentalPhysicsEnabled = true
settings().Network.WaitingForCharacterLogRate = 100
pcall(function() settings().Diagnostics:LegacyScriptMode() end)
-----------------------------------START GAME SHARED SCRIPT------------------------------
-- establish this peer as the Server
local ns = game:GetService("NetworkServer")
local badgeUrlFlagExists, badgeUrlFlagValue = pcall(function () return settings():GetFFlag("NewBadgeServiceUrlEnabled") end)
local newBadgeUrlEnabled = badgeUrlFlagExists and badgeUrlFlagValue
if url~=nil then
local url = "http://www.rowblx.xyz"
pcall(function() game:GetService("Players"):SetAbuseReportUrl(url .. "/AbuseReport/InGameChatHandler.ashx") end)
pcall(function() game:GetService("ScriptInformationProvider"):SetAssetUrl(url .. "/Asset/") end)
pcall(function() game:GetService("ContentProvider"):SetBaseUrl(url .. "/") end)
pcall(function() game:GetService("Players"):SetChatFilterUrl(url .. "/Game/ChatFilter.ashx") end)
if gameCode then
game:SetVIPServerId(tostring(gameCode))
end
game:GetService("BadgeService"):SetPlaceId(1818)
game:SetPlaceId(1818)
game:SetCreatorId(123891239128398123)
if newBadgeUrlEnabled then
game:GetService("BadgeService"):SetAwardBadgeUrl(apiProxyUrl .. "/assets/award-badge?userId=%d&badgeId=%d&placeId=%d")
end
if access~=nil then
if not newBadgeUrlEnabled then
game:GetService("BadgeService"):SetAwardBadgeUrl(url .. "/Game/Badge/AwardBadge.ashx?UserID=%d&BadgeID=%d&PlaceID=%d&" .. access)
end
game:GetService("BadgeService"):SetHasBadgeUrl(url .. "/Game/Badge/HasBadge.ashx?UserID=%d&BadgeID=%d&" .. access)
game:GetService("BadgeService"):SetIsBadgeDisabledUrl(url .. "/Game/Badge/IsBadgeDisabled.ashx?BadgeID=%d&PlaceID=%d&" .. access)
game:GetService("FriendService"):SetMakeFriendUrl(url .. "/Game/CreateFriend?firstUserId=%d&secondUserId=%d")
game:GetService("FriendService"):SetBreakFriendUrl(url .. "/Game/BreakFriend?firstUserId=%d&secondUserId=%d")
game:GetService("FriendService"):SetGetFriendsUrl(url .. "/Game/AreFriends?userId=%d")
end
pcall(function() loadfile(url .. "/Game/LoadPlaceInfo.ashx?PlaceId=" .. placeId)() end)
pcall(function()
if access then
loadfile(url .. "/Game/PlaceSpecificScript.ashx?PlaceId=" .. placeId .. "&" .. access)()
end
end)
end
pcall(function() game:GetService("NetworkServer"):SetIsPlayerAuthenticationRequired(true) end)
settings().Diagnostics.LuaRamLimit = 0
if placeId~=nil and killID~=nil and deathID~=nil and url~=nil then
-- listen for the death of a Player
function createDeathMonitor(player)
-- we don't need to clean up old monitors or connections since the Character will be destroyed soon
if player.Character then
local humanoid = waitForChild(player.Character, "Humanoid")
humanoid.Died:connect(
function ()
onDied(player, humanoid)
end
)
end
end
-- listen to all Players' Characters
game:GetService("Players").ChildAdded:connect(
function (player)
createDeathMonitor(player)
player.Changed:connect(
function (property)
if property=="Character" then
createDeathMonitor(player)
end
end
)
end
)
end
game:GetService("Players").PlayerAdded:connect(function(player)
print("Player " .. player.userId .. " added")
if url and access and placeId and player and player.userId then
game:HttpGet(url .. "/Game/ClientPresence.ashx?action=connect&" .. access .. "&PlaceID=" .. placeId .. "&UserID=" .. player.userId)
game:HttpPost(url .. "/Game/PlaceVisit.ashx?UserID=" .. player.userId .. "&AssociatedPlaceID=" .. placeId .. "&" .. access, "")
end
end)
game:GetService("Players").PlayerRemoving:connect(function(player)
print("Player " .. player.userId .. " leaving")
if url and access and placeId and player and player.userId then
game:HttpGet(url .. "/Game/ClientPresence.ashx?action=disconnect&" .. access .. "&PlaceID=" .. placeId .. "&UserID=" .. player.userId)
end
end)
-- Now start the connection
game:Load("rbxasset://temp.rbxl")
ns:Start({port}, sleeptime)
pcall(function() game.LocalSaveEnabled = true end)
-- StartGame --
Game:GetService("RunService"):Run()`;
import signer from "./signer";
export default function (port) {
let hostscript = script.replace("{port}", port);
let sig = signer(hostscript);
hostscript = `--rbxsig%${sig}%${hostscript}`;
return hostscript;
}

242
src/lib/joinscript.js Normal file
View File

@ -0,0 +1,242 @@
const script = `
--[[
pcall(function() game:GetService("InsertService"):SetBaseSetsUrl("http://www.rowblx.xyz/stamper/inseasset.php?nsets=10&type=base%22") end)
pcall(function() game:GetService("InsertService"):SetUserSetsUrl("http://www.rowblx.xyz/stamper/inseasset.php?nsets=20&type=user&userid=%d%22") end)
pcall(function() game:GetService("InsertService"):SetCollectionUrl("http://www.rowblx.xyz/stamper/inseasset.php?sid=%d%22") end)
pcall(function() game:GetService("InsertService"):SetAssetUrl("http://www.rowblx.xyz/asset/?id=%d") end)
pcall(function() game:GetService("InsertService"):SetAssetVersionUrl("http://www.rowblx.xyz/asset/?id=%d") end)
pcall(function() game:GetService("SocialService"):SetGroupUrl("http://10char.xyz/stamper/groupurl.php?method=IsInGroup&playerid=%d&groupid=%d%22") end)
pcall(function() game:GetService("BadgeService"):SetPlaceId(-1) end)
pcall(function() game:GetService("BadgeService"):SetIsBadgeLegalUrl("") end)
pcall(function() game:GetService("ScriptInformationProvider"):SetAssetUrl("http://www.rowblx.xyz/asset/") end)
pcall(function() game:GetService("ContentProvider"):SetBaseUrl("http://www.rowblx.xyz/stamper/stampericons.php?%22) end)
]]--
-- functions --------------------------
function onPlayerAdded(player)
-- override
end
pcall(function() game:SetPlaceID(-1, false) end)
local startTime = tick()
local connectResolved = false
local loadResolved = false
local joinResolved = false
local playResolved = true
local playStartTime = 0
local cdnSuccess = 0
local cdnFailure = 0
settings()["Game Options"].CollisionSoundEnabled = true
pcall(function() settings().Rendering.EnableFRM = true end)
pcall(function() settings().Physics.Is30FpsThrottleEnabled = false end)
pcall(function() settings()["Task Scheduler"].PriorityMethod = Enum.PriorityMethod.AccumulatedError end)
pcall(function() settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.DefaultAuto end)
local threadSleepTime = ...
if threadSleepTime==nil then
threadSleepTime = 15
end
local test = true
local closeConnection = game.Close:connect(function()
if 0 then
if not connectResolved then
local duration = tick() - startTime;
elseif (not loadResolved) or (not joinResolved) then
local duration = tick() - startTime;
if not loadResolved then
loadResolved = true
end
if not joinResolved then
joinResolved = true
end
elseif not playResolved then
playResolved = true
end
end
end)
game:GetService("ChangeHistoryService"):SetEnabled(false)
game:GetService("ContentProvider"):SetThreadPool(16)
game:GetService("InsertService"):SetBaseSetsUrl("http://www.rowblx.xyz/Game/Tools/InsertAsset.ashx?nsets=10&type=base")
game:GetService("InsertService"):SetUserSetsUrl("http://www.rowblx.xyz/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d")
game:GetService("InsertService"):SetCollectionUrl("http://www.rowblx.xyz/Game/Tools/InsertAsset.ashx?sid=%d")
game:GetService("InsertService"):SetAssetUrl("http://www.rowblx.xyz/asset/?id=%d")
game:GetService("InsertService"):SetAssetVersionUrl("http://www.rowblx.xyz/Asset/?assetversionid=%d")
pcall(function() game:GetService("SocialService"):SetFriendUrl("http://www.rowblx.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d") end)
pcall(function() game:GetService("SocialService"):SetBestFriendUrl("http://www.rowblx.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d") end)
pcall(function() game:GetService("SocialService"):SetGroupUrl("http://www.rowblx.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d") end)
pcall(function() game:GetService("SocialService"):SetGroupRankUrl("http://www.rowblx.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d") end)
pcall(function() game:GetService("SocialService"):SetGroupRoleUrl("http://www.rowblx.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d") end)
pcall(function() game:GetService("GamePassService"):SetPlayerHasPassUrl("http://rowblx.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d") end)
pcall(function() game:GetService("MarketplaceService"):SetProductInfoUrl("https://api.rowblx.xyz/marketplace/productinfo?assetId=%d") end)
pcall(function() game:GetService("MarketplaceService"):SetPlayerOwnsAssetUrl("https://api.rowblx.xyz/ownership/hasasset?userId=%d&assetId=%d") end)
pcall(function() game:SetCreatorID(0, Enum.CreatorType.User) end)
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end)
local waitingForCharacter = false
pcall( function()
if settings().Network.MtuOverride == 0 then
settings().Network.MtuOverride = 1400
end
end)
client = game:GetService("NetworkClient")
visit = game:GetService("Visit")
function setMessage(message)
-- todo: animated "..."
if not false then
game:SetMessage(message)
else
-- hack, good enought for now
game:SetMessage("Teleporting ...")
end
end
function showErrorWindow(message, errorType, errorCategory)
game:SetMessage(message)
end
-- called when the client connection closes
function onDisconnection(peer, lostConnection)
if lostConnection then
showErrorWindow("You have lost connection", "LostConnection", "LostConnection")
else
showErrorWindow("This game has been shutdown", "Kick", "Kick")
end
end
function requestCharacter(replicator)
-- prepare code for when the Character appears
local connection
connection = player.Changed:connect(function (property)
if property=="Character" then
game:ClearMessage()
waitingForCharacter = false
connection:disconnect()
if 0 then
if not joinResolved then
local duration = tick() - startTime;
joinResolved = true
playStartTime = tick()
playResolved = false
end
end
end
end)
setMessage("Requesting character")
local success, err = pcall(function()
replicator:RequestCharacter()
setMessage("Waiting for character")
waitingForCharacter = true
end)
end
function onConnectionAccepted(url, replicator)
connectResolved = true
local waitingForMarker = true
local success, err = pcall(function()
if not test then
visit:SetPing("", 300)
end
if not false then
game:SetMessageBrickCount()
else
setMessage("Teleporting ...")
end
replicator.Disconnection:connect(onDisconnection)
local marker = replicator:SendMarker()
marker.Received:connect(function()
waitingForMarker = false
requestCharacter(replicator)
end)
end)
if not success then
return
end
while waitingForMarker do
workspace:ZoomToExtents()
wait(0.5)
end
end
-- called when the client connection fails
function onConnectionFailed(_, error)
showErrorWindow("Failed to connect to the Game. (ID=" .. error .. ")", "ID" .. error, "Other")
end
-- called when the client connection is rejected
function onConnectionRejected()
connectionFailed:disconnect()
showErrorWindow("This game is not available. Please try another", "WrongVersion", "WrongVersion")
end
pcall(function() settings().Diagnostics:LegacyScriptMode() end)
local success, err = pcall(function()
game:SetRemoteBuildMode(true)
setMessage("Connecting to Server")
client.ConnectionAccepted:connect(onConnectionAccepted)
client.ConnectionRejected:connect(onConnectionRejected)
connectionFailed = client.ConnectionFailed:connect(onConnectionFailed)
client.Ticket = ""
playerConnectSucces, player = pcall(function() return client:PlayerConnect({id}, "{ip}", {port}, 0, threadSleepTime) end)
player:SetSuperSafeChat(false)
pcall(function() player:SetUnder13(false) end)
pcall(function() player:SetMembershipType(Enum.MembershipType.{membership}) end)
pcall(function() player:SetAccountAge(365) end)
player.Idled:connect(onPlayerIdled)
-- Overriden
onPlayerAdded(player)
-- player.CharacterAppearance = "http://www.rowblx.xyz/charapp/Custom.php?pants=<?php echo $pant; ?>&shirt=<?php echo $shirt; ?>&hat=<?php echo $hat; ?>&face=<?php echo $face; ?>"
if not test then visit:SetUploadUrl("")end
player.Name = "{username}"
end)
pcall(function() game:SetScreenshotInfo("") end)`;
import signer from "./signer";
export default function (id, username, ip, port, membership) {
let joinscript = script
.replace("{id}", id)
.replace("{username}", username)
.replace("{ip}", ip)
.replace("{port}", port)
.replace("{membership}", membership);
let sig = signer(joinscript);
joinscript = `--rbxsig%${sig}%${joinscript}`;
return joinscript;
}

14
src/lib/signer.js Normal file
View File

@ -0,0 +1,14 @@
import crypto from "crypto";
const privatekey = `-----BEGIN RSA PRIVATE KEY-----
${process.env.PRIVATE_KEY}
-----END RSA PRIVATE KEY-----`;
export default function (input) {
const sign = crypto.createSign("sha1");
sign.write(input);
sign.end();
const signature = sign.sign(privatekey);
return signature.toString("base64");
}

View File

@ -0,0 +1,16 @@
<script>
import { page } from "$app/stores";
</script>
<div class="mx-auto rounded-lg shadow border border-gray-300 max-w-2xl text-center divide-y">
<div class="p-2">
<img class="mx-auto mb-2" src="/img/error.png" alt="" />
<h1 class="mb-1 text-xl font-bold">{$page.status == 404 ? "Not Found" : "Unexpected Error"}</h1>
<p>The server ran into an error while processing your request.</p>
<p>Please try again later, or report this incident to a Rowblox developer if it persists.</p>
</div>
<div class="py-4 px-2 text-lg text-black">
<span class="mr-2 px-3 py-1 rounded border-2 border-blue-500 shadow-lg cursor-pointer hover:bg-blue-200" onclick="javascript:history.back()"> Go Back </span>
<a class="mr-2 px-3 py-1 rounded border-2 border-gray-500 shadow-lg hover:bg-gray-200" href="/"> Go Home </a>
</div>
</div>

View File

@ -0,0 +1,71 @@
<div class="navbar scrolling-background text-lg py-1 text-white">
<div class="container flex items-center">
<a href="/">
<img class="w-40 mr-6" src="/img/banner.png" alt="" />
</a>
<a class="mr-7" href="/games">Games</a>
<a class="mr-7" href="/catalog">Catalog</a>
<a class="mr-7" href="/forums">Forums</a>
<input
class="rounded-lg px-2 border-2 border-grey-300 text-black"
type="text"
name="search"
id="search"
placeholder="Search"
/>
<span class="flex-grow" />
<a class="mr-2 px-2 flex items-center rounded bg-blue-500 shadow-lg" href="/my/money">
<img class="h-6 mr-1.5" src="/img/rowbux.png" alt="" />
100
</a>
<div class="relative inline-block dropdown">
<button class="hover:text-zinc-200" href="/my/profile"
>abcdefghijklmnop
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="currentColor"
class="w-4 h-4 inline-block"
>
<path
fill-rule="evenodd"
d="M12.53 16.28a.75.75 0 01-1.06 0l-7.5-7.5a.75.75 0 011.06-1.06L12 14.69l6.97-6.97a.75.75 0 111.06 1.06l-7.5 7.5z"
clip-rule="evenodd"
/>
</svg>
</button>
<div
class="absolute bg-white text-center text-black w-36 right-0 origin-top-right rounded border border-gray-300 divide-y shadow-lg hidden dropdown-content"
>
<div>
<a class="block px-4 py-0.5 text-gray-700" href="/my/profile">Profile</a>
<a class="block px-4 py-0.5 text-gray-700" href="/my/settings">Settings</a>
</div>
<a class="block px-4 py-0.5 text-red-700" href="/logout">Logout</a>
</div>
</div>
</div>
</div>
<div class="navbar bg-zinc-800 text-base py-0.5 text-white">
<div class="container flex items-center">
<a class="mr-6" href="/my/avatar">Avatar</a>
<a class="mr-6" href="/my/friends">Friends</a>
<a class="mr-6" href="/my/money">Money</a>
<a class="mr-6" href="/groups">Groups</a>
<a class="mr-6" href="/people">People</a>
<a class="mr-6" href="/my/blogs">Blogs</a>
<a class="mr-6" href="/my/invites">Invites</a>
</div>
</div>
<div class="mobile-compatible scrolling-background text-lg py-1 text-white">
<div class="container flex items-center">
<p>"I'm lazy as fuck" -calones</p>
</div>
</div>
<div class="text-black container mt-4">
<slot />
</div>

View File

View File

@ -0,0 +1,6 @@
import { error } from "@sveltejs/kit";
/** @type {import('./$types').PageLoad} */
export function load(event) {
throw error(404, "Not Found");
}

View File

View File

@ -0,0 +1,11 @@
/** @type {import('./$types').RequestHandler} */
export function GET({ url }) {
return new Response("", {
status: 302,
headers: {
Location: `https://assetdelivery.roblox.com/v1/asset/?id=${url.searchParams.get(
"id"
)}&version=1`
}
});
}

View File

View File

View File

@ -0,0 +1,6 @@
import hostscript from "$lib/hostscript.js";
/** @type {import('./$types').RequestHandler} */
export function GET({ url }) {
return new Response(hostscript(666));
}

View File

@ -0,0 +1,14 @@
import joinscript from "$lib/joinscript.js";
/** @type {import('./$types').RequestHandler} */
export function GET({ url }) {
return new Response(
joinscript(
url.searchParams.get("id"),
url.searchParams.get("username"),
url.searchParams.get("ip"),
url.searchParams.get("port"),
"None"
)
);
}

View File

View File

View File

View File

View File

View File

View File

View File

View File

@ -0,0 +1,7 @@
<div class="scrolling-background">
<div class="container flex flex-col h-screen">
<span class="flex-grow" />
<slot />
<span class="flex-grow" />
</div>
</div>

View File

@ -0,0 +1,11 @@
<svelte:head>
<title>Landing - Rowblox</title>
</svelte:head>
<div class="max-w-xl mx-auto text-center">
<img class="max-w-md mx-auto" src="/img/banner.png" alt="" />
<div class="text-xl text-white">
<a class="px-5 py-1 rounded shadow-lg border-2 border-blue-500 hover:bg-blue-500" href="/login">Login</a>
<a class="px-5 py-1 rounded shadow-lg border-2 border-blue-500 hover:bg-blue-500" href="/register">Register</a>
</div>
</div>

View File

@ -0,0 +1,5 @@
<svelte:head>
<title>Login - Rowblox</title>
</svelte:head>
<div class="max-w-lg mx-auto text-center">insert form here</div>

View File

@ -0,0 +1,8 @@
<svelte:head>
<title>Maintenance - Rowblox</title>
</svelte:head>
<div class="max-w-xl mx-auto text-center">
<img class="max-w-md mx-auto" src="/img/banner.png" alt="" />
<p class="text-xl text-white">Rowblox is currently under development, check back later!</p>
</div>

View File

@ -0,0 +1,5 @@
<svelte:head>
<title>Register - Rowblox</title>
</svelte:head>
<div class="max-w-lg mx-auto text-center">insert form here</div>

View File

@ -1,5 +1,5 @@
<script>
import '../app.css';
import "../app.css";
</script>
<slot />

View File

@ -1 +0,0 @@
<h1 class="text-3xl font-bold underline">Rowblox is currently under development.</h1>

0
static/FFlag Normal file
View File

View File

@ -0,0 +1 @@
{"data":["0fb35a870ca24bea2a17020144335cd7","0fb35a870ca24bea2a17020144335cd7"]}

View File

@ -0,0 +1 @@
{"data":["0.206.0pcplayer"]}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{}

View File

@ -0,0 +1 @@
0 0 0 00 0 0 0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 14 KiB

BIN
static/img/background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

BIN
static/img/banner.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
static/img/error.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

BIN
static/img/rowbux.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-node';
import adapter from "@sveltejs/adapter-node";
import preprocess from "svelte-preprocess";
/** @type {import('@sveltejs/kit').Config} */
@ -8,9 +8,9 @@ const config = {
},
preprocess: [
preprocess({
postcss: true,
}),
],
postcss: true
})
]
};
export default config;

View File

@ -1,8 +1,14 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {}
},
plugins: []
};
content: ["./src/**/*.{html,js,svelte,ts}"],
theme: {
container: {
center: true,
padding: {
"2xl": "16rem"
}
},
extend: {}
},
plugins: []
};

View File

@ -1,7 +1,10 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { sveltekit } from "@sveltejs/kit/vite";
const config = {
plugins: [sveltekit()]
plugins: [sveltekit()],
define: {
"process.env": process.env
}
};
export default config;