mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-07 15:18:07 -06:00
🐸restructure frontend stuff, include admin and future user panel in main repo, properly deduplicate bundles for css+js across uses
This commit is contained in:
parent
f3b44426f4
commit
f971763743
36 changed files with 8978 additions and 1252 deletions
11
web/assets/bundled/_colors.css
Normal file
11
web/assets/bundled/_colors.css
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
:root {
|
||||
--bg: #525c66;
|
||||
--fg: #fafaff;
|
||||
--fg_dark: #b0b0b5;
|
||||
--bg_accent: hsl(210, 10.8695652174%, 31.0784313725%);
|
||||
--acc1: #de8957;
|
||||
--acc2: #c76d33;
|
||||
--blue: #5897df
|
||||
}
|
||||
|
||||
1115
web/assets/bundled/admin-panel.js
Normal file
1115
web/assets/bundled/admin-panel.js
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1,8 +1,9 @@
|
|||
|
||||
html, body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
background: rgb(70, 79, 88);
|
||||
color: #fafaff;
|
||||
background: var(--bg_accent);
|
||||
color: var(--fg);
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
|
|
@ -15,7 +16,7 @@ body {
|
|||
}
|
||||
|
||||
main {
|
||||
background: #525c66;
|
||||
background: var(--bg);
|
||||
display: grid;
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
|
|
@ -32,7 +33,7 @@ main .right {
|
|||
}
|
||||
|
||||
main.lightgray {
|
||||
background: #525c66;
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
main > * {
|
||||
|
|
@ -41,7 +42,7 @@ main > * {
|
|||
}
|
||||
|
||||
header {
|
||||
background: rgb(70, 79, 88);
|
||||
background: var(--bg_accent);
|
||||
padding: 2rem 0;
|
||||
padding-bottom: 0;
|
||||
display: flex;
|
||||
|
|
@ -74,13 +75,13 @@ h1 {
|
|||
}
|
||||
|
||||
a {
|
||||
color: #de8957;
|
||||
color: var(--acc1);
|
||||
}
|
||||
|
||||
.button, button {
|
||||
border-radius: 0.2rem;
|
||||
background: #de8957;
|
||||
color: #fafaff;
|
||||
background: var(--acc1);
|
||||
color: var(--fg);
|
||||
text-decoration: none;
|
||||
font-size: 1.2rem;
|
||||
font-weight: bold;
|
||||
|
|
@ -90,11 +91,11 @@ a {
|
|||
}
|
||||
|
||||
.button:hover, button:hover {
|
||||
background: #c76d33;
|
||||
background: var(--acc2);
|
||||
}
|
||||
|
||||
.count {
|
||||
background: rgb(70, 79, 88);
|
||||
background: var(--bg_accent);
|
||||
border-radius: 0.3rem;
|
||||
padding: 0.2rem;
|
||||
}
|
||||
|
|
@ -104,7 +105,7 @@ a {
|
|||
}
|
||||
|
||||
.accent {
|
||||
color: #de8957;
|
||||
color: var(--acc1);
|
||||
}
|
||||
|
||||
.logo {
|
||||
|
|
@ -131,20 +132,21 @@ section.apps .applist .entry {
|
|||
grid-template-columns: 30% 1fr;
|
||||
gap: 0.5rem;
|
||||
padding: 0.5rem;
|
||||
background: rgb(70, 79, 88);
|
||||
background: var(--bg_accent);
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
section.apps .applist .entry .logo {
|
||||
align-self: center;
|
||||
width: 100%;
|
||||
object-fit: contain;
|
||||
-o-object-fit: contain;
|
||||
object-fit: contain;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
section.apps .applist .entry .logo.redraw {
|
||||
fill: #fafaff;
|
||||
stroke: #fafaff;
|
||||
fill: var(--fg);
|
||||
stroke: var(--fg);
|
||||
}
|
||||
|
||||
section.apps .applist .entry div {
|
||||
|
|
@ -187,9 +189,9 @@ section.error pre {
|
|||
}
|
||||
|
||||
input, select, textarea {
|
||||
border: 1px solid #fafaff;
|
||||
color: #fafaff;
|
||||
background: #525c66;
|
||||
border: 1px solid var(--fg);
|
||||
color: var(--fg);
|
||||
background: var(--bg);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
|
@ -227,3 +229,4 @@ footer a {
|
|||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
126
web/assets/bundled/panels-admin-style.css
Normal file
126
web/assets/bundled/panels-admin-style.css
Normal file
|
|
@ -0,0 +1,126 @@
|
|||
|
||||
body {
|
||||
grid-template-rows: auto 1fr;
|
||||
}
|
||||
|
||||
.capitalize {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
section {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
input, select, textarea {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
section.info form {
|
||||
grid-template-columns: auto 1fr;
|
||||
width: calc(100% - 0.35rem);
|
||||
}
|
||||
|
||||
section.info form input {
|
||||
width: 100%;
|
||||
line-height: 1.5rem;
|
||||
}
|
||||
|
||||
section.info form label, section.info form input {
|
||||
padding: 0.2rem 0.5rem;
|
||||
}
|
||||
|
||||
section.info form input[type=checkbox] {
|
||||
justify-self: start;
|
||||
width: initial;
|
||||
}
|
||||
|
||||
section.info form input:-moz-read-only {
|
||||
border: none;
|
||||
}
|
||||
|
||||
section.info form input:read-only {
|
||||
border: none;
|
||||
}
|
||||
|
||||
section.info form input:invalid {
|
||||
border-color: red;
|
||||
}
|
||||
|
||||
section.info textarea {
|
||||
width: 100%;
|
||||
height: 8rem;
|
||||
}
|
||||
|
||||
section.info h1 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
section.blocks .overflow {
|
||||
max-height: 80vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
section.blocks .blocklist {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
grid-gap: 0.35rem 0;
|
||||
}
|
||||
|
||||
section.blocks .blocklist div {
|
||||
background: rgb(70, 79, 88);
|
||||
padding: 0.2rem 0.4rem;
|
||||
}
|
||||
|
||||
section.blocks .addblock {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto auto;
|
||||
grid-gap: 0.35rem;
|
||||
}
|
||||
|
||||
section.blocks .addblock input, section.blocks .addblock select {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
section.blocks .addblock input, section.blocks .addblock select, section.blocks .addblock textarea {
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
section.blocks .addblock div {
|
||||
grid-column: 1/4;
|
||||
}
|
||||
|
||||
section.blocks .addblock div.single input {
|
||||
width: initial;
|
||||
}
|
||||
|
||||
section.blocks h3 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
section.blocks .controls {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.error {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.notImplemented {
|
||||
border: 2px solid rgb(70, 79, 88);
|
||||
background: repeating-linear-gradient(
|
||||
-45deg,
|
||||
#525c66,
|
||||
#525c66 10px,
|
||||
rgb(70, 79, 88) 10px,
|
||||
rgb(70, 79, 88) 20px
|
||||
) !important;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
main {
|
||||
background: transparent;
|
||||
}
|
||||
|
|
@ -5,13 +6,14 @@ main {
|
|||
.headerimage img {
|
||||
width: 100%;
|
||||
height: 15em;
|
||||
object-fit: cover;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.profile {
|
||||
position: relative;
|
||||
background: rgb(75, 84, 93);
|
||||
background: color(var(--bg) lightness(-3%));
|
||||
padding: 2rem;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
|
@ -49,7 +51,8 @@ main {
|
|||
}
|
||||
|
||||
.profile .basic .avatar-container .avatar img {
|
||||
object-fit: cover;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
border-radius: 10px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
|
@ -82,13 +85,13 @@ main {
|
|||
}
|
||||
|
||||
.profile .detailed .bio a {
|
||||
color: #de8957;
|
||||
color: var(--acc1);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.accountstats {
|
||||
position: relative;
|
||||
background: rgb(75, 84, 93);
|
||||
background: color(var(--bg) lightness(-3%));
|
||||
padding: 0.5rem;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
|
@ -98,7 +101,7 @@ main {
|
|||
}
|
||||
|
||||
.accountstats .entry {
|
||||
background: rgb(89, 99, 110);
|
||||
background: color(var(--bg) lightness(+3%));
|
||||
padding: 0.5rem;
|
||||
flex-grow: 1;
|
||||
text-align: center;
|
||||
|
|
@ -108,3 +111,4 @@ footer + div {
|
|||
/* something weird from the devstack.. */
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
main {
|
||||
background: transparent;
|
||||
grid-auto-rows: auto;
|
||||
|
|
@ -10,12 +11,13 @@ main {
|
|||
|
||||
.toot {
|
||||
position: relative;
|
||||
background: rgb(75, 84, 93);
|
||||
background: color(var(--bg) lightness(-3%));
|
||||
padding: 2rem;
|
||||
/* padding-bottom: 0; */
|
||||
display: grid;
|
||||
grid-template-columns: 3.2rem auto 1fr;
|
||||
column-gap: 0.5rem;
|
||||
-moz-column-gap: 0.5rem;
|
||||
column-gap: 0.5rem;
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
|
||||
|
|
@ -33,7 +35,8 @@ main {
|
|||
.toot .avatar img {
|
||||
height: 3.2rem;
|
||||
width: 3.2rem;
|
||||
object-fit: cover;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.toot .displayname {
|
||||
|
|
@ -43,7 +46,7 @@ main {
|
|||
}
|
||||
|
||||
.toot .username {
|
||||
color: #b0b0b5;
|
||||
color: var(--fg_dark);
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
|
|
@ -52,7 +55,7 @@ main {
|
|||
}
|
||||
|
||||
.toot .spoiler label {
|
||||
background: #de8957;
|
||||
background: var(--acc1);
|
||||
border-radius: 0.3rem;
|
||||
padding: 0.3rem;
|
||||
margin-left: 0.4rem;
|
||||
|
|
@ -67,7 +70,7 @@ main {
|
|||
}
|
||||
|
||||
.toot .text a {
|
||||
color: #de8957;
|
||||
color: var(--acc1);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
|
@ -92,7 +95,7 @@ main {
|
|||
bottom: 0.1rem;
|
||||
right: 0.4rem;
|
||||
color: white;
|
||||
background: #5897df;
|
||||
background: var(--blue);
|
||||
padding: 0.2rem 0.4rem;
|
||||
border-radius: 100%;
|
||||
z-index: 3;
|
||||
|
|
@ -119,7 +122,8 @@ main {
|
|||
.toot .media img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.toot .media.single a {
|
||||
|
|
@ -156,13 +160,14 @@ main {
|
|||
}
|
||||
|
||||
.toot .info div::after {
|
||||
--size: 0.25rem;
|
||||
display: block;
|
||||
background: #b0b0b5;
|
||||
height: 0.25rem;
|
||||
width: 0.25rem;
|
||||
background: var(--fg_dark);
|
||||
height: var(--size);
|
||||
width: var(--size);
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: calc((1.5rem - 0.25rem) / 2);
|
||||
top: calc((1.5rem - var(--size)) / 2);
|
||||
right: 0.55rem;
|
||||
border-radius: 1rem;
|
||||
}
|
||||
|
|
@ -188,21 +193,24 @@ main {
|
|||
z-index: 0;
|
||||
}
|
||||
|
||||
.toot {}
|
||||
.toot {
|
||||
|
||||
--border-radius: 0.3rem;
|
||||
}
|
||||
|
||||
.toot:first-child {
|
||||
/* top left, top right */
|
||||
border-radius: 0.3rem 0.3rem 0 0;
|
||||
border-radius: var(--border)-radius var(--border)-radius 0 0;
|
||||
}
|
||||
|
||||
.toot:last-child {
|
||||
/* bottom left, bottom right */
|
||||
border-radius: 0 0 0.3rem 0.3rem;
|
||||
border-radius: 0 0 var(--border)-radius var(--border)-radius;
|
||||
padding-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.toot.expanded {
|
||||
background: #525c66;
|
||||
background: var(--bg);
|
||||
padding-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
|
|
@ -227,4 +235,4 @@ main {
|
|||
|
||||
footer + div { /* something weird from the devstack.. */
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
18
web/assets/bundled/user-panel.js
Normal file
18
web/assets/bundled/user-panel.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({30:[function(require,module,exports){
|
||||
"use strict";
|
||||
|
||||
var Promise = require("bluebird");
|
||||
|
||||
var React = require("react");
|
||||
|
||||
var ReactDom = require("react-dom"); // require("./style.css");
|
||||
|
||||
|
||||
function App() {
|
||||
return "hello world - user panel";
|
||||
}
|
||||
|
||||
ReactDom.render( /*#__PURE__*/React.createElement(App, null), document.getElementById("root"));
|
||||
|
||||
},{"bluebird":15,"react":23,"react-dom":20}]},{},[30])
|
||||
//# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9mYWN0b3ItYnVuZGxlL25vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJwYW5lbHMvdXNlci9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQ0FBOztBQUVBLElBQU0sT0FBTyxHQU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