Compare commits
No commits in common. "5cd0ba67e21f4e827bddf8c46890d1d31a72358f" and "f8d794d2e8c8be74b386710de8637e5e62d29eae" have entirely different histories.
5cd0ba67e2
...
f8d794d2e8
5 changed files with 33 additions and 58 deletions
|
@ -1,25 +0,0 @@
|
|||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
Building:
|
||||
runs-on: slave
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.ptr.moe
|
||||
username: ${{ gitea.repository_owner }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build & Push
|
||||
uses: docker/build-push-action@master
|
||||
with:
|
||||
push: true
|
||||
context: .
|
||||
platforms: linux/amd64
|
||||
tags: git.ptr.moe/baalajimaestro/obsolute-paste:latest
|
||||
|
13
.woodpecker/woodpecker.yaml
Normal file
13
.woodpecker/woodpecker.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
when:
|
||||
- event: push
|
||||
|
||||
steps:
|
||||
- name: Build & Push
|
||||
image: git.ptr.moe/baalajimaestro/build-runner
|
||||
commands:
|
||||
- /dockerd-entrypoint.sh dockerd 2&> /dev/null &
|
||||
- echo $DOCKER_PASSWORD | docker login git.ptr.moe --username ${CI_REPO_OWNER} --password-stdin
|
||||
- docker build . -t git.ptr.moe/baalajimaestro/obsolute-paste:latest
|
||||
- docker push git.ptr.moe/baalajimaestro/obsolute-paste:latest
|
||||
secrets: [ docker_password ]
|
||||
privileged: true
|
24
Cargo.lock
generated
24
Cargo.lock
generated
|
@ -153,9 +153,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "actix-web"
|
||||
version = "4.9.0"
|
||||
version = "4.8.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9180d76e5cc7ccbc4d60a506f2c727730b154010262df5b910eb17dbe4b8cb38"
|
||||
checksum = "1988c02af8d2b718c05bc4aeb6a66395b7cdf32858c2c71131e5637a8c05a9ff"
|
||||
dependencies = [
|
||||
"actix-codec",
|
||||
"actix-http",
|
||||
|
@ -175,7 +175,6 @@ dependencies = [
|
|||
"encoding_rs",
|
||||
"futures-core",
|
||||
"futures-util",
|
||||
"impl-more",
|
||||
"itoa",
|
||||
"language-tags",
|
||||
"log",
|
||||
|
@ -846,12 +845,6 @@ dependencies = [
|
|||
"winapi-util",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "impl-more"
|
||||
version = "0.1.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "206ca75c9c03ba3d4ace2460e57b189f39f43de612c2f85836e65c929701bb2d"
|
||||
|
||||
[[package]]
|
||||
name = "ipnet"
|
||||
version = "2.9.0"
|
||||
|
@ -1488,18 +1481,18 @@ checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b"
|
|||
|
||||
[[package]]
|
||||
name = "serde"
|
||||
version = "1.0.207"
|
||||
version = "1.0.204"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5665e14a49a4ea1b91029ba7d3bca9f299e1f7cfa194388ccc20f14743e784f2"
|
||||
checksum = "bc76f558e0cbb2a839d37354c575f1dc3fdc6546b5be373ba43d95f231bf7c12"
|
||||
dependencies = [
|
||||
"serde_derive",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_derive"
|
||||
version = "1.0.207"
|
||||
version = "1.0.204"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6aea2634c86b0e8ef2cfdc0c340baede54ec27b1e46febd7f80dffb2aa44a00e"
|
||||
checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
@ -1508,12 +1501,11 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "serde_json"
|
||||
version = "1.0.124"
|
||||
version = "1.0.120"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "66ad62847a56b3dba58cc891acd13884b9c61138d330c0d7b6181713d4fce38d"
|
||||
checksum = "4e0d21c9a8cae1235ad58a00c11cb40d4b1e5c784f1ef2c537876ed6ffd8b7c5"
|
||||
dependencies = [
|
||||
"itoa",
|
||||
"memchr",
|
||||
"ryu",
|
||||
"serde",
|
||||
]
|
||||
|
|
|
@ -4,11 +4,11 @@ version = "0.1.0"
|
|||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
actix-web = { version = "4.9.0", default-features = false, features = ["macros", "compress-brotli", "compress-gzip", "cookies"]}
|
||||
actix-web = { version = "4.8.0", default-features = false, features = ["macros", "compress-brotli", "compress-gzip", "cookies"]}
|
||||
actix-files = "0.6.6"
|
||||
tera = "1.20.0"
|
||||
serde = { version = "1.0.207", features = ["derive"] }
|
||||
serde = { version = "1.0.204", features = ["derive"] }
|
||||
reqwest = { version = "0.12.5", default-features = false, features = ["rustls-tls", "gzip"] }
|
||||
serde_json = "1.0.124"
|
||||
serde_json = "1.0.120"
|
||||
base64 = "0.22.1"
|
||||
mime = "0.3.17"
|
||||
|
|
|
@ -21,22 +21,17 @@
|
|||
</script>
|
||||
{% else %}
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
|
||||
<script type="module">
|
||||
|
||||
import { codeToHtml } from 'https://esm.sh/shiki@1.0.0'
|
||||
|
||||
document.addEventListener("DOMContentLoaded", async (event) => {
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", (event) => {
|
||||
const elem = document.getElementById("pastecontent");
|
||||
const result = hljs.highlightAuto(elem.textContent);
|
||||
const detectedLang = result.language || 'txt';
|
||||
|
||||
// Set the highlighted HTML
|
||||
elem.innerHTML = await codeToHtml(elem.textContent, {
|
||||
lang: detectedLang,
|
||||
theme: 'andromeeda'
|
||||
hljs.highlightElement(elem);
|
||||
Prism.highlightElement(elem);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-core.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||
<link href='https://fonts.googleapis.com/css?family=Fira Code' rel='stylesheet'>
|
||||
<pre class="w-10/12 text-gray-100 border border-solid border-emerald-200 rounded bg-zinc-800 p-2"><code id="pastecontent">{{paste_content}}</code></pre>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
|
@ -71,7 +66,7 @@
|
|||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u="https://stats.ptr.moe/";
|
||||
var u="https://counter.ptr.moe/";
|
||||
_paq.push(['setTrackerUrl', u+'86eff12f2496']);
|
||||
_paq.push(['setSiteId', '3']);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
|
|
Loading…
Reference in a new issue