Skip to content

Commit

Permalink
📡
Browse files Browse the repository at this point in the history
  • Loading branch information
mikker committed Apr 21, 2021
1 parent 7c002e3 commit 48568be
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 35 deletions.
4 changes: 4 additions & 0 deletions sprinkles.symlink/apm-ci.elastic.co.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ pre {
font-size: 12pt;
line-height: 1.25;
}

.JTable-cell-contents a[href $= '.log'] {
color: red !important;
}
56 changes: 28 additions & 28 deletions sprinkles.symlink/apm-ci.elastic.co.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
(function () {
let reran = false;
// (function () {
// let reran = false;

apply();
// apply();

function apply() {
const output = document.querySelector(".console-output");
// function apply() {
// const output = document.querySelector(".console-output");

if (output) {
const lines = output.innerHTML.split("\n");
// if (output) {
// const lines = output.innerHTML.split("\n");

let script = false;
const replaced = lines.map(line => {
if (line.match(/SCRIPT EXECUTION BEGIN/)) {
script = true;
} else if (line.match(/SCRIPT EXECUTION END/)) {
script = false;
}
// let script = false;
// const replaced = lines.map(line => {
// if (line.match(/SCRIPT EXECUTION BEGIN/)) {
// script = true;
// } else if (line.match(/SCRIPT EXECUTION END/)) {
// script = false;
// }

return script ? paint(line, "black") : paint(line, "lightgray");
});
// return script ? paint(line, "black") : paint(line, "lightgray");
// });

output.innerHTML = replaced.join("\n");
} else {
if (!reran) {
setTimeout(apply, 250);
reran = true;
}
}
}
// output.innerHTML = replaced.join("\n");
// } else {
// if (!reran) {
// setTimeout(apply, 250);
// reran = true;
// }
// }
// }

function paint(line, color) {
return `<span style='color: ${color}'>${line}</span>`;
}
})()
// function paint(line, color) {
// return `<span style='color: ${color}'>${line}</span>`;
// }
// })()
14 changes: 7 additions & 7 deletions vim/vimrc.symlink
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ call togglebg#map("<f5>")
" " }}}


set background=dark
set background=light
colo paramount

" GUI {{{
Expand Down Expand Up @@ -386,12 +386,12 @@ endif
" nnoremap <silent> gW <cmd>lua vim.lsp.buf.workspace_symbol()<CR>

" Auto-darkmode
" let output = system("is-this-dark-mode")
" if v:shell_error == 0
" set background=dark
" else
" set background=light
" endif
let output = system("is-this-dark-mode")
if v:shell_error == 0
set background=dark
else
set background=light
endif

let g:coc_global_extensions = ['coc-json', 'coc-tsserver', 'coc-css', 'coc-tailwindcss', 'coc-html', 'coc-elixir']

0 comments on commit 48568be

Please sign in to comment.