forked from rDrama/rDrama
1
0
Fork 0

use tabs not spaces

master
Aevann 2023-08-01 10:38:30 +03:00
parent d8ffc075d3
commit eebc6db138
6 changed files with 176 additions and 176 deletions

View File

@ -4038,7 +4038,7 @@ small, .small {
.voting .arrow-down .voting .arrow-down
{ {
display: block; display: block;
text-decoration: none; text-decoration: none;
} }
.box-shadow-bottom { .box-shadow-bottom {
@ -7593,6 +7593,6 @@ body {
} }
.rainbow-text del { .rainbow-text del {
color: var(--black); color: var(--black);
font-weight: 400; font-weight: 400;
} }

View File

@ -4,22 +4,22 @@
} }
@media all and (max-width: 900px) { @media all and (max-width: 900px) {
.orgy-top-container { .orgy-top-container {
flex-flow: column wrap; flex-flow: column wrap;
} }
.orgy-info-window-item { .orgy-info-window-item {
max-height: 20% !important; max-height: 20% !important;
height: 20% !important; height: 20% !important;
} }
.orgy-chat-window-item { .orgy-chat-window-item {
max-height: 80% !important; max-height: 80% !important;
height: 80% !important; height: 80% !important;
} }
} }
@media all and (min-width: 900px) { @media all and (min-width: 900px) {
.orgy-top-container { .orgy-top-container {
flex-flow: row nowrap; flex-flow: row nowrap;
} }
} }
.orgy-chat-window-item { .orgy-chat-window-item {
@ -31,7 +31,7 @@
width: 550px; width: 550px;
} }
.rumble-player { .rumble-player {
aspect-ratio: 16/9; aspect-ratio: 16/9;
max-width: min(70vw,500px) !important; max-width: min(70vw,500px) !important;
width: 500px; width: 500px;
} }

View File

@ -101,7 +101,7 @@
{% if v.admin_level >= PERMS['ORGIES'] %} {% if v.admin_level >= PERMS['ORGIES'] %}
<h4>Misc</h4> <h4>Misc</h4>
<ul> <ul>
<li><a href="/admin/orgy">Start/Stop Orgy</a></li> <li><a href="/admin/orgy">Start/Stop Orgy</a></li>
</ul> </ul>
{%- endif %} {%- endif %}
<h4>Statistics</h4> <h4>Statistics</h4>

View File

@ -13,37 +13,37 @@
</div> </div>
<div class="body d-lg-flex"> <div class="body d-lg-flex">
<div class="w-lg-100"> <div class="w-lg-100">
{%if not orgy%} {%if not orgy%}
<form id="orgy" action="/admin/start_orgy" method="post"> <form id="orgy" action="/admin/start_orgy" method="post">
<div class="d-lg-flex border-bottom"> <div class="d-lg-flex border-bottom">
<div class="title w-lg-25"> <div class="title w-lg-25">
<label for="title">Title</label> <label for="title">Title</label>
</div> </div>
<div class="body w-lg-100"> <div class="body w-lg-100">
<input id="title" autocomplete="off" type="text" name="title" class="form-control"> <input id="title" autocomplete="off" type="text" name="title" class="form-control">
</div> </div>
</div> </div>
<div class="d-lg-flex border-bottom"> <div class="d-lg-flex border-bottom">
<div class="title w-lg-25"> <div class="title w-lg-25">
<label for="link">Livestream link (youtube, twitch, rumble)</label> <label for="link">Livestream link (youtube, twitch, rumble)</label>
</div> </div>
<div class="body w-lg-100"> <div class="body w-lg-100">
<input id="link" autocomplete="off" type="text" name="link" class="form-control"> <input id="link" autocomplete="off" type="text" name="link" class="form-control">
</div> </div>
</div> </div>
<input hidden name="formkey" value="{{v|formkey}}"> <input hidden name="formkey" value="{{v|formkey}}">
<div class="d-flex mt-2"> <div class="d-flex mt-2">
<input autocomplete="off" class="btn btn-primary ml-auto" type="submit" value="Start Orgy"> <input autocomplete="off" class="btn btn-primary ml-auto" type="submit" value="Start Orgy">
</div> </div>
</form> </form>
{%else%} {%else%}
<form id="orgy" action="/admin/stop_orgy" method="post"> <form id="orgy" action="/admin/stop_orgy" method="post">
<input hidden name="formkey" value="{{v|formkey}}"> <input hidden name="formkey" value="{{v|formkey}}">
<div class="d-flex mt-2"> <div class="d-flex mt-2">
<input autocomplete="off" class="btn btn-primary ml-auto" type="submit" value="Stop Orgy"> <input autocomplete="off" class="btn btn-primary ml-auto" type="submit" value="Stop Orgy">
</div> </div>
</form> </form>
{%endif%} {%endif%}
</div> </div>
</div> </div>
</div> </div>

View File

@ -11,39 +11,39 @@
<div class="container pb-4"> <div class="container pb-4">
<div class="orgy-top-container"> <div class="orgy-top-container">
<div class="col text-left pt-3 orgy-info-window-item"> <div class="col text-left pt-3 orgy-info-window-item">
<h2>{{orgy.title}}</h1> <h2>{{orgy.title}}</h1>
<div> <div>
{% if orgy.is_youtube() %} {% if orgy.is_youtube() %}
<lite-youtube videoid="{{orgy.data}}" params="autoplay=1&modestbranding=1"/> <lite-youtube videoid="{{orgy.data}}" params="autoplay=1&modestbranding=1"/>
{% elif orgy.is_rumble() %} {% elif orgy.is_rumble() %}
<iframe class="rumble rumble-player" width="100%" src="{{orgy.data}}" frameborder="0" allowfullscreen></iframe> <iframe class="rumble rumble-player" width="100%" src="{{orgy.data}}" frameborder="0" allowfullscreen></iframe>
{% elif orgy.is_twitch() %} {% elif orgy.is_twitch() %}
<iframe <iframe
src="https://player.twitch.tv/?channel={{orgy.data}}&parent={{site}}" src="https://player.twitch.tv/?channel={{orgy.data}}&parent={{site}}"
class="rumble-player" class="rumble-player"
allowfullscreen> allowfullscreen>
</iframe> </iframe>
{%endif%} {%endif%}
</div> </div>
<a href="/old_chat" class="btn btn-primary ml-auto" value="Old Chat">Old Chat</a> <a href="/old_chat" class="btn btn-primary ml-auto" value="Old Chat">Old Chat</a>
{{macros.chat_users_list()}} {{macros.chat_users_list()}}
</div> </div>
<div class="orgy-chat-window-item"> <div class="orgy-chat-window-item">
<div id="chat-group-template" class="d-none"> <div id="chat-group-template" class="d-none">
{{macros.chat_group_template()}} {{macros.chat_group_template()}}
</div> </div>
</div> </div>
<div id="chat-line-template" class="d-none"> <div id="chat-line-template" class="d-none">
{{macros.chat_line_template()}} {{macros.chat_line_template()}}
</div> </div>
{{macros.chat_users_online()}} {{macros.chat_users_online()}}
{{macros.chat_window(vlink)}} {{macros.chat_window(vlink)}}
</div> </div>
</div> </div>
</div> </div>
<input id="vid" hidden value="{{v.id}}"> <input id="vid" hidden value="{{v.id}}">

View File

@ -222,128 +222,128 @@
{% macro chat_users_online() %} {% macro chat_users_online() %}
<div class="border-right pb-1 px-3"> <div class="border-right pb-1 px-3">
<span id="online2" data-bs-html="true" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Users Online" class="text-muted"> <span id="online2" data-bs-html="true" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Users Online" class="text-muted">
<i class="far fa-user fa-sm mr-1"></i> <i class="far fa-user fa-sm mr-1"></i>
<span class="board-chat-count">0</span> <span class="board-chat-count">0</span>
</span> </span>
</div> </div>
{% endmacro %} {% endmacro %}
{% macro chat_group_template(id, m) %} {% macro chat_group_template(id, m) %}
<div class="chat-group"> <div class="chat-group">
<a class="font-weight-bold userlink" target="_blank" {% if m %}style="color:#{{m['namecolor']}}" href="/@{{m['username']}}" {% endif %}><div class="avatar profile-pic-20-wrapper mr-1"><img loading="lazy" class="avatar-pic pp20 mr-1" {% if m %}src="/pp/{{m['user_id']}}"{% endif %}><img class="avatar-hat profile-pic-20-hat hat" loading="lazy" {% if m %}src="{{m['hat']}}"{% endif %}></div>{% if m %}{{m['username']}}{% else %}NULL{% endif %}</a> <a class="font-weight-bold userlink" target="_blank" {% if m %}style="color:#{{m['namecolor']}}" href="/@{{m['username']}}" {% endif %}><div class="avatar profile-pic-20-wrapper mr-1"><img loading="lazy" class="avatar-pic pp20 mr-1" {% if m %}src="/pp/{{m['user_id']}}"{% endif %}><img class="avatar-hat profile-pic-20-hat hat" loading="lazy" {% if m %}src="{{m['hat']}}"{% endif %}></div>{% if m %}{{m['username']}}{% else %}NULL{% endif %}</a>
<span class="text-black time ml-1 mb-3 text-center">{% if m %}{{m['time'] | timestamp}}{% else %}just now{% endif %}</span> <span class="text-black time ml-1 mb-3 text-center">{% if m %}{{m['time'] | timestamp}}{% else %}just now{% endif %}</span>
<input hidden class="user_id" {% if m %}value="{{m['user_id']}}"{% endif %}> <input hidden class="user_id" {% if m %}value="{{m['user_id']}}"{% endif %}>
{% endmacro %} {% endmacro %}
{% macro chat_line_template(id, m, vlink) %} {% macro chat_line_template(id, m, vlink) %}
{% set quote_exists = m and m['quotes'] and messages.get(m['quotes']) %} {% set quote_exists = m and m['quotes'] and messages.get(m['quotes']) %}
{% set mentioned = m and vlink in m['text_html'] or (quote_exists and messages[m['quotes']]['user_id'] == v.id) %} {% set mentioned = m and vlink in m['text_html'] or (quote_exists and messages[m['quotes']]['user_id'] == v.id) %}
<div class="chat-line {% if mentioned %}chat-mention{% endif %}" {% if m %}id="{{id}}"{% endif %}> <div class="chat-line {% if mentioned %}chat-mention{% endif %}" {% if m %}id="{{id}}"{% endif %}>
<div class="d-flex align-items-center"> <div class="d-flex align-items-center">
<div class="text-muted chat-line-content"> <div class="text-muted chat-line-content">
<div class="{% if not (m and m['quotes']) %}d-none{% endif %} quotes" style="font-size:12px"> <div class="{% if not (m and m['quotes']) %}d-none{% endif %} quotes" style="font-size:12px">
<a class="QuotedMessageLink" {% if m and m['quotes'] %}href="#{{m['quotes']}}"{% endif %}> <a class="QuotedMessageLink" {% if m and m['quotes'] %}href="#{{m['quotes']}}"{% endif %}>
<i class="fas fa-reply"></i> <i class="fas fa-reply"></i>
<span class="text-primary">@<span class="QuotedUser"> <span class="text-primary">@<span class="QuotedUser">
{%- if quote_exists -%} {%- if quote_exists -%}
{{messages[m['quotes']]['username']}} {{messages[m['quotes']]['username']}}
{%- endif -%} {%- endif -%}
</span></span>: </span></span>:
<em class="QuotedMessage text-break"> <em class="QuotedMessage text-break">
{%- if quote_exists -%} {%- if quote_exists -%}
{%- if v.slurreplacer -%} {%- if v.slurreplacer -%}
{{messages[m['quotes']]['text_censored']}} {{messages[m['quotes']]['text_censored']}}
{%- else -%} {%- else -%}
{{messages[m['quotes']]['text']}} {{messages[m['quotes']]['text']}}
{%- endif -%} {%- endif -%}
{%- endif -%} {%- endif -%}
</em> </em>
</a> </a>
</div> </div>
<div class="d-flex"> <div class="d-flex">
<span class="chat-message text-black text-break"> <span class="chat-message text-black text-break">
{% if m %} {% if m %}
{% if v.slurreplacer %} {% if v.slurreplacer %}
{{m['text_html_censored'] | safe}} {{m['text_html_censored'] | safe}}
{% else %} {% else %}
{{m['text_html'] | safe}} {{m['text_html'] | safe}}
{% endif %} {% endif %}
{% endif %} {% endif %}
</span> </span>
<span class="text d-none"> <span class="text d-none">
{%- if m -%} {%- if m -%}
{%- if v.slurreplacer -%} {%- if v.slurreplacer -%}
{{m['text_censored']}} {{m['text_censored']}}
{%- else -%} {%- else -%}
{{m['text']}} {{m['text']}}
{%- endif -%} {%- endif -%}
{%- endif -%} {%- endif -%}
</span> </span>
<i class="quote btn fas fa-reply ml-auto" data-nonce="{{g.nonce}}" data-onclick="quote(this)"></i> <i class="quote btn fas fa-reply ml-auto" data-nonce="{{g.nonce}}" data-onclick="quote(this)"></i>
{% if v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %} {% if v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %}
<i class="btn del delconfirm fas fa-trash-alt"></i> <i class="btn del delconfirm fas fa-trash-alt"></i>
<i class="btn d-none del delmsg fas fa-trash-alt text-danger" data-nonce="{{g.nonce}}" data-onclick="del(this)"></i> <i class="btn d-none del delmsg fas fa-trash-alt text-danger" data-nonce="{{g.nonce}}" data-onclick="del(this)"></i>
{% endif %} {% endif %}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{% endmacro %} {% endmacro %}
{% macro chat_window(vlink)%} {% macro chat_window(vlink)%}
<div id="shrink"> <div id="shrink">
<div id="chat-window" class="container p-0"> <div id="chat-window" class="container p-0">
{% set messages_list = messages.items()|list %} {% set messages_list = messages.items()|list %}
{% for id, m in messages_list %} {% for id, m in messages_list %}
{% set same = loop.index > 1 and m['user_id'] == messages_list[loop.index-2][1]['user_id'] %} {% set same = loop.index > 1 and m['user_id'] == messages_list[loop.index-2][1]['user_id'] %}
{% if not same %} {% if not same %}
{% if loop.index > 1 %} {% if loop.index > 1 %}
</div> </div>
{% endif %} {% endif %}
{{chat_group_template(id, m)}} {{chat_group_template(id, m)}}
{% endif %} {% endif %}
{{chat_line_template(id, m, vlink)}} {{chat_line_template(id, m, vlink)}}
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
<div class="mt-3"></div> <div class="mt-3"></div>
<div id="quotes" class="mt-3 ml-3 mb-2 d-none" style="font-size:12px"> <div id="quotes" class="mt-3 ml-3 mb-2 d-none" style="font-size:12px">
<a id="QuotedMessageLink"> <a id="QuotedMessageLink">
<i class="fas fa-reply"></i> <span class="text-primary">@<span id="QuotedUser"></span></span>: <em id="QuotedMessage"></em> <i class="fas fa-reply"></i> <span class="text-primary">@<span id="QuotedUser"></span></span>: <em id="QuotedMessage"></em>
<button type="button" id="cancel" class="btn btn-secondary">Cancel</button> <button type="button" id="cancel" class="btn btn-secondary">Cancel</button>
<input hidden id="quotes_id"> <input hidden id="quotes_id">
</a> </a>
</div> </div>
<div id='message' class="d-none position-relative form-group d-flex"> <div id='message' class="d-none position-relative form-group d-flex">
<div class="position-absolute text-muted text-small ml-1" style="bottom: -1.5rem; line-height: 1;"> <div class="position-absolute text-muted text-small ml-1" style="bottom: -1.5rem; line-height: 1;">
<span id="typing-indicator"></span> <span id="typing-indicator"></span>
<span id="loading-indicator" class="d-none"></span> <span id="loading-indicator" class="d-none"></span>
</div> </div>
<span class="my-auto"> <span class="my-auto">
<i class="btn btn-secondary fas fa-smile-beam" style="font-size:1.3rem!important" data-nonce="{{g.nonce}}" data-onclick="loadEmojis('input-text')" data-bs-toggle="modal" data-bs-target="#emojiModal"></i> <i class="btn btn-secondary fas fa-smile-beam" style="font-size:1.3rem!important" data-nonce="{{g.nonce}}" data-onclick="loadEmojis('input-text')" data-bs-toggle="modal" data-bs-target="#emojiModal"></i>
</span> </span>
<span class="my-auto ml-1"> <span class="my-auto ml-1">
<label class="btn btn-secondary format mb-0"> <label class="btn btn-secondary format mb-0">
<div class="mr-3" style="font-size:12px"><i class="fas fa-image" style="font-size:1.3rem!important"></i></div> <div class="mr-3" style="font-size:12px"><i class="fas fa-image" style="font-size:1.3rem!important"></i></div>
<input autocomplete="off" id="file" accept="image/*" type="file" name="file" {% if g.is_tor %}disabled{% endif %} hidden> <input autocomplete="off" id="file" accept="image/*" type="file" name="file" {% if g.is_tor %}disabled{% endif %} hidden>
</label> </label>
</span> </span>
<textarea id="input-text" minlength="1" maxlength="{% if SITE == 'rdrama.net' %}200{% else %}1000{% endif %}" {% if g.browser in ("iphone","mac") %}style="font-size:16px!important"{% endif %} class="file-ta form-control" placeholder="Message" autocomplete="off" autofocus rows="1"></textarea> <textarea id="input-text" minlength="1" maxlength="{% if SITE == 'rdrama.net' %}200{% else %}1000{% endif %}" {% if g.browser in ("iphone","mac") %}style="font-size:16px!important"{% endif %} class="file-ta form-control" placeholder="Message" autocomplete="off" autofocus rows="1"></textarea>
<i id="chatsend" data-nonce="{{g.nonce}}" data-onclick="send()" class="btn btn-secondary fas fa-reply ml-3 my-auto" style="transform:rotateY(180deg);font-size:1.3rem!important"></i> <i id="chatsend" data-nonce="{{g.nonce}}" data-onclick="send()" class="btn btn-secondary fas fa-reply ml-3 my-auto" style="transform:rotateY(180deg);font-size:1.3rem!important"></i>
</div> </div>
</div> </div>
{% endmacro %} {% endmacro %}
{% macro chat_users_list() %} {% macro chat_users_list() %}
<div class="col text-left d-none d-lg-block pt-3" style="max-width:300px"> <div class="col text-left d-none d-lg-block pt-3" style="max-width:300px">
<h5>Users Online</h5> <h5>Users Online</h5>
<div id="online" class="mt-3"></div> <div id="online" class="mt-3"></div>
</div> </div>
{% endmacro %} {% endmacro %}