Moved templates to be embedded in executable
This commit is contained in:
parent
b676be8cb2
commit
1c1a9589b7
25 changed files with 957 additions and 256 deletions
|
|
@ -1,47 +0,0 @@
|
|||
function parse(text) {
|
||||
let state = 0;
|
||||
let idx = 0;
|
||||
let current = '';
|
||||
let curr_row = [];
|
||||
let rows = [];
|
||||
|
||||
while(idx < text.length) {
|
||||
switch (text[idx]) {
|
||||
case '\\':
|
||||
current += text[idx++];
|
||||
break;
|
||||
|
||||
case '"':
|
||||
if(current.length == 0) {
|
||||
while(text.length > idx && text[++idx] != '"')
|
||||
current += text[idx];
|
||||
}
|
||||
break;
|
||||
|
||||
case ',':
|
||||
if (/^\d+(\.\d+)?$/.test(current)) {
|
||||
let asnum = parseFloat(current);
|
||||
curr_row.push(asnum);
|
||||
} else {
|
||||
curr_row.push(current);
|
||||
}
|
||||
current = '';
|
||||
break;
|
||||
|
||||
case '\n':
|
||||
curr_row.push(current);
|
||||
current = '';
|
||||
rows.push(curr_row);
|
||||
curr_row = [];
|
||||
break;
|
||||
|
||||
default:
|
||||
current += text[idx];
|
||||
break;
|
||||
}
|
||||
idx++;
|
||||
}
|
||||
return rows;
|
||||
}
|
||||
|
||||
export default parse;
|
||||
|
|
@ -554,114 +554,6 @@ video {
|
|||
--tw-contain-style: ;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.container {
|
||||
max-width: 640px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.container {
|
||||
max-width: 768px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.container {
|
||||
max-width: 1024px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1280px) {
|
||||
.container {
|
||||
max-width: 1280px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1536px) {
|
||||
.container {
|
||||
max-width: 1536px;
|
||||
}
|
||||
}
|
||||
|
||||
.relative {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.mb-2 {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.mb-4 {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.mb-8 {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.block {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.table {
|
||||
display: table;
|
||||
}
|
||||
|
||||
.h-full {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.grow {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.flex-row {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.flex-col {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.justify-evenly {
|
||||
justify-content: space-evenly;
|
||||
}
|
||||
|
||||
.overflow-auto {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.border {
|
||||
border-width: 1px;
|
||||
}
|
||||
|
||||
.bg-stone-300 {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(214 211 209 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.p-2 {
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.p-4 {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.text-lg {
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.75rem;
|
||||
}
|
||||
|
||||
.ars-input {
|
||||
margin: 0.25rem;
|
||||
margin-bottom: 0.75rem;
|
||||
|
|
@ -692,13 +584,3 @@ video {
|
|||
background: #57534e77;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.hover\:bg-stone-200:hover {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(231 229 228 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.hover\:bg-stone-400:hover {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(168 162 158 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue