feat: some style and use nodesource for npm binary

This commit is contained in:
Minhyeok Park 2024-10-15 16:38:18 +09:00
parent 5deb30a41b
commit 931ba0f1c1
Signed by: pmh_only
SSH Key Fingerprint: SHA256:g/OyGvi2pcd8ub9mqge/ohmDP0fZX/xOPWPIcM+9XpI
4 changed files with 8768 additions and 14 deletions

View File

@ -8,8 +8,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: | - run: |
apt-get update -y curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
apt-get install -y npm apt-get install -y nodejs
- run: npm i -g n && n lts - run: npm i -g n && n lts
- run: npm i - run: npm i
- run: wget https://dl.min.io/client/mc/release/linux-arm64/mc -O /tmp/mc - run: wget https://dl.min.io/client/mc/release/linux-arm64/mc -O /tmp/mc

View File

@ -4,6 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/node_modules/@fontsource-variable/jetbrains-mono/index.css"> <link rel="stylesheet" href="/node_modules/@fontsource-variable/jetbrains-mono/index.css">
<link rel="stylesheet" href="/node_modules/normalize.css/normalize.css">
<title>THE PTOOLS - Better than your MOM</title> <title>THE PTOOLS - Better than your MOM</title>
</head> </head>
<body> <body>
@ -16,12 +17,6 @@
<div id="r"><p><button onclick="btn('urie')"><<<</button> urie (cmp: <input id="uriecmp" style="width: 20px;" type="checkbox">)</p><textarea id="urie"></textarea></div> <div id="r"><p><button onclick="btn('urie')"><<<</button> urie (cmp: <input id="uriecmp" style="width: 20px;" type="checkbox">)</p><textarea id="urie"></textarea></div>
<div id="r"><p><button onclick="btn('jsonbtf')"><<<</button> jsonbtf (sp: <input id="jsonbtfsp" style="width: 20px;" value="4">)</p><textarea id="jsonbtf"></textarea></div> <div id="r"><p><button onclick="btn('jsonbtf')"><<<</button> jsonbtf (sp: <input id="jsonbtfsp" style="width: 20px;" value="4">)</p><textarea id="jsonbtf"></textarea></div>
<div id="r"><p><button onclick="btn('jsonsmp')"><<<</button> jsonsmp</p><textarea id="jsonsmp"></textarea></div> <div id="r"><p><button onclick="btn('jsonsmp')"><<<</button> jsonsmp</p><textarea id="jsonsmp"></textarea></div>
<div id="r"><textarea id=""></textarea></div>
<div id="r"><textarea id=""></textarea></div>
<div id="r"><textarea id=""></textarea></div>
<div id="r"><textarea id=""></textarea></div>
<div id="r"><textarea id=""></textarea></div>
<div id="r"><h1>THE PTOOLS!!!!!!!!!</h1></div>
</div> </div>
</div> </div>
@ -38,9 +33,9 @@
#container { #container {
display: flex; display: flex;
background-color: #212121;
color: #fafafa; color: #fafafa;
font-family: Arial, Helvetica, sans-serif; background-color: #212121;
font-family: 'JetBrains Mono Variable', monospace;
} }
#container > * { #container > * {
@ -52,6 +47,8 @@
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
gap: 10px; gap: 10px;
padding: 10px; padding: 10px;
max-height: 100%;
overflow-x: scroll;
} }
#q > * { #q > * {
@ -60,6 +57,7 @@
#r { #r {
display: flex; display: flex;
min-height: 200px;
flex-direction: column; flex-direction: column;
background-color: #1e1e1e; background-color: #1e1e1e;
border-radius: 4px; border-radius: 4px;
@ -72,11 +70,32 @@
resize: none; resize: none;
background-color: transparent; background-color: transparent;
color: #fafafa; color: #fafafa;
padding: 10px;
} }
#r > textarea:focus { #r > textarea:focus {
outline: none; outline: none;
} }
#r > p {
padding: 10px;
background-color: #323232;
border-radius: 4px;
}
#r button {
border: none;
padding: 6px 10px;
border-radius: 4px;
cursor: pointer;
background-color: #1683ff;
color: white;
margin-right: 6px;
}
#r button:hover {
background-color: #1c74da;
}
</style> </style>
<script src="/node_modules/monaco-editor/min/vs/loader.js"></script> <script src="/node_modules/monaco-editor/min/vs/loader.js"></script>
@ -86,14 +105,15 @@
require(['vs/editor/editor.main'], function () { require(['vs/editor/editor.main'], function () {
var editor = monaco.editor.create(document.getElementById('main'), { var editor = monaco.editor.create(document.getElementById('main'), {
value: '', value: '',
language: 'javascript', language: 'json',
automaticLayout: true, automaticLayout: true,
minimap: { enabled: false }, minimap: { enabled: false },
fontSize: 16, fontSize: 16,
theme: "vs-dark", theme: "vs-dark",
scrollBeyondLastLine: false, scrollBeyondLastLine: false,
fontFamily: 'JetBrains Mono Variable', fontFamily: 'JetBrains Mono Variable',
fontLigatures: true fontLigatures: true,
wordWrap: true
}); });
function render () { function render () {

8733
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,7 @@
{ {
"dependencies": { "dependencies": {
"@fontsource-variable/jetbrains-mono": "^5.1.1", "@fontsource-variable/jetbrains-mono": "^5.1.1",
"monaco-editor": "^0.52.0" "monaco-editor": "^0.52.0",
"normalize.css": "^8.0.1"
} }
} }