mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-02 07:09:31 +00:00
Compare commits
68 commits
1c11d77bce
...
d7f9f3eade
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d7f9f3eade | ||
|
|
17e7deee16 | ||
|
|
626f41427a | ||
|
|
959d4c1eb2 | ||
|
|
d44ea0d566 | ||
|
|
7b55ae482e | ||
|
|
450fe6ab9b | ||
|
|
34c8b7bd80 | ||
|
|
bebfd40f27 | ||
|
|
8692119e6a | ||
|
|
6fb11ff6fc | ||
|
|
e66e213e83 | ||
|
|
8f21763a73 | ||
|
|
49a7804d10 | ||
|
|
6f25f4e78b | ||
|
|
3ad21c8f92 | ||
|
|
aae002e4d9 | ||
|
|
53966a376f | ||
|
|
1f72b6d2cf | ||
|
|
f39b9271a2 | ||
|
|
68862ca59c | ||
|
|
5e72f79ded | ||
|
|
97722cb8ec | ||
|
|
b608f12edc | ||
|
|
4624f787a1 | ||
|
|
8af3c2db16 | ||
|
|
558a6de6d8 | ||
|
|
406f4492fd | ||
|
|
0f2e843fe3 | ||
|
|
c2abc8cc22 | ||
|
|
0822d457f5 | ||
|
|
66d3dba986 | ||
|
|
bcfd75a3ce | ||
|
|
56da7da9af | ||
|
|
c2543d0c11 | ||
|
|
6cd9eb3eb6 | ||
|
|
98136a380b | ||
|
|
1d0662921b | ||
|
|
c9b2b8b29f | ||
|
|
31fa66b561 | ||
|
|
2816e95f13 | ||
|
|
9f8efb8b7c | ||
|
|
cd637649ac | ||
|
|
863073a772 | ||
|
|
d8b7e978c2 | ||
|
|
5e3db518ff | ||
|
|
2fe48380ef | ||
|
|
5556b4bb67 | ||
|
|
1d9d90cd40 | ||
|
|
f5a3742ae2 | ||
|
|
21f16fded8 | ||
|
|
fd6730e244 | ||
|
|
5890cdda02 | ||
|
|
15df46818a | ||
|
|
ed5a2712ad | ||
|
|
b83c08fdd0 | ||
|
|
c2a863da2b | ||
|
|
569a53babc | ||
|
|
dc879b6798 | ||
|
|
884c51a850 | ||
|
|
843f6b41f6 | ||
|
|
36f4fcaac9 | ||
|
|
ed3d42e84f | ||
|
|
a04f96e6ed | ||
|
|
213d320545 | ||
|
|
1ec3c0ed7c | ||
|
|
b0888aba7c | ||
|
|
79b49ab2ab |
11 changed files with 32 additions and 20 deletions
2
Makefile
2
Makefile
|
|
@ -27,7 +27,7 @@ commitinfo: global-functions.rsc
|
|||
|
||||
docs: $(HTML)
|
||||
|
||||
%.html: %.md general/style.css contrib/html.sh contrib/html.sh.d/head.html
|
||||
%.html: %.md general/style.css contrib/html.sh contrib/html.sh.d/head.html contrib/html.sh.d/foot.html
|
||||
contrib/html.sh $< > $@
|
||||
|
||||
rsc: $(GEN_RSC)
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.8 KiB |
|
|
@ -6,8 +6,5 @@ HTML := $(wildcard *.html)
|
|||
|
||||
all: docs
|
||||
|
||||
docs: $(HTML)
|
||||
sed -i \
|
||||
-e '/href=/s|\.md|\.html|' \
|
||||
-e '/blockquote/s|/\*! display \*/|display: none;|' \
|
||||
$(HTML)
|
||||
docs: static-html.sh $(HTML)
|
||||
./static-html.sh $(HTML)
|
||||
|
|
|
|||
|
|
@ -6,17 +6,14 @@ RELTO="$(dirname "${1}")"
|
|||
|
||||
sed \
|
||||
-e "s|__TITLE__|$(head -n1 "${1}")|" \
|
||||
-e "s|__STYLE__|$(realpath --relative-to="${RELTO}" general/style.css)|" \
|
||||
-e "s|__LOGO__|$(realpath --relative-to="${RELTO}" logo.png)|" \
|
||||
-e "s|__EWORM__|$(realpath --relative-to="${RELTO}" general/eworm-meadow.avif)|" \
|
||||
-e "s|__QR_CODE__|$(realpath --relative-to="${RELTO}" general/qr-code.png)|" \
|
||||
-e "s|__CLIPBOARD__|$(realpath --relative-to="${RELTO}" general/clipboard.js)|" \
|
||||
-e "s|__GENERAL__|$(realpath --relative-to="${RELTO}" general/)|" \
|
||||
-e "s|__ROOT__|$(realpath --relative-to="${RELTO}" ./)|" \
|
||||
< "${0}.d/head.html"
|
||||
|
||||
markdown -f toc,idanchor "${1}" | sed \
|
||||
-e 's/href="\([-_\./[:alnum:]]*\)\.md\(#[-[:alnum:]]*\)\?"/href="\1.html\2"/g' \
|
||||
-e '/<h[1234] /s| id="\(.*\)">| id="\L\1">|' \
|
||||
-e '/<h[1234] /s|-2c-||g' -e '/<h[1234] /s|--26-amp-3b-||g' \
|
||||
-e '/<h[1234] /s|-2[7cd]-||g' -e '/<h[1234] /s|--26-amp-3b-||g' \
|
||||
-e '/^<pre>/s|pre|pre onclick="CopyToClipboard(this)"|g' \
|
||||
-e '/The above link may be broken on code hosting sites/s|blockquote|blockquote style="display: none;"|'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
<!DOCTYPE html><html lang="en">
|
||||
<head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<title>RouterOS Scripts :: __TITLE__</title>
|
||||
<link rel="stylesheet" type="text/css" href="__STYLE__">
|
||||
<link rel="icon" type="image/png" href="__LOGO__">
|
||||
<script type="text/javascript" src="__CLIPBOARD__"></script>
|
||||
<link rel="stylesheet" type="text/css" href="__GENERAL__/style.css">
|
||||
<link rel="icon" type="image/png" href="__ROOT__/logo.png">
|
||||
<script type="text/javascript" src="__GENERAL__/clipboard.js"></script>
|
||||
</head><body>
|
||||
|
||||
<table><tr>
|
||||
<td><img src="__EWORM__" alt="eworm on meadow" /></td>
|
||||
<td><img src="__QR_CODE__" alt="QR code: rsc.eworm.de" /></td>
|
||||
<td><img src="__GENERAL__/eworm-meadow.avif" alt="eworm on meadow" /></td>
|
||||
<td><img src="__GENERAL__/qr-code.png" alt="QR code: rsc.eworm.de" /></td>
|
||||
<td class="head"><span class="top">RouterOS Scripts</span><br />
|
||||
<span class="bottom">a collection of scripts for MikroTik RouterOS</span></td>
|
||||
</tr></table>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
<p><a href="../README.md">⬅️ Go back to main README</a></p>
|
||||
|
||||
<blockquote style="/*! display */"><p>💡️ <strong>Hint</strong>: This site or links
|
||||
<blockquote style="/* display */"><p>💡️ <strong>Hint</strong>: This site or links
|
||||
on it may be broken on code hosting sites. Use
|
||||
<a href="https://rsc.eworm.de/main/contrib/logo-color.html">Logo Color Changer</a>
|
||||
instead.</p></blockquote>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
<p><a href="../README.md">⬅️ Go back to main README</a></p>
|
||||
|
||||
<blockquote style="/*! display */"><p>💡️ <strong>Hint</strong>: This site or links
|
||||
<blockquote style="/* display */"><p>💡️ <strong>Hint</strong>: This site or links
|
||||
on it may be broken on code hosting sites. Use
|
||||
<a href="https://rsc.eworm.de/main/contrib/notification.html">Notification Generator</a>
|
||||
instead.</p></blockquote>
|
||||
|
|
|
|||
8
contrib/static-html.sh
Executable file
8
contrib/static-html.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
sed -i \
|
||||
-e '/href=/s|\.md|\.html|' \
|
||||
-e '/blockquote/s|/\* display \*/|display: none;|' \
|
||||
"${@}"
|
||||
|
|
@ -1,4 +1,8 @@
|
|||
/* copy code to clipboard */
|
||||
function CopyToClipboard(pre) {
|
||||
pre.style.filter = 'invert(1)';
|
||||
navigator.clipboard.writeText(pre.firstElementChild.innerHTML);
|
||||
setTimeout(function() {
|
||||
pre.style.filter = 'invert(0)';
|
||||
}, 100);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,6 +69,12 @@ pre code {
|
|||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
pre::before {
|
||||
content: "📋 Copy!";
|
||||
float: right;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 3px;
|
||||
}
|
||||
span.link {
|
||||
color: #863600;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@
|
|||
}
|
||||
|
||||
:if ($AllDone = true && $QueueLen = [ :len $EmailQueue ]) do={
|
||||
/system/scheduler/remove $Scheduler;
|
||||
/system/scheduler/remove [ find where name="_FlushEmailQueue" ];
|
||||
:set EmailQueue;
|
||||
:return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue