ed
This commit is contained in:
parent
510e3ffcf2
commit
f43cf424cf
305 changed files with 34683 additions and 0 deletions
40
resources/[carscripts]/community_bridge/web/dist/assets/index-B0fYxqh2.js
vendored
Normal file
40
resources/[carscripts]/community_bridge/web/dist/assets/index-B0fYxqh2.js
vendored
Normal file
File diff suppressed because one or more lines are too long
91
resources/[carscripts]/community_bridge/web/dist/assets/index-BEeeZu6c.css
vendored
Normal file
91
resources/[carscripts]/community_bridge/web/dist/assets/index-BEeeZu6c.css
vendored
Normal file
|
@ -0,0 +1,91 @@
|
|||
.container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
background: transparent
|
||||
}
|
||||
|
||||
.dialogue-container {
|
||||
position: fixed;
|
||||
bottom: 30px;
|
||||
width: 50%;
|
||||
background: transparent;
|
||||
padding: 15px;
|
||||
left: 50%;
|
||||
transform: translate(-50%)
|
||||
}
|
||||
|
||||
.dialogue-text {
|
||||
background: #242424;
|
||||
padding: 10px;
|
||||
border-radius: 4px;
|
||||
margin: 10px 0;
|
||||
line-height: 1.6;
|
||||
font-size: 1.1em;
|
||||
border: 0.5px dotted rgba(203, 203, 203, 0.5);
|
||||
box-shadow: 0 4px 16px #0000007e;
|
||||
|
||||
}
|
||||
|
||||
.dialogue-options {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
justify-content: space-between;
|
||||
margin-top: 20px;
|
||||
width: 100%
|
||||
}
|
||||
|
||||
.dialogue-button {
|
||||
background: #242424;
|
||||
border: 0.5px solid rgba(203, 203, 203, 0.5);
|
||||
color: #fff;
|
||||
padding: 12px 24px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: all .2s ease;
|
||||
font-size: .95em;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
min-width: calc(33.333% - 8px);
|
||||
box-shadow: 0 4px 16px #0003
|
||||
}
|
||||
|
||||
.dialogue-button:hover {
|
||||
background: #3333338c;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 16px #0000007e;
|
||||
border: 1px solid rgba(255, 255, 255, .3);
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #fff;
|
||||
margin: 0;
|
||||
font-size: 1.4em;
|
||||
font-weight: 600;
|
||||
text-shadow: 0 2px 4px rgba(0, 0, 0, .3)
|
||||
}
|
||||
|
||||
p {
|
||||
color: #fff;
|
||||
margin: 0;
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, .2)
|
||||
}
|
||||
|
||||
* {
|
||||
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none
|
||||
}
|
||||
|
||||
* {
|
||||
overflow-y: hidden;
|
||||
overflow-x: hidden
|
||||
}
|
50
resources/[carscripts]/community_bridge/web/dist/index.html
vendored
Normal file
50
resources/[carscripts]/community_bridge/web/dist/index.html
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>MRC Scuba</title>
|
||||
<script type="module" crossorigin src="./assets/index-B0fYxqh2.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./assets/index-BEeeZu6c.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
<script>
|
||||
// dont judge me
|
||||
|
||||
function isTableJSON(jsonString) {
|
||||
try {
|
||||
const parsed = JSON.parse(jsonString);
|
||||
return parsed;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
const copyToClipboard = (str) => {
|
||||
const el = document.createElement("textarea");
|
||||
el.value = str;
|
||||
document.body.appendChild(el);
|
||||
el.select();
|
||||
document.execCommand("copy");
|
||||
document.body.removeChild(el);
|
||||
};
|
||||
|
||||
window.addEventListener("message", (event) => {
|
||||
if (event?.data?.type === "copytoclipboard") {
|
||||
var str = event.data.text;
|
||||
// str = JSON.parse(str);
|
||||
if (isTableJSON(str)) {
|
||||
str = str.replace(/\[/g, '{');
|
||||
str = str.replace(/\]/g, '}');
|
||||
// replace : with =
|
||||
str = str.replace(/:/g, '=');
|
||||
// I need all indexes with quotes to be replaced with nothing but not affect any string values
|
||||
str = str.replace(/"([^"]+)"=/g, '$1=');
|
||||
}
|
||||
copyToClipboard(str);
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue