diff options
author | Dejavu Moe <[email protected]> | 2023-05-10 14:35:33 +0800 |
---|---|---|
committer | Dejavu Moe <[email protected]> | 2023-05-10 14:35:33 +0800 |
commit | 95449764bb5a3ac5d1db33c368c4685d0a9743ee (patch) | |
tree | 500a1c28ba6e398bf8bd2b9f30fc629df9a773d2 | |
download | xvo.es-95449764bb5a3ac5d1db33c368c4685d0a9743ee.tar.gz xvo.es-95449764bb5a3ac5d1db33c368c4685d0a9743ee.zip |
init commit
-rw-r--r-- | 404.html | 46 | ||||
-rw-r--r-- | LICENSE | 21 | ||||
-rw-r--r-- | README.md | 29 | ||||
-rw-r--r-- | _redirects | 5 | ||||
-rw-r--r-- | index.html | 56 | ||||
-rw-r--r-- | lists.html | 57 | ||||
-rw-r--r-- | vercel.json | 29 |
7 files changed, 243 insertions, 0 deletions
diff --git a/404.html b/404.html new file mode 100644 index 0000000..8856c6f --- /dev/null +++ b/404.html @@ -0,0 +1,46 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="viewport" content="width=device-width,initial-scale=1" /> + <meta name="description" content="The URL you requested does not exist." /> + <title>404</title> + <style> + @media (max-width: 720px) { + pre code { + display: block; + max-width: 100%; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + padding: 0 5px 5px 0; + word-wrap: break-word; + white-space: pre-wrap; + } + } + body { + font-family: monospace; + max-width: 80ch; + } + footer { + white-space: pre; + } + a:visited { + color: blue; + } + header a { + text-decoration: none; + } + </style> + </head> + <body> + <header>404 ERROR!</header> + <pre><code>Let's back to <a href="/">Home</a> / <a href="/lists.html">Lists</a> + - the URL you requested does not exist. + - so we can't find the URL. + - did you enter a wrong link? + - or you can contact the administrator.</code></pre> + <footer>Powered by <a href="https://github.com/MoeOffice/xvo.es">xvo.es</a>.</footer> + </body> +</html> @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 MoeOffice + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.
\ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..4234ff0 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +## xvo.es + +**A simple, minimal and safe URL Shortener.** + +1. Minimal and Simple + + *keep fast and stable.* + + 2. Extremely Safe + + *enjoy yourself, no worries about hacking.* + + 3. Easy Deploy + + *selfhosted on Cloudflare pages or Vercel...* + + 4. All of Yours + + *data of URL redirect in single file.* + +**How to use:** https://www.dejavu.moe/posts/the-minimal-and-simple-url-shortener/ + +1. Fork this repo. + +2. Edit the `_redirects` or `vercel.json` files. + +3. Deploy it with Cloudflare Pages or Vercel. + +4. Enjoy!
\ No newline at end of file diff --git a/_redirects b/_redirects new file mode 100644 index 0000000..bf9c852 --- /dev/null +++ b/_redirects @@ -0,0 +1,5 @@ +/blog https://www.dejavu.moe 302 +/pgp https://pgp.dejavu.moe 302 +/github https://github.com/MoeOffice/xvo.es 302 +/telegram https://t.me/dejavuBlog 302 +/group https://t.me/dejavuGroup 302
\ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..4193f64 --- /dev/null +++ b/index.html @@ -0,0 +1,56 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="viewport" content="width=device-width,initial-scale=1" /> + <meta + name="description" + content="A Simple, Minimal and Safe URL Shortener." + /> + <title>xvo.es</title> + <style> + @media (max-width: 720px) { + pre code { + display: block; + max-width: 100%; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + padding: 0 5px 5px 0; + word-wrap: break-word; + white-space: pre-wrap; + } + } + body { + font-family: monospace; + max-width: 80ch; + } + footer { + white-space: pre; + } + a:visited { + color: blue; + } + pre code a { + text-decoration: none; + } + </style> + </head> + <body> + <header>A Simple, Minimal and Safe URL Shortener.</header> + <pre><code>XVO.ES / <a href="/lists.html">Lists</a> + 1. Minimal and Simple + keep fast and stable. + + 2. Extremely Safe + enjoy yourself, no worries about hacking. + + 3. Easy Deploy + selfhosted on Cloudflare pages or Vercel... + + 4. All of Yours + data of URL redirect in single file.</code></pre> + <footer>Powered by <a href="https://github.com/MoeOffice/xvo.es">xvo.es</a>.</footer> + </body> +</html> diff --git a/lists.html b/lists.html new file mode 100644 index 0000000..091e4ce --- /dev/null +++ b/lists.html @@ -0,0 +1,57 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="viewport" content="width=device-width,initial-scale=1" /> + <meta + name="description" + content="A Simple, Minimal and Safe URL Shortener." + /> + <title>xvo.es</title> + <style> + @media (max-width: 720px) { + pre code { + display: block; + max-width: 100%; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + padding: 0 5px 5px 0; + word-wrap: break-word; + white-space: pre-wrap; + } + } + body { + font-family: monospace; + max-width: 80ch; + } + footer { + white-space: pre; + } + a:visited { + color: blue; + } + pre code a { + text-decoration: none; + } + </style> + </head> + <body> + <header>A Simple, Minimal and Safe URL Shortener.</header> + <pre><code>URL lists:<a href="/blog"> /blog </a>|<a href="/pgp"> /pgp </a>|<a href="/github"> /github </a>|<a href="/telegram"> /telegram </a>|<a href="/group"> /group </a></code></pre> + <pre><code>XVO.ES / <a href="/index.html">Home</a> + 1. Minimal and Simple + keep fast and stable. + + 2. Extremely Safe + enjoy yourself, no worries about hacking. + + 3. Easy Deploy + selfhosted on Cloudflare pages or Vercel... + + 4. All of Yours + data of URL redirect in single file.</code></pre> + <footer>Powered by <a href="https://github.com/MoeOffice/xvo.es">xvo.es</a>.</footer> + </body> +</html> diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..a2cd5f8 --- /dev/null +++ b/vercel.json @@ -0,0 +1,29 @@ +{ + "redirects": [ + { + "source": "/blog", + "destination": "https://www.dejavu.moe", + "permanent": false + }, + { + "source": "/pgp", + "destination": "https://pgp.dejavu.moe", + "permanent": false + }, + { + "source": "/github", + "destination": "https://github.com/MoeOffice/xvo.es", + "permanent": false + }, + { + "source": "/telegram", + "destination": "https://t.me/dejavuBlog", + "permanent": false + }, + { + "source": "/group", + "destination": "https://t.me/dejavuGroup", + "permanent": false + } + ] +}
\ No newline at end of file |