This commit is contained in:
copyrighttxt
2026-07-06 13:28:00 -04:00
commit 05211f73ef
441 changed files with 94128 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
{% extends 'develop/games/manage-template.html' %}
{% block subcontent %}
<h4>Access</h4>
<form method="post">
<label for="MaxPlayersInput" class="form-label">Max Players ( 2 - 50 )</label>
<input class="form-control mb-1" type="number" name="maxplayers" id="MaxPlayersInput" placeholder="Max Players" required value="{{PlaceObj.maxplayers}}">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<div class="mt-2">
<button type="submit" class="btn btn-success btn-sm w-100">Save</button>
</div>
</form>
{% endblock %}
@@ -0,0 +1,66 @@
{% extends '__layout__.html' %}
{% block title %}Manage Place{% endblock %}
{% block head %}
<link href="/static/css/develop.css" rel="stylesheet"/>
<style>
.page-tabs a {
color: #dadada !important;
font-size: medium;
margin-top: 5px;
margin-bottom: 8px;
font-weight: 500;
text-decoration: none;
width: 100%;
text-align: center;
display: block;
padding: 8px;
background-color: #1f1f1f;
box-shadow: 0 0 1px 0 rgba(0,0,0,.2), 0 1px 2px 0 rgba(0,0,0,.2);
}
.page-tabs a:hover {
color: #fff !important;
}
</style>
{% endblock %}
{% block content %}
<div id="main">
<div class="container" style="max-width: 1000px;">
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div>
{% for category, message in messages %}
{% if category == 'error': %}
<div class="alert border p-2 text-center alert-danger border-danger">
{{ message }}
</div>
{% endif %}
{% if category == 'success': %}
<div class="alert border p-2 text-center alert-success border-success">
{{ message }}
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% endwith %}
<div>
<h1 class="m-0">{{PlaceAssetObj.name}}</h1>
<a href="/develop/universes/{{UniverseObj.id}}/places" class="text-decoration-none">Return to Manage Universe</a>
</div>
<div class="linebreak"></div>
<div class="row">
<div class="col-md-3 border-end page-tabs">
<a href="/develop/universes/{{UniverseObj.id}}/place/{{PlaceAssetObj.id}}/manage" class="w-100">Basic Settings</a>
<a href="/develop/universes/{{UniverseObj.id}}/place/{{PlaceAssetObj.id}}/access" class="w-100">Access</a>
<a href="/develop/universes/{{UniverseObj.id}}/place/{{PlaceAssetObj.id}}/upload-version" class="w-100">Upload File</a>
<a href="/develop/universes/{{UniverseObj.id}}/place/{{PlaceAssetObj.id}}/placeicon" class="w-100">Game Icon</a>
<a href="/develop/universes/{{UniverseObj.id}}/place/{{PlaceAssetObj.id}}/thumbnails" class="w-100">Thumbnails</a>
<a href="/develop/universes/{{UniverseObj.id}}/place/{{PlaceAssetObj.id}}/version-history" class="w-100">Version History</a>
</div>
<div class="col-md-9">
{% block subcontent %}{% endblock %}
</div>
</div>
</div>
</div>
{% endblock %}
+52
View File
@@ -0,0 +1,52 @@
{% extends 'develop/games/manage-template.html' %}
{% block subcontent %}
<h4>Basic Settings</h4>
<form method="post">
<input type="text" name="name" class="form-control" placeholder="Name" value="{{PlaceAssetObj.name}}" required>
<textarea name="description" class="form-control mt-2" placeholder="Description" style="min-height: 150px;" required>{{PlaceAssetObj.description}}</textarea>
<h5 class="mt-3">Chat Style</h5>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="chat-style-type" id="chat-style-type-radio1" value="0" {% if PlaceObj.chat_style.value == 0: %}checked{% endif %}>
<label class="form-check-label" for="chat-style-type-radio1">
Classic
</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="chat-style-type" id="chat-style-type-radio2" value="1" {% if PlaceObj.chat_style.value == 1: %}checked{% endif %}>
<label class="form-check-label" for="chat-style-type-radio2">
Bubble
</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="chat-style-type" id="chat-style-type-radio3" value="2" {% if PlaceObj.chat_style.value == 2: %}checked{% endif %}>
<label class="form-check-label" for="chat-style-type-radio3">
Classic and Bubble
</label>
</div>
{% if UniverseObj.place_year.value == 2018 or UniverseObj.place_year.value == 2020 or UniverseObj.place_year.value == 2021 %}
<h5 class="mt-3">Avatar Rig Type</h5>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="avatar-rig-type" id="avatar-rig-type-radio1" value="0" {% if PlaceObj.rig_choice.value == 0: %}checked{% endif %}>
<label class="form-check-label" for="avatar-rig-type-radio1">
User Choice
</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="avatar-rig-type" id="avatar-rig-type-radio2" value="1" {% if PlaceObj.rig_choice.value == 1: %}checked{% endif %}>
<label class="form-check-label" for="avatar-rig-type-radio2">
Force R6
</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="avatar-rig-type" id="avatar-rig-type-radio3" value="2" {% if PlaceObj.rig_choice.value == 2: %}checked{% endif %}>
<label class="form-check-label" for="avatar-rig-type-radio3">
Force R15
</label>
</div>
{% endif %}
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<div class="mt-2">
<button type="submit" class="btn btn-success btn-sm w-100">Save</button>
</div>
</form>
{% endblock %}
+25
View File
@@ -0,0 +1,25 @@
{% extends 'develop/games/manage-template.html' %}
{% block subcontent %}
<div class="row">
<div class="col">
<img src="/Thumbs/PlaceIcon.ashx?assetId={{PlaceAssetObj.id}}&x=420&y=420&refresh={{RandomNumber}}" class="mt-2 rounded" width="100%" style="aspect-ratio: 1/1;">
<p class="m-0" style="font-size: 10px;">Note: Image may be cached so you may see the previous image after uploading</p>
</div>
<div class="col">
<h4 class="m-0">Upload Place Icon</h4>
<p class="m-0 mb-2">Must have a 1:1 Aspect Ratio, Lesser than 2mb and be at max 1024 x 1024</p>
<form method="post" enctype="multipart/form-data">
<div class="mb-3">
<input class="form-control" type="file" id="file" name="file" required>
</div>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<button type="submit" class="btn btn-success btn-sm w-100">Upload Place Icon</button>
</form>
<form method="post">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<input type="hidden" name="usegenerated" value="on">
<button type="submit" class="btn btn-primary mt-2 btn-sm w-100">Use Generated Icon</button>
</form>
</div>
</div>
{% endblock %}
@@ -0,0 +1,25 @@
{% extends 'develop/games/manage-template.html' %}
{% block subcontent %}
<div class="row">
<div class="col-12">
<img src="/Thumbs/Asset.ashx?assetId={{PlaceAssetObj.id}}&x=1280&y=720&refresh={{RandomNumber}}" class="mt-2 rounded" width="100%" style="aspect-ratio: 16/9;">
<p class="m-0" style="font-size: 10px;">Note: Image may be cached so you may see the previous image after uploading</p>
</div>
<div class="col-12">
<h4 class="m-0">Upload Thumbnail</h4>
<p class="m-0 mb-2">Must have a 16:9 Aspect Ratio, Lesser than 2mb and be at max 1920x1080</p>
<form method="post" enctype="multipart/form-data">
<div class="mb-3">
<input class="form-control" type="file" id="file" name="file" required>
</div>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<button type="submit" class="btn btn-success btn-sm w-100">Upload Thumbnail</button>
</form>
<form method="post">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<input type="hidden" name="usegenerated" value="on">
<button type="submit" class="btn btn-primary mt-2 btn-sm w-100">Use Generated Thumbnail</button>
</form>
</div>
</div>
{% endblock %}
@@ -0,0 +1,12 @@
{% extends 'develop/games/manage-template.html' %}
{% block subcontent %}
<h4 class="m-0">Upload Place File</h4>
<p class="m-0 mb-2">Supported file types: .rbxl and .rbxlx Max File Size: 30mb</p>
<form method="post" enctype="multipart/form-data">
<div class="mb-3">
<input class="form-control" type="file" id="file" name="file" required>
</div>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<button type="submit" class="btn btn-success btn-sm w-100">Upload File</button>
</form>
{% endblock %}
@@ -0,0 +1,25 @@
{% extends 'develop/games/manage-template.html' %}
{% block subcontent %}
<h4 class="m-0">Version History</h4>
<div class="linebreak"></div>
<div>
{% for AssetVer in AssetVersions.items: %}
<div class="bg-dark p-2 rounded w-100 mt-2">
<div class="d-flex align-items-center">
<div>
<h5 class="m-0">Version {{AssetVer.version}}</h5>
<p class="text-secondary m-0" style="font-size: 13px;">Created on {{AssetVer.created_at.strftime("%d/%m/%Y at %H:%M:%S UTC")}} | ID: {{AssetVer.id}}</p>
</div>
<a href="{{CDN_URL}}/{{AssetVer.content_hash}}" class="ms-auto text-white me-1" style="font-size: 20px;">
<i class="bi bi-download"></i>
</a>
</div>
</div>
{% endfor %}
</div>
<div class="align-items-center d-flex justify-content-center mt-2">
<a class="ms-auto m-0 text-decoration-none {% if not AssetVersions.has_prev %}text-secondary{%endif%}" {% if AssetVersions.has_prev %}href="/develop/universes/{{UniverseObj.id}}/place/{{PlaceAssetObj.id}}/version-history?page={{AssetVersions.prev_num}}"{%endif%}>Previous</a>
<p class="ms-2 me-2 text-white m-0">Page {{AssetVersions.page}} of {{AssetVersions.pages}}</p>
<a class="me-auto m-0 text-decoration-none {% if not AssetVersions.has_next %}text-secondary{%endif%}" {% if AssetVersions.has_next %}href="/develop/universes/{{UniverseObj.id}}/place/{{PlaceAssetObj.id}}/version-history?page={{AssetVersions.next_num}}"{%endif%}>Next</a>
</div>
{% endblock %}