Skip to content

Commit 5a68866

Browse files
committed
Initial commit.
Actually I just wanted fresh start.
0 parents  commit 5a68866

File tree

10 files changed

+178
-0
lines changed

10 files changed

+178
-0
lines changed

.prettierrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"bracketSpacing": true
5+
}

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"editor.formatOnSave": true
3+
}

404.html

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
permalink: /404.html
3+
---
4+
5+
<!DOCTYPE HTML>
6+
<html>
7+
8+
<head>
9+
<title>404</title>
10+
</head>
11+
12+
<body style="font-family: Helvetica, sans-serif;">
13+
<div id="content">
14+
<div class="view">
15+
<h3>404 | Sayfa Bulunamadı</h3>
16+
<p>Sanırım yanlış bir şey yaşandı.</p>
17+
<br />
18+
<p>Lütfen otomatik olarak bir seviye daha yükseğe yönlendirilmek için biraz bekleyin...</p>
19+
<br />
20+
<p>(beklemeyi sevmiyorsan <a href="../">buraya tıklayabilirsin</a>)</p>
21+
22+
<script>
23+
setTimeout(function() {
24+
window.location = window.location.toString().replace(/\/+$/, '') + '/..'
25+
}, 4000)
26+
</script>
27+
</body>
28+
29+
</html>

CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
davet.js.org

Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
source 'https://rubygems.org'
2+
gem 'github-pages', group: :jekyll_plugins

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Ege
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
```
2+
idk why.
3+
```
4+
5+
<div align="center">
6+
<sub>Built with ❤︎ & ☕ by
7+
<a href="https://github.com/egecue">Ege</a>
8+
</sub>
9+
</div>
10+
11+
---
12+
13+
[![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)
14+
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
15+
[![JS.ORG](https://img.shields.io/badge/js.org-+-FFE70B.svg?style=flat-square)](http://js.org)
16+
17+
### 🔗 [davet](https://davet.js.org), useless shortener/redirector for your invite link (of your Discord server) which you can access [here](https://davet.js.org).
18+
19+
i think you shouldn't use it, but if you still want to use it, check out [instructions](#add-your-own-server) below.
20+
21+
### 📚 add your own server
22+
23+
after forking this repo, you should add something like [this file](https://raw.githubusercontent.com/egecue/davet/master/_diversions/proje.md) to the [\_diversions](_diversions) folder, then make a pull request to get your server added.
24+
25+
```markdown
26+
---
27+
layout: divert
28+
name: iphrojekthi
29+
code: proje
30+
redir: https://discordapp.com/invite/zyezdjg
31+
description: Başarısız (sanırım) bir sunucu projesi fakat gelebilirsin.
32+
color: ff7f50
33+
---
34+
```

_config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
collections:
2+
diversions:
3+
output: true
4+
permalink: /:name

_layouts/divert.html

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta name="title" content="Davet :: {{ page.name }}" />
5+
<meta name="theme-color" content="#{{ page.color }}" />
6+
<meta name="description" content="{{ page.description }}" />
7+
<script>
8+
window.location.replace('{{ page.redir }}');
9+
</script>
10+
<noscript
11+
><meta http-equiv="refresh" content="0; url={{ page.redir }}"
12+
/></noscript>
13+
<link rel="canonical" href="{{ page.redir }}" />
14+
<title>Yönlendiriliyor...</title>
15+
</head>
16+
<body>
17+
<h1>davet</h1>
18+
<hr />
19+
Eğer yönlendirilmediyseniz,
20+
<a href="{{ page.redir }}">bu bağlantıya</a> tıklayınız.
21+
</body>
22+
</html>

index.html

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
---
3+
4+
<!DOCTYPE html>
5+
<html lang="en-US">
6+
<head>
7+
<meta charset="UTF-8" />
8+
9+
{% if page.redir_to %}
10+
<title>Redirecting...</title>
11+
<meta http-equiv="refresh" content="0; url={{ page.redir_to }}" />
12+
<link rel="canonical" href="{{ page.redir_to }}" />
13+
<script type="text/javascript">
14+
window.location.href = '{{ page.redir_to }}';
15+
</script>
16+
{% else %}
17+
<title>liste</title>
18+
19+
<style>
20+
* {
21+
font-family: Helvetica, sans-serif;
22+
}
23+
24+
a {
25+
color: black;
26+
}
27+
</style>
28+
{% endif %}
29+
</head>
30+
31+
<body>
32+
<h1>davet</h1>
33+
<hr />
34+
{% if page.redir_to %} Eğer yönlendirilmediyseniz,
35+
<a href="{{ page.redir_to }}">bu bağlantıya</a> tıklayınız. {% else %}
36+
<div style="width: 850px; margin-top: 15px;">
37+
<div id="link_wrapper">
38+
<p>kısa bağlantılar:</p>
39+
<ul id="links">
40+
{% for diversion in site.diversions %}
41+
<li>
42+
<a href="./{{ diversion.code }}">{{ diversion.name }}</a
43+
>: {{ diversion.description }} &rarr;
44+
<input
45+
type="text"
46+
style="width: 300px;"
47+
value="{{ diversion.redir }}"
48+
readonly
49+
/>
50+
</li>
51+
{% endfor %}
52+
</ul>
53+
</div>
54+
</div>
55+
{% endif %}
56+
</body>
57+
</html>

0 commit comments

Comments
 (0)