chore: squashed some commits, which are not for public viewing
fix: fixed ImageSection being broken on mobile feat: added proper imprint feat: added name to privacy-policy feat: bump version fix: fixed footer not rendering correct on some mobile devices chore: bump version feat: imported html from Config repo Updated packages Migration from astro to solid-start Add database and auth Add discord rest testing Database schema rework API meeting progress Fix styles
This commit is contained in:
parent
eb3acd206c
commit
2e529cede8
50 changed files with 9903 additions and 5045 deletions
8
.eslintrc.json
Normal file
8
.eslintrc.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"env": {
|
||||
"node": true
|
||||
},
|
||||
"plugins": ["solid"],
|
||||
"extends": ["eslint:recommended", "plugin:solid/typescript"]
|
||||
}
|
43
.gitignore
vendored
43
.gitignore
vendored
|
@ -1,28 +1,29 @@
|
|||
# build output
|
||||
dist/
|
||||
src/drizzle/migrations
|
||||
|
||||
# generated types
|
||||
.astro/
|
||||
dist
|
||||
.vinxi
|
||||
.output
|
||||
.vercel
|
||||
.netlify
|
||||
netlify
|
||||
|
||||
# Environment
|
||||
.env
|
||||
.env*.local
|
||||
|
||||
# dependencies
|
||||
node_modules/
|
||||
/node_modules
|
||||
|
||||
# logs
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
# IDEs and editors
|
||||
/.idea
|
||||
.project
|
||||
.classpath
|
||||
*.launch
|
||||
.settings/
|
||||
|
||||
# environment variables
|
||||
.env
|
||||
.env.production
|
||||
# Temp
|
||||
gitignore
|
||||
|
||||
# macOS-specific files
|
||||
# System Files
|
||||
.DS_Store
|
||||
|
||||
/.idea/
|
||||
/.fleet/
|
||||
|
||||
/.next/
|
||||
|
||||
next-env.d.ts
|
||||
Thumbs.db
|
||||
|
|
3
.prettierrc.json
Normal file
3
.prettierrc.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"plugins": ["prettier-plugin-organize-imports"]
|
||||
}
|
64
README.md
64
README.md
|
@ -1,54 +1,30 @@
|
|||
# Astro Starter Kit: Basics
|
||||
# SolidStart
|
||||
|
||||
```sh
|
||||
npm create astro@latest -- --template basics
|
||||
Everything you need to build a Solid project, powered by [`solid-start`](https://start.solidjs.com);
|
||||
|
||||
## Creating a project
|
||||
|
||||
```bash
|
||||
# create a new project in the current directory
|
||||
npm init solid@latest
|
||||
|
||||
# create a new project in my-app
|
||||
npm init solid@latest my-app
|
||||
```
|
||||
|
||||
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
|
||||
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
|
||||
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json)
|
||||
## Developing
|
||||
|
||||
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!
|
||||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
||||
|
||||
![just-the-basics](https://github.com/withastro/astro/assets/2244813/a0a5533c-a856-4198-8470-2d67b1d7c554)
|
||||
```bash
|
||||
npm run dev
|
||||
|
||||
## 🚀 Project Structure
|
||||
|
||||
Inside of your Astro project, you'll see the following folders and files:
|
||||
|
||||
```text
|
||||
/
|
||||
├── public/
|
||||
│ └── favicon.svg
|
||||
├── src/
|
||||
│ ├── components/
|
||||
│ │ └── Card.astro
|
||||
│ ├── layouts/
|
||||
│ │ └── Layout.astro
|
||||
│ └── pages/
|
||||
│ └── index.astro
|
||||
└── package.json
|
||||
# or start the server and open the app in a new browser tab
|
||||
npm run dev -- --open
|
||||
```
|
||||
|
||||
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
|
||||
## Building
|
||||
|
||||
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
|
||||
Solid apps are built with _adapters_, which optimise your project for deployment to different environments.
|
||||
|
||||
Any static assets, like images, can be placed in the `public/` directory.
|
||||
|
||||
## 🧞 Commands
|
||||
|
||||
All commands are run from the root of the project, from a terminal:
|
||||
|
||||
| Command | Action |
|
||||
| :------------------------ | :----------------------------------------------- |
|
||||
| `npm install` | Installs dependencies |
|
||||
| `npm run dev` | Starts local dev server at `localhost:4321` |
|
||||
| `npm run build` | Build your production site to `./dist/` |
|
||||
| `npm run preview` | Preview your build locally, before deploying |
|
||||
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
|
||||
| `npm run astro -- --help` | Get help using the Astro CLI |
|
||||
|
||||
## 👀 Want to learn more?
|
||||
|
||||
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
|
||||
By default, `npm run build` will generate a Node app that you can run with `npm start`. To use a different adapter, add it to the `devDependencies` in `package.json` and specify in your `vite.config.js`.
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
import { defineConfig } from "astro/config";
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({});
|
20
discord_client_testing.http
Normal file
20
discord_client_testing.http
Normal file
|
@ -0,0 +1,20 @@
|
|||
GET https://discord.com/api/users/@me
|
||||
Authorization: Bearer {{$dotenv DISCORD_ACCESS_TOKEN}}
|
||||
|
||||
###
|
||||
|
||||
GET https://discord.com/api/users/@me/guilds
|
||||
Authorization: Bearer {{$dotenv DISCORD_ACCESS_TOKEN}}
|
||||
|
||||
###
|
||||
|
||||
GET https://discord.com/api/users/@me/guilds/{{$dotenv DISCORD_GUILD_ID}}/member
|
||||
Authorization: Bearer {{$dotenv DISCORD_ACCESS_TOKEN}}
|
||||
|
||||
###
|
||||
|
||||
POST https://discord.com/api/oauth2/token/revoke
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Authorization: Basic {{$dotenv DISCORD_CLIENT_ID}}:{{$dotenv DISCORD_CLIENT_SECRET}}
|
||||
|
||||
token={{$dotenv DISCORD_ACCESS_TOKEN}}&token_type_hint=access_token
|
11
drizzle.config.ts
Normal file
11
drizzle.config.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import "dotenv/config"
|
||||
import type { Config } from "drizzle-kit"
|
||||
|
||||
export default {
|
||||
schema: "./src/drizzle/schema.ts",
|
||||
out: "./src/drizzle/migrations",
|
||||
driver: "pg",
|
||||
dbCredentials: {
|
||||
connectionString: process.env.DATABASE_URL ?? "",
|
||||
},
|
||||
} satisfies Config
|
|
@ -1,31 +0,0 @@
|
|||
worker_processes 1;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
server {
|
||||
listen 8080;
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
include /etc/nginx/mime.types;
|
||||
|
||||
gzip on;
|
||||
gzip_min_length 1000;
|
||||
gzip_proxied expired no-cache no-store private auth;
|
||||
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
||||
|
||||
error_page 404 /404.html;
|
||||
location = /404.html {
|
||||
root /usr/share/nginx/html;
|
||||
internal;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/index.html =404;
|
||||
}
|
||||
}
|
||||
}
|
45
package.json
45
package.json
|
@ -1,23 +1,42 @@
|
|||
{
|
||||
"name": "liljudd-website",
|
||||
"type": "module",
|
||||
"version": "1.0.0",
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"start": "astro dev",
|
||||
"build": "astro check && astro build",
|
||||
"preview": "astro preview",
|
||||
"astro": "astro"
|
||||
"dev": "vinxi dev",
|
||||
"build": "vinxi build",
|
||||
"start": "vinxi start",
|
||||
"lint": "eslint --fix \"**/*.{ts,tsx,js,jsx}\"",
|
||||
"push": "drizzle-kit push:pg",
|
||||
"typecheck": "tsc --noEmit --checkJs false --skipLibCheck"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/check": "^0.3.1",
|
||||
"astro": "^3.4.4",
|
||||
"sass": "^1.69.5",
|
||||
"typescript": "^5.2.2"
|
||||
"@auth/core": "^0.19.0",
|
||||
"@auth/drizzle-adapter": "^0.3.12",
|
||||
"@auth/solid-start": "0.1.2",
|
||||
"@solidjs/meta": "^0.29.3",
|
||||
"@solidjs/router": "^0.10.5",
|
||||
"@solidjs/start": "^0.4.2",
|
||||
"drizzle-orm": "^0.29.2",
|
||||
"drizzle-zod": "^0.5.1",
|
||||
"solid-js": "^1.8.7",
|
||||
"solid-start": "^0.3.10",
|
||||
"vinxi": "0.0.62"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^3.0.3",
|
||||
"prettier-plugin-astro": "^0.12.1",
|
||||
"prettier-plugin-organize-imports": "^3.2.3"
|
||||
"@typescript-eslint/eslint-plugin": "^6.17.0",
|
||||
"dotenv": "^16.3.1",
|
||||
"drizzle-kit": "^0.20.9",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-solid": "^0.13.1",
|
||||
"pg": "^8.11.3",
|
||||
"postgres": "^3.4.3",
|
||||
"prettier": "^3.1.1",
|
||||
"prettier-plugin-organize-imports": "^3.2.4",
|
||||
"sass": "^1.69.6",
|
||||
"zod": "3.22.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
}
|
||||
|
|
12418
pnpm-lock.yaml
12418
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
@ -1,3 +0,0 @@
|
|||
module.exports = {
|
||||
plugins: ["prettier-plugin-organize-imports", "prettier-plugin-astro"],
|
||||
};
|
32
sample_conf.json
Normal file
32
sample_conf.json
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"data": {
|
||||
"guilds": [
|
||||
{
|
||||
"guildID": "some ID",
|
||||
"UTCOffset": 0,
|
||||
"features": {
|
||||
"time_planning": {
|
||||
"channelID": "some ID",
|
||||
"targetWeekday": 0,
|
||||
"targetHour": 0,
|
||||
"targetMinute": 0,
|
||||
"isAvailableRoleId": "some ID",
|
||||
"wantsToBeNotifieRoledId": "some ID"
|
||||
}
|
||||
},
|
||||
"matches": [
|
||||
{
|
||||
"channelID": "some ID",
|
||||
"matchType": "",
|
||||
"createrId": "some ID",
|
||||
"roleId": "some ID",
|
||||
"opponentName": "",
|
||||
"messsageId": "",
|
||||
"plannedFor": 1704314625000
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"accessToken": "some Token"
|
||||
}
|
44
src/app.tsx
44
src/app.tsx
|
@ -1,26 +1,30 @@
|
|||
---
|
||||
import Footer from "@components/Footer.astro";
|
||||
import NavBar from "@components/NavBar.astro";
|
||||
import "../styles/Layout.scss";
|
||||
import "../styles/GlobalLayout.css";
|
||||
---
|
||||
// @refresh reload
|
||||
import { Meta, MetaProvider, Title } from "@solidjs/meta";
|
||||
import { Router } from "@solidjs/router";
|
||||
import { FileRoutes } from "@solidjs/start";
|
||||
import { Suspense } from "solid-js";
|
||||
import Footer from "./components/Footer";
|
||||
import NavBar from "./components/NavBar";
|
||||
import "./styles/GlobalLayout.css";
|
||||
import "./styles/Layout.scss";
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta
|
||||
export default function App() {
|
||||
return (
|
||||
<Router
|
||||
root={(props) => (
|
||||
<MetaProvider>
|
||||
<Meta
|
||||
name="description"
|
||||
content="The Splatoon Discord bot with unique features."
|
||||
/>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>li'l Judd - Your competitive Splatoon assistant</title>
|
||||
</head>
|
||||
<body>
|
||||
<Title>li'l Judd - Your competitive Splatoon assistant</Title>
|
||||
<NavBar />
|
||||
<slot />
|
||||
<Suspense>{props.children}</Suspense>
|
||||
<Footer />
|
||||
</body>
|
||||
</html>
|
||||
</MetaProvider>
|
||||
)}
|
||||
>
|
||||
<FileRoutes />
|
||||
</Router>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
import '../styles/components/Footer.scss'
|
||||
---
|
||||
import "../styles/components/Footer.scss";
|
||||
|
||||
<footer>
|
||||
function Footer() {
|
||||
return (
|
||||
<footer>
|
||||
<div class="footerIcon">
|
||||
<img
|
||||
class="footerImage"
|
||||
|
@ -16,59 +16,117 @@ import '../styles/components/Footer.scss'
|
|||
<div>
|
||||
<h3>Navigation</h3>
|
||||
<div class="footerLinks">
|
||||
<a href="/" target="_self">Home</a>
|
||||
<a href="/features" target="_self">Features</a>
|
||||
<a href="/how-do-i" target="_self">How do I...?</a>
|
||||
<a href="/stack" target="_self">The Stack</a>
|
||||
<a href="/about" target="_self">About</a>
|
||||
<a href="/">Home</a>
|
||||
<a href="/features">Features</a>
|
||||
<a href="/how-do-i">How do I...?</a>
|
||||
<a href="/stack">The Stack</a>
|
||||
<a href="/about">About</a>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h3>The Software</h3>
|
||||
<div class="footerLinks">
|
||||
<a href="https://git.moonleay.net/DiscordBots/lilJudd" target="_blank"
|
||||
>The code of the bot <img src="https://static.moonleay.net/img/lilJuddWeb/logos/external.svg" alt="external link"/></a
|
||||
<a
|
||||
href="https://git.moonleay.net/DiscordBots/lilJudd"
|
||||
target="_blank"
|
||||
>
|
||||
The code of the bot{" "}
|
||||
<img
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/logos/external.svg"
|
||||
alt="external link"
|
||||
/>
|
||||
</a>
|
||||
<a
|
||||
href="https://git.moonleay.net/Websites/liljudd-website"
|
||||
target="_blank">The code of the website <img src="https://static.moonleay.net/img/lilJuddWeb/logos/external.svg" alt="external link"/></a
|
||||
target="_blank"
|
||||
>
|
||||
<a href="https://todo.moonleay.net/share/OmisuzgPDdsrCAXKjGrTfYzWwqNDNclOMGJWeMsi/auth?view=kanban" target="_blank">The todo list <img src="https://static.moonleay.net/img/lilJuddWeb/logos/external.svg" alt="external link"/></a>
|
||||
<a href="/acknowledgements" target="_self">Acknowledgements</a>
|
||||
The code of the website{" "}
|
||||
<img
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/logos/external.svg"
|
||||
alt="external link"
|
||||
/>
|
||||
</a>
|
||||
<a
|
||||
href="https://todo.moonleay.net/share/OmisuzgPDdsrCAXKjGrTfYzWwqNDNclOMGJWeMsi/auth?view=kanban"
|
||||
target="_blank"
|
||||
>
|
||||
The todo list{" "}
|
||||
<img
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/logos/external.svg"
|
||||
alt="external link"
|
||||
/>
|
||||
</a>
|
||||
<a href="/acknowledgements">Acknowledgements</a>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h3>More</h3>
|
||||
<div class="footerLinks">
|
||||
<a href="https://moonleay.net/" target="_self">My homepage <img src="https://static.moonleay.net/img/lilJuddWeb/logos/external.svg" alt="external link"/></a>
|
||||
<a href="https://moonleay.net/blog/" target="_blank">My blog <img src="https://static.moonleay.net/img/lilJuddWeb/logos/external.svg" alt="external link"/></a>
|
||||
<a href="/contact" target="_self">Contact me</a>
|
||||
<a href="https://status.moonleay.net/" target="_blank">Server Status <img src="https://static.moonleay.net/img/lilJuddWeb/logos/external.svg" alt="external link"/></a>
|
||||
<a href="https://discord.gg/HTZRktfH4A" target="_blank">Support Discord <img src="https://static.moonleay.net/img/lilJuddWeb/logos/external.svg" alt="external link"/></a>
|
||||
<a href="https://moonleay.net/">
|
||||
My homepage{" "}
|
||||
<img
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/logos/external.svg"
|
||||
alt="external link"
|
||||
/>
|
||||
</a>
|
||||
<a href="https://moonleay.net/blog/" target="_blank">
|
||||
My blog{" "}
|
||||
<img
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/logos/external.svg"
|
||||
alt="external link"
|
||||
/>
|
||||
</a>
|
||||
<a href="/contact">Contact me</a>
|
||||
<a href="https://status.moonleay.net/" target="_blank">
|
||||
Server Status{" "}
|
||||
<img
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/logos/external.svg"
|
||||
alt="external link"
|
||||
/>
|
||||
</a>
|
||||
<a href="https://discord.gg/HTZRktfH4A" target="_blank">
|
||||
Support Discord{" "}
|
||||
<img
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/logos/external.svg"
|
||||
alt="external link"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h3>Legal</h3>
|
||||
<div class="footerLinks">
|
||||
<a href="/imprint" target="_self">Imprint</a>
|
||||
<a href="/privacy-policy" target="_self">Privacy Policy</a>
|
||||
<a href="/terms-of-service" target="_self">Terms of Service</a>
|
||||
<a href="/imprint">Imprint</a>
|
||||
<a href="/privacy-policy">Privacy Policy</a>
|
||||
<a href="/terms-of-service">Terms of Service</a>
|
||||
<a
|
||||
href="https://git.moonleay.net/DiscordBots/lilJudd/src/branch/master/LICENSE"
|
||||
target="_blank">The license <img src="https://static.moonleay.net/img/lilJuddWeb/logos/external.svg" alt="external link"/></a
|
||||
target="_blank"
|
||||
>
|
||||
The license{" "}
|
||||
<img
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/logos/external.svg"
|
||||
alt="external link"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footerNotice">
|
||||
<p>
|
||||
This website is NOT affiliated with Nintendo or any other party. All
|
||||
product names, logos, and brands are property of their respective owners.
|
||||
product names, logos, and brands are property of their respective
|
||||
owners.
|
||||
</p>
|
||||
<p>
|
||||
li'l Judd © 2023 <a href="https://moonleay.net/" target="_blank"
|
||||
>moonleay</a
|
||||
>
|
||||
li'l Judd © 2022-2024{" "}
|
||||
<a href="https://moonleay.net/" target="_blank">
|
||||
moonleay
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
</footer>
|
||||
);
|
||||
}
|
||||
|
||||
export default Footer;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
import "../styles/components/ImageSection.scss";
|
||||
|
||||
interface Props {
|
||||
imgUrl: string;
|
||||
imgAlt: string;
|
||||
|
@ -7,15 +8,18 @@ interface Props {
|
|||
note: string;
|
||||
span?: boolean;
|
||||
}
|
||||
const { imgUrl, imgAlt, title, description, note, span = false } = Astro.props;
|
||||
import "../styles/components/ImageSection.scss";
|
||||
---
|
||||
|
||||
<section class:list={["ImageSection", { span }]}>
|
||||
<h1>{title}</h1>
|
||||
function ImageSection(props: Props) {
|
||||
return (
|
||||
<section classList={{ ImageSection: true, span: props.span ?? true }}>
|
||||
<h1>{props.title}</h1>
|
||||
<div class="imgDiv">
|
||||
<img src={imgUrl} alt={imgAlt} />
|
||||
<p>{description}</p>
|
||||
<img src={props.imgUrl} alt={props.imgAlt} />
|
||||
<p>{props.description}</p>
|
||||
</div>
|
||||
<p class="noteP">{note}</p>
|
||||
</section>
|
||||
<p class="noteP">{props.note}</p>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
export default ImageSection;
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
---
|
||||
import '../styles/components/NavBar.scss';
|
||||
---
|
||||
<nav>
|
||||
import "../styles/components/NavBar.scss";
|
||||
|
||||
function NavBar() {
|
||||
return (
|
||||
<nav>
|
||||
<ul>
|
||||
<li class="navElem">
|
||||
<a class="textBx" href="/" target="_self">
|
||||
<a class="textBx" href="/">
|
||||
<img
|
||||
id="logo"
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/logos/logox256.png"
|
||||
|
@ -14,22 +15,28 @@ import '../styles/components/NavBar.scss';
|
|||
</a>
|
||||
</li>
|
||||
<li class="navElem">
|
||||
<a href="/features" target="_self">Features</a>
|
||||
<a href="/features">Features</a>
|
||||
</li>
|
||||
<li class="navElem">
|
||||
<a href="/how-do-i" target="_self">How do I...?</a>
|
||||
<a href="/how-do-i">How do I...?</a>
|
||||
</li>
|
||||
<li class="navElem">
|
||||
<a href="/stack" target="_self">The Stack</a>
|
||||
<a href="/stack">The Stack</a>
|
||||
</li>
|
||||
<li class="navElem">
|
||||
<a href="/about" target="_self">About</a>
|
||||
<a href="/about">About</a>
|
||||
</li>
|
||||
<li class="navElem">
|
||||
<a
|
||||
href="https://discord.com/api/oauth2/authorize?client_id=1024410658973941862&permissions=18977581952080&scope=bot"
|
||||
target="_blank">Invite to your server</a
|
||||
target="_blank"
|
||||
>
|
||||
Invite to your server
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</nav>
|
||||
);
|
||||
}
|
||||
|
||||
export default NavBar;
|
||||
|
|
10
src/drizzle/index.ts
Normal file
10
src/drizzle/index.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { drizzle } from "drizzle-orm/postgres-js"
|
||||
import postgres from "postgres"
|
||||
import * as schema from "./schema"
|
||||
|
||||
const queryClient = postgres(process.env.DATABASE_URL ?? "")
|
||||
const db = drizzle(queryClient, {
|
||||
schema,
|
||||
})
|
||||
|
||||
export default db
|
139
src/drizzle/schema.ts
Normal file
139
src/drizzle/schema.ts
Normal file
|
@ -0,0 +1,139 @@
|
|||
import type { AdapterAccount } from "@auth/core/adapters";
|
||||
import { relations } from "drizzle-orm";
|
||||
import {
|
||||
integer,
|
||||
pgTable,
|
||||
primaryKey,
|
||||
serial,
|
||||
smallint,
|
||||
text,
|
||||
timestamp,
|
||||
varchar,
|
||||
} from "drizzle-orm/pg-core";
|
||||
|
||||
export const users = pgTable("user", {
|
||||
id: text("id").primaryKey(),
|
||||
name: text("name"),
|
||||
email: text("email").notNull(),
|
||||
emailVerified: timestamp("email_verified", { mode: "date" }),
|
||||
image: text("image"),
|
||||
createdAt: timestamp("created_at").defaultNow(),
|
||||
});
|
||||
|
||||
export const accounts = pgTable(
|
||||
"account",
|
||||
{
|
||||
userId: text("user_id")
|
||||
.notNull()
|
||||
.references(() => users.id, { onDelete: "cascade" }),
|
||||
type: text("type").$type<AdapterAccount["type"]>().notNull(),
|
||||
provider: text("provider").notNull(),
|
||||
providerAccountId: text("provider_account_id").notNull(),
|
||||
refresh_token: text("refresh_token"),
|
||||
access_token: text("access_token"),
|
||||
expires_at: integer("expires_at"),
|
||||
token_type: text("token_type"),
|
||||
scope: text("scope"),
|
||||
id_token: text("id_token"),
|
||||
session_state: text("session_state"),
|
||||
},
|
||||
(account) => ({
|
||||
compoundKey: primaryKey({
|
||||
columns: [account.provider, account.providerAccountId],
|
||||
}),
|
||||
}),
|
||||
);
|
||||
|
||||
export const sessions = pgTable("session", {
|
||||
sessionToken: text("session_token").primaryKey(),
|
||||
userId: text("user_id")
|
||||
.notNull()
|
||||
.references(() => users.id, { onDelete: "cascade" }),
|
||||
expires: timestamp("expires", { mode: "date" }).notNull(),
|
||||
});
|
||||
|
||||
export const verificationTokens = pgTable(
|
||||
"verification_token",
|
||||
{
|
||||
identifier: text("identifier").notNull(),
|
||||
token: text("token").notNull(),
|
||||
expires: timestamp("expires", { mode: "date" }).notNull(),
|
||||
},
|
||||
(vt) => ({
|
||||
compoundKey: primaryKey({ columns: [vt.identifier, vt.token] }),
|
||||
}),
|
||||
);
|
||||
|
||||
export const matchPlannings = pgTable("match_planning", {
|
||||
id: serial("id").primaryKey(),
|
||||
channelId: varchar("channel_id", { length: 19 }).notNull(),
|
||||
matchtype: varchar("matchtype", { length: 50 }).notNull(),
|
||||
createrId: varchar("creater_id", { length: 19 }).notNull(),
|
||||
roleId: varchar("role_id", { length: 19 }).notNull(),
|
||||
opponentName: varchar("opponent_name", { length: 100 }).notNull(),
|
||||
messageId: varchar("message_id", { length: 19 }).notNull(),
|
||||
plannedFor: timestamp("planned_for", { precision: 3 }).notNull(),
|
||||
guildId: varchar("guild_id", { length: 19 })
|
||||
.notNull()
|
||||
.references(() => guilds.id, { onDelete: "cascade" }),
|
||||
});
|
||||
|
||||
export const matchPlanningsRelations = relations(matchPlannings, ({ one }) => ({
|
||||
guild: one(guilds, {
|
||||
fields: [matchPlannings.guildId],
|
||||
references: [guilds.id],
|
||||
}),
|
||||
}));
|
||||
|
||||
export const guilds = pgTable("guild", {
|
||||
id: varchar("id", { length: 19 }).primaryKey(),
|
||||
});
|
||||
|
||||
export const guildsRelations = relations(guilds, ({ one, many }) => ({
|
||||
matches: many(matchPlannings),
|
||||
timePlanning: one(timePlannings, {
|
||||
fields: [guilds.id],
|
||||
references: [timePlannings.guildId],
|
||||
}),
|
||||
}));
|
||||
|
||||
export const timePlannings = pgTable("time_planning", {
|
||||
id: serial("id").primaryKey(),
|
||||
guildId: varchar("guild_id", { length: 19 })
|
||||
.references(() => guilds.id, {
|
||||
onDelete: "cascade",
|
||||
})
|
||||
.notNull()
|
||||
.unique(),
|
||||
channelId: varchar("channel_id", { length: 19 }).notNull(),
|
||||
targetWeekday: smallint("target_weekday").notNull(),
|
||||
targetHour: smallint("target_hour").notNull(),
|
||||
targetMinute: smallint("target_minute").notNull(),
|
||||
isAvailableRoleId: varchar("is_available_role_id", { length: 19 }),
|
||||
wantsToBeNotifieRoledId: varchar("wants_to_be_notified_role_id", {
|
||||
length: 19,
|
||||
}),
|
||||
});
|
||||
|
||||
export const timePlanningsRelations = relations(
|
||||
timePlannings,
|
||||
({ one, many }) => ({
|
||||
guild: one(tpMessages),
|
||||
messages: many(tpMessages),
|
||||
}),
|
||||
);
|
||||
|
||||
export const tpMessages = pgTable("tp_message", {
|
||||
messageId: varchar("message_id", { length: 19 }).primaryKey(),
|
||||
day: smallint("day").notNull(),
|
||||
planId: varchar("plan_id", { length: 19 })
|
||||
.notNull()
|
||||
.references(() => timePlannings.guildId, { onDelete: "cascade" }),
|
||||
});
|
||||
|
||||
export const tpMessagesRelations = relations(tpMessages, ({ one }) => ({
|
||||
timePlanning: one(timePlannings, {
|
||||
fields: [tpMessages.messageId],
|
||||
references: [timePlannings.channelId],
|
||||
}),
|
||||
}));
|
3
src/entry-client.tsx
Normal file
3
src/entry-client.tsx
Normal file
|
@ -0,0 +1,3 @@
|
|||
import { mount, StartClient } from "@solidjs/start/client";
|
||||
|
||||
mount(() => <StartClient />, document.getElementById("app"));
|
20
src/entry-server.tsx
Normal file
20
src/entry-server.tsx
Normal file
|
@ -0,0 +1,20 @@
|
|||
import { createHandler, StartServer } from "@solidjs/start/server";
|
||||
|
||||
export default createHandler(() => (
|
||||
<StartServer
|
||||
document={({ assets, children, scripts }) => (
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
{assets}
|
||||
</head>
|
||||
<body id="app">
|
||||
{children}
|
||||
{scripts}
|
||||
</body>
|
||||
</html>
|
||||
)}
|
||||
/>
|
||||
));
|
1
src/env.d.ts
vendored
1
src/env.d.ts
vendored
|
@ -1 +0,0 @@
|
|||
/// <reference types="astro/client" />
|
1
src/global.d.ts
vendored
Normal file
1
src/global.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/// <reference types="@solidjs/start/env" />
|
22
src/routes/[...404].tsx
Normal file
22
src/routes/[...404].tsx
Normal file
|
@ -0,0 +1,22 @@
|
|||
import { Title } from "@solidjs/meta";
|
||||
import { HttpStatusCode } from "@solidjs/start";
|
||||
import "../styles/pages/index.scss";
|
||||
|
||||
export default function NotFound() {
|
||||
return (
|
||||
<>
|
||||
<Title>Not Found</Title>
|
||||
<HttpStatusCode code={404} />
|
||||
<section class="section">
|
||||
<h1>404 - Whoops, ink spill!</h1>
|
||||
<h5>li'l Judd couldn't find this turf.</h5>
|
||||
<div>
|
||||
<p class="p1">
|
||||
Head back to <a href="/">base</a> and splat into action from there!
|
||||
🦑🕹️
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
</>
|
||||
);
|
||||
}
|
|
@ -1,67 +1,82 @@
|
|||
---
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import "../styles/pages/about.scss";
|
||||
---
|
||||
|
||||
<Layout>
|
||||
<h1>About</h1>
|
||||
function about() {
|
||||
return (
|
||||
<>
|
||||
<div class="aboutdiv">
|
||||
<h1>About</h1>
|
||||
<section>
|
||||
<h2>Why does this bot exist?</h2>
|
||||
<p>
|
||||
We had a person in our team, who sent <a
|
||||
We had a person in our team, who sent{" "}
|
||||
<a
|
||||
href="https://static.moonleay.net/img/lilJuddWeb/about/oldplanningmsg.png"
|
||||
target="_blank"
|
||||
>these planning messages</a
|
||||
> and I thought that this should be automated. Some time later the first
|
||||
version of li'l Judd was born. Today the bot has more features and keeps getting more of them! It is
|
||||
designed to actually improve the Splatoon experience and not be the
|
||||
10000th moderation and general utility bot with the same features as all
|
||||
bots.
|
||||
>
|
||||
these planning messages
|
||||
</a>{" "}
|
||||
and I thought that this should be automated. Some time later the
|
||||
first version of li'l Judd was born. Today the bot has more features
|
||||
and keeps getting more of them! It is designed to actually improve
|
||||
the Splatoon experience and not be the 10000th moderation and
|
||||
general utility bot with the same features as all bots.
|
||||
</p>
|
||||
</section>
|
||||
<section>
|
||||
<h2>Who is behind this?</h2>
|
||||
<p>
|
||||
The bot is currently being developed by <a
|
||||
href="/contact"
|
||||
target="_self">moonleay</a
|
||||
> (hey that's me!) with occasional help from his friends!
|
||||
The bot is currently being developed by{" "}
|
||||
<a href="/contact">moonleay</a> (hey that's me!) with
|
||||
occasional help from his friends!
|
||||
</p>
|
||||
</section>
|
||||
<section>
|
||||
<h2>How can I trust you?</h2>
|
||||
<p>
|
||||
The bot only requests permissions, which are needed for it to work. Additionally,
|
||||
if you want to check how the bot works under the hood, you can
|
||||
<a href="https://git.moonleay.net/DiscordBots/lilJudd">read the code</a>
|
||||
and if you still don't trust me, you can always host the bot yourself!
|
||||
A guide on how to do that can be found in the README of the git project.
|
||||
The bot only requests permissions, which are needed for it to work.
|
||||
Additionally, if you want to check how the bot works under the hood,
|
||||
you can
|
||||
<a href="https://git.moonleay.net/DiscordBots/lilJudd">
|
||||
read the code
|
||||
</a>
|
||||
and if you still don't trust me, you can always host the bot
|
||||
yourself! A guide on how to do that can be found in the README of
|
||||
the git project.
|
||||
</p>
|
||||
</section>
|
||||
<section>
|
||||
<h2>Where is my data stored?</h2>
|
||||
<p>
|
||||
Your data is stored on a VPS from Contabo in Germany. The bot used to be hosted on a server in my basement,
|
||||
but I moved it to a VPS, because my internet connection was not stable enough.
|
||||
Your data is stored on a VPS from Contabo in Germany. The bot used
|
||||
to be hosted on a server in my basement, but I moved it to a VPS,
|
||||
because my internet connection was not stable enough.
|
||||
</p>
|
||||
</section>
|
||||
<section>
|
||||
<h2>So whats in the future?</h2>
|
||||
<p>
|
||||
I plan on adding features, which are aimed to improve your and your teams
|
||||
competitive experience! You can check out my public todo list <a href="https://todo.moonleay.net/share/OmisuzgPDdsrCAXKjGrTfYzWwqNDNclOMGJWeMsi/auth?view=kanban" target="_blank">here</a>.
|
||||
I plan on adding features, which are aimed to improve your and your
|
||||
teams competitive experience! You can check out my public todo list{" "}
|
||||
<a
|
||||
href="https://todo.moonleay.net/share/OmisuzgPDdsrCAXKjGrTfYzWwqNDNclOMGJWeMsi/auth?view=kanban"
|
||||
target="_blank"
|
||||
>
|
||||
here
|
||||
</a>
|
||||
.
|
||||
</p>
|
||||
</section>
|
||||
<section>
|
||||
<h2>Hey, there is this really cool idea I have! Can you add it?</h2>
|
||||
<p>
|
||||
Just message me! I can't promise anything, but I am always open to new
|
||||
ideas and improvements! You can find ways to contact me <a
|
||||
href="/contact"
|
||||
target="_self">here</a
|
||||
>.
|
||||
Just message me! I can't promise anything, but I am always open to
|
||||
new ideas and improvements! You can find ways to contact me{" "}
|
||||
<a href="/contact">here</a>.
|
||||
</p>
|
||||
</section>
|
||||
</div>
|
||||
</Layout>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default about;
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
---
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import "../styles/pages/acknowledgements.scss";
|
||||
---
|
||||
|
||||
<Layout>
|
||||
<div class="wrapper">
|
||||
function acknowledgements() {
|
||||
return (
|
||||
<>
|
||||
<div class="acknowledgements">
|
||||
<h1>Acknowledgements</h1>
|
||||
<section>
|
||||
<table>
|
||||
|
@ -29,11 +28,15 @@ import "../styles/pages/acknowledgements.scss";
|
|||
<td>
|
||||
<a
|
||||
href="https://kotlinlang.org/docs/faq.html#is-kotlin-free"
|
||||
target="_blank">Apache license 2.0</a
|
||||
target="_blank"
|
||||
>
|
||||
Apache license 2.0
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://kotlinlang.org/" target="_blank">website</a>
|
||||
<a href="https://kotlinlang.org/" target="_blank">
|
||||
website
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -43,11 +46,15 @@ import "../styles/pages/acknowledgements.scss";
|
|||
<td>
|
||||
<a
|
||||
href="https://github.com/kordlib/kord/blob/main/LICENSE"
|
||||
target="_blank">MIT license</a
|
||||
target="_blank"
|
||||
>
|
||||
MIT license
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://kord.dev/" target="_blank">website</a>
|
||||
<a href="https://kord.dev/" target="_blank">
|
||||
website
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -57,13 +64,15 @@ import "../styles/pages/acknowledgements.scss";
|
|||
<td>
|
||||
<a
|
||||
href="https://github.com/Kord-Extensions/kord-extensions/blob/root/LICENSE"
|
||||
target="_blank">Mozilla Public License 2.0</a
|
||||
target="_blank"
|
||||
>
|
||||
Mozilla Public License 2.0
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://kordex.kotlindiscord.com/" target="_blank"
|
||||
>website</a
|
||||
>
|
||||
<a href="https://kordex.kotlindiscord.com/" target="_blank">
|
||||
website
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -71,12 +80,17 @@ import "../styles/pages/acknowledgements.scss";
|
|||
<p>PostgreSQL</p>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://www.postgresql.org/about/licence/" target="_blank"
|
||||
>PostgreSQL license</a
|
||||
<a
|
||||
href="https://www.postgresql.org/about/licence/"
|
||||
target="_blank"
|
||||
>
|
||||
PostgreSQL license
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://www.postgresql.org/" target="_blank">website</a>
|
||||
<a href="https://www.postgresql.org/" target="_blank">
|
||||
website
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -86,14 +100,18 @@ import "../styles/pages/acknowledgements.scss";
|
|||
<td>
|
||||
<a
|
||||
href="https://github.com/Kotlin/kotlinx.coroutines/blob/master/LICENSE.txt"
|
||||
target="_blank">Apache license 2.0</a
|
||||
target="_blank"
|
||||
>
|
||||
Apache license 2.0
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a
|
||||
href="https://github.com/Kotlin/kotlinx.coroutines"
|
||||
target="_blank">repo</a
|
||||
target="_blank"
|
||||
>
|
||||
repo
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -103,11 +121,15 @@ import "../styles/pages/acknowledgements.scss";
|
|||
<td>
|
||||
<a
|
||||
href="https://github.com/qos-ch/slf4j/blob/master/LICENSE.txt"
|
||||
target="_blank">MIT license</a
|
||||
target="_blank"
|
||||
>
|
||||
MIT license
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://www.slf4j.org/" target="_blank">website</a>
|
||||
<a href="https://www.slf4j.org/" target="_blank">
|
||||
website
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -115,14 +137,17 @@ import "../styles/pages/acknowledgements.scss";
|
|||
<p>Exposed</p>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://github.com/JetBrains/Exposed/blob/main/LICENSE.txt"
|
||||
>Apache license 2.0</a
|
||||
>
|
||||
<a href="https://github.com/JetBrains/Exposed/blob/main/LICENSE.txt">
|
||||
Apache license 2.0
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://github.com/JetBrains/Exposed" target="_blank"
|
||||
>repo</a
|
||||
<a
|
||||
href="https://github.com/JetBrains/Exposed"
|
||||
target="_blank"
|
||||
>
|
||||
repo
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -132,14 +157,18 @@ import "../styles/pages/acknowledgements.scss";
|
|||
<td>
|
||||
<a
|
||||
href="https://github.com/InsanusMokrassar/krontab/blob/master/LICENSE"
|
||||
target="_blank">Apache license 2.0</a
|
||||
target="_blank"
|
||||
>
|
||||
Apache license 2.0
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a
|
||||
href="https://github.com/InsanusMokrassar/krontab"
|
||||
target="_blank">repo</a
|
||||
target="_blank"
|
||||
>
|
||||
repo
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -150,17 +179,22 @@ import "../styles/pages/acknowledgements.scss";
|
|||
<a
|
||||
href="https://github.com/misenhower/splatoon3.ink/blob/main/license.md"
|
||||
target="_blank"
|
||||
>MIT License</a>
|
||||
>
|
||||
MIT License
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a
|
||||
href="https://splatoon3.ink/"
|
||||
target="_blank"
|
||||
>website</a>
|
||||
<a href="https://splatoon3.ink/" target="_blank">
|
||||
website
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
</Layout>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default acknowledgements;
|
||||
|
|
4
src/routes/api/auth/[...solidauth].ts
Normal file
4
src/routes/api/auth/[...solidauth].ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
import { SolidAuth } from "@auth/solid-start"
|
||||
import { authOptions } from "~/server/auth"
|
||||
|
||||
export const { GET, POST } = SolidAuth(authOptions)
|
85
src/routes/config.tsx
Normal file
85
src/routes/config.tsx
Normal file
|
@ -0,0 +1,85 @@
|
|||
function config() {
|
||||
return (
|
||||
<>
|
||||
<h1>Configure li'l Judd</h1>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<img src="" alt="Server pfp" />
|
||||
<label>
|
||||
<select>
|
||||
<option value="">--Please choose a server--</option>
|
||||
<option value="server id">Server 1</option>
|
||||
<option value="server id">Server 2</option>
|
||||
<option value="server id">Server 3</option>
|
||||
<option value="server id">Server 4</option>
|
||||
<option value="server id">Server 5</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<article>
|
||||
<h2>Timezone</h2>
|
||||
<p>Set the timezone for your server.</p>
|
||||
<label>
|
||||
<select>
|
||||
<option value="-11">UTC-11:00</option>
|
||||
<option value="-10">UTC-10:00</option>
|
||||
<option value="-9">UTC-09:00</option>
|
||||
<option value="-8">UTC-08:00</option>
|
||||
<option value="-7">UTC-07:00</option>
|
||||
<option value="-6">UTC-06:00</option>
|
||||
<option value="-5">UTC-05:00</option>
|
||||
<option value="-4">UTC-04:00</option>
|
||||
<option value="-3">UTC-03:00</option>
|
||||
<option value="-2">UTC-02:00</option>
|
||||
<option value="-1">UTC-01:00</option>
|
||||
<option value="0">UTC+00:00</option>
|
||||
<option value="1">UTC+01:00</option>
|
||||
<option value="2">UTC+02:00</option>
|
||||
<option value="3">UTC+03:00</option>
|
||||
<option value="4">UTC+04:00</option>
|
||||
<option value="5">UTC+05:00</option>
|
||||
<option value="6">UTC+06:00</option>
|
||||
<option value="7">UTC+07:00</option>
|
||||
<option value="8">UTC+08:00</option>
|
||||
<option value="9">UTC+09:00</option>
|
||||
<option value="10">UTC+10:00</option>
|
||||
<option value="11">UTC+11:00</option>
|
||||
<option value="12">UTC+12:00</option>
|
||||
</select>
|
||||
</label>
|
||||
</article>
|
||||
<section>
|
||||
<h2>Features</h2>
|
||||
<p>Configure the features of the bot</p>
|
||||
<article>
|
||||
<h3>Time Planning</h3>
|
||||
<input type="checkbox" id="timeplanning" />
|
||||
<p>Make the bot send a planner into a channel</p>
|
||||
<p>Select </p>
|
||||
<label>
|
||||
<select>
|
||||
<option value="id">Channel 1</option>
|
||||
<option value="id">Channel 2</option>
|
||||
<option value="id">Channel 3</option>
|
||||
<option value="id">Channel 4</option>
|
||||
</select>
|
||||
</label>
|
||||
</article>
|
||||
<article>
|
||||
<h3>Planning Roles</h3>
|
||||
<input type="checkbox" id="planningroles" />
|
||||
<p>Add roles to the "Time Planning" feature.</p>
|
||||
<p>
|
||||
This feature is bound to the "Time Planning" feature. It will be
|
||||
activated in the same channel.
|
||||
</p>
|
||||
</article>
|
||||
</section>
|
||||
<button>Apply</button>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default config;
|
|
@ -1,24 +1,39 @@
|
|||
---
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import "../styles/pages/contact.scss";
|
||||
---
|
||||
|
||||
<Layout>
|
||||
<div class="wrapper">
|
||||
function contact() {
|
||||
return (
|
||||
<>
|
||||
<div class="contact">
|
||||
<h1>Contact</h1>
|
||||
<section class="contact">
|
||||
<a href="mailto:contact@moonleay.net" target="_blank">
|
||||
<img src="https://static.moonleay.net/img/lilJuddWeb/logos/email.svg" alt="Email"/>
|
||||
<img
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/logos/email.svg"
|
||||
alt="Email"
|
||||
/>
|
||||
contact@moonleay.net
|
||||
</a>
|
||||
<a href="https://discord.com/users/372703841151614976" target="_blank">
|
||||
<img src="https://static.moonleay.net/img/lilJuddWeb/logos/discord.svg" alt="Discord"/>
|
||||
<a
|
||||
href="https://discord.com/users/372703841151614976"
|
||||
target="_blank"
|
||||
>
|
||||
<img
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/logos/discord.svg"
|
||||
alt="Discord"
|
||||
/>
|
||||
@moonleay
|
||||
</a>
|
||||
<a href="https://discord.gg/HTZRktfH4A" target="_blank">
|
||||
<img src="https://static.moonleay.net/img/lilJuddWeb/logos/discord.svg" alt="discord"/>
|
||||
/HTZRktfH4A
|
||||
<img
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/logos/discord.svg"
|
||||
alt="discord"
|
||||
/>
|
||||
li'l Judd's home base
|
||||
</a>
|
||||
</section>
|
||||
</div>
|
||||
</Layout>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default contact;
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
---
|
||||
import ImageSection from "@components/ImageSection.astro";
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import ImageSection from "~/components/ImageSection";
|
||||
import "../styles/pages/features.scss";
|
||||
---
|
||||
|
||||
<Layout>
|
||||
<div class="container">
|
||||
function features() {
|
||||
return (
|
||||
<>
|
||||
<div class="features">
|
||||
<h1 class="title">Features</h1>
|
||||
<div class="gridlayout">
|
||||
<ImageSection
|
||||
|
@ -46,4 +45,8 @@ import "../styles/pages/features.scss";
|
|||
/>
|
||||
</div>
|
||||
</div>
|
||||
</Layout>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default features;
|
||||
|
|
|
@ -1,40 +1,61 @@
|
|||
---
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import "../styles/pages/how-do-i.scss";
|
||||
---
|
||||
|
||||
<Layout>
|
||||
<h1 class="title">How do I...?</h1>
|
||||
<section class="section">
|
||||
function howDoI() {
|
||||
return (
|
||||
<>
|
||||
<h1 class="hdi-title">How do I...?</h1>
|
||||
<section class="hdi-section">
|
||||
<h2>.. enable / disable certain features?</h2>
|
||||
<p>
|
||||
Features can be enabled and disables using the <code>/feature</code>
|
||||
command.<br />Example:
|
||||
command.
|
||||
<br />
|
||||
Example:
|
||||
</p>
|
||||
<div class="imgwrapper">
|
||||
<img class="desktop"
|
||||
<img
|
||||
class="desktop"
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/howdoi/featureexample.png"
|
||||
alt="A screenshot of the example in Discord."/>
|
||||
<img class="mobile" src="https://static.moonleay.net/img/lilJuddWeb/howdoi/featureexamplemobile.png" alt="A screenshot of the example in Discord."/>
|
||||
<!--<p><code>/feature feature:Time Planning Feature set:Enable channel:#ich-kann-heute</code></p>-->
|
||||
alt="A screenshot of the example in Discord."
|
||||
/>
|
||||
<img
|
||||
class="mobile"
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/howdoi/featureexamplemobile.png"
|
||||
alt="A screenshot of the example in Discord."
|
||||
/>
|
||||
{/* <p><code>/feature feature:Time Planning Feature set:Enable channel:#ich-kann-heute</code></p> */}
|
||||
</div>
|
||||
</section>
|
||||
<section class="section">
|
||||
<section class="hdi-section">
|
||||
<h2>.. create a match?</h2>
|
||||
<p>
|
||||
You can create a match time using the <code>/match</code> command.<br
|
||||
/>Example:
|
||||
You can create a match time using the <code>/match</code> command.
|
||||
<br />
|
||||
Example:
|
||||
</p>
|
||||
<div class="imgwrapper">
|
||||
<img class="desktop"
|
||||
<img
|
||||
class="desktop"
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/howdoi/matchexample.png"
|
||||
alt="A screenshot of the example in Discord."
|
||||
/>
|
||||
<img class="mobile" src="https://static.moonleay.net/img/lilJuddWeb/howdoi/matchexamplemobile.png" alt="A screenshot of the example in Discord."/>
|
||||
<!--<p><code>/match match:Ladder Match timestamp:24.12.2069 04:20 opponent:Forbidden</code></p>-->
|
||||
<img
|
||||
class="mobile"
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/howdoi/matchexamplemobile.png"
|
||||
alt="A screenshot of the example in Discord."
|
||||
/>
|
||||
{/* <p><code>/match match:Ladder Match timestamp:24.12.2069 04:20 opponent:Forbidden</code></p> */}
|
||||
</div>
|
||||
</section>
|
||||
<section class="footernotesection">
|
||||
<p>Is something missing here?<br/>Please <a href="/contact" target="_self">contact me</a>!</p>
|
||||
<section class="hdi-footernotesection">
|
||||
<p>
|
||||
Is something missing here?
|
||||
<br />
|
||||
Please <a href="/contact">contact me</a>!
|
||||
</p>
|
||||
</section>
|
||||
</Layout>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default howDoI;
|
||||
|
|
|
@ -1,29 +1,61 @@
|
|||
---
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import "../styles/pages/imprint.scss";
|
||||
---
|
||||
|
||||
<Layout>
|
||||
<section class="wrapper">
|
||||
function imprint() {
|
||||
return (
|
||||
<>
|
||||
<section class="imprint">
|
||||
<h1>Imprint</h1>
|
||||
<p>
|
||||
In accordance with the applicable legal regulations, we would like to
|
||||
point out that this website is not subject to the imprint obligation. This
|
||||
notice is for clarification and transparent information for our visitors.
|
||||
<br />
|
||||
According to § 5 TMG (Telemedia Act), certain providers of telemedia in
|
||||
Germany are obliged to provide an imprint with certain information. This
|
||||
obligation applies in particular to commercial websites or those that are
|
||||
used for business purposes.
|
||||
<br />
|
||||
However, since this website has no business or commercial character and
|
||||
only provides non-commercial, informative or private content, it is not
|
||||
subject to the imprint obligation according to § 5 TMG.
|
||||
<br />
|
||||
Nevertheless, we strive to keep all information on this website correct
|
||||
and up-to-date to the best of our knowledge and belief. However, if you
|
||||
have any questions or concerns, please feel free to contact us using the
|
||||
<a href="/contact" target="_self">contact options</a> provided.
|
||||
</p>
|
||||
<section>
|
||||
<a href="/contact">
|
||||
<h2>Contact me</h2>
|
||||
</a>
|
||||
</section>
|
||||
</Layout>
|
||||
<section>
|
||||
<h2>Liability for contents</h2>
|
||||
<p>
|
||||
As a service provider, we are responsible for our own content on
|
||||
these pages in accordance with general legislation pursuant to
|
||||
Section 7 (1) of the German Telemedia Act (TMG). According to §§ 8
|
||||
to 10 TMG, however, we are not obligated as a service provider to
|
||||
monitor transmitted or stored third-party information or to
|
||||
investigate circumstances that indicate illegal activity.
|
||||
Obligations to remove or block the use of information under the
|
||||
general laws remain unaffected. However, liability in this regard is
|
||||
only possible from the point in time at which a concrete
|
||||
infringement of the law becomes known. If we become aware of any
|
||||
such infringements, we will remove the relevant content immediately.
|
||||
</p>
|
||||
<h5>
|
||||
Source:{" "}
|
||||
<a href="https://www.e-recht24.de/impressum-generator.html">
|
||||
eRecht24
|
||||
</a>
|
||||
</h5>
|
||||
</section>
|
||||
<section>
|
||||
<h2>Liability for links</h2>
|
||||
<p>
|
||||
Our offer contains links to external websites of third parties, on
|
||||
whose contents we have no influence. Therefore, we cannot assume any
|
||||
liability for these external contents. The respective provider or
|
||||
operator of the pages is always responsible for the content of the
|
||||
linked pages. The linked pages were checked for possible legal
|
||||
violations at the time of linking. Illegal contents were not
|
||||
recognizable at the time of linking. However, a permanent control of
|
||||
the contents of the linked pages is not reasonable without concrete
|
||||
evidence of a violation of the law. If we become aware of any
|
||||
infringements, we will remove such links immediately.{" "}
|
||||
</p>
|
||||
<h5>
|
||||
Source:{" "}
|
||||
<a href="https://www.e-recht24.de/impressum-generator.html">
|
||||
eRecht24
|
||||
</a>
|
||||
</h5>
|
||||
</section>
|
||||
</section>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default imprint;
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
---
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import '../styles/pages/index.scss';
|
||||
---
|
||||
import "../styles/pages/index.scss";
|
||||
|
||||
<Layout>
|
||||
<section class="section">
|
||||
function index() {
|
||||
return (
|
||||
<>
|
||||
<section class="index">
|
||||
<h1>li'l Judd</h1>
|
||||
<h5>The competetive Splatoon Bot</h5>
|
||||
<div>
|
||||
|
@ -14,4 +13,8 @@ import '../styles/pages/index.scss';
|
|||
</p>
|
||||
</div>
|
||||
</section>
|
||||
</Layout>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default index;
|
||||
|
|
|
@ -1,30 +1,39 @@
|
|||
---
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import "../styles/pages/privacy-policy.scss";
|
||||
---
|
||||
|
||||
<Layout>
|
||||
<div class="wrapper">
|
||||
function privacyPolicy() {
|
||||
return (
|
||||
<>
|
||||
<div class="privacyPolicy">
|
||||
<div>
|
||||
<h1>Privacy Policy for li'l Judd</h1>
|
||||
<h4>Last updated: 2023-12-05</h4>
|
||||
</div>
|
||||
<section>
|
||||
<h2>1. Introduction</h2>
|
||||
<p>Welcome to li'l Judd! This Privacy Policy explains how we collect, use, disclose, and safeguard your personal information when you use our Discord bot service.</p>
|
||||
<p>
|
||||
Welcome to li'l Judd! This Privacy Policy explains how we
|
||||
collect, use, disclose, and safeguard your personal information when
|
||||
you use our Discord bot service.
|
||||
</p>
|
||||
</section>
|
||||
<section>
|
||||
<h2>2. Data Controller</h2>
|
||||
<p>The data controller for the processing of your personal data is: Eric L
|
||||
<br/>
|
||||
Reachable by email at contact at moonleay dot net (<a href="/contact" target="_self">See contact page.</a>)
|
||||
<p>
|
||||
The data controller for the processing of your personal data is
|
||||
moonleay.
|
||||
<br />
|
||||
Please note that "moonleay" is primarily used as a username and may
|
||||
not directly reflect my legal or real-world identity.
|
||||
<br />
|
||||
You can reach me <a href="/contact">here</a>.
|
||||
</p>
|
||||
</section>
|
||||
<section>
|
||||
<h2>3. Information We Collect</h2>
|
||||
<h3>3.1 Discord User Data</h3>
|
||||
<p>
|
||||
We may collect and process the following (personal) data related to your Discord account & guilds:
|
||||
We may collect and process the following (personal) data related to
|
||||
your Discord account & guilds:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
|
@ -47,7 +56,10 @@ import "../styles/pages/privacy-policy.scss";
|
|||
</li>
|
||||
</ul>
|
||||
<h3>3.2 Usage Data</h3>
|
||||
<p>We may collect information on how you interact with our bot, including but not limited to:</p>
|
||||
<p>
|
||||
We may collect information on how you interact with our bot,
|
||||
including but not limited to:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>- Commands issued</p>
|
||||
|
@ -83,48 +95,86 @@ import "../styles/pages/privacy-policy.scss";
|
|||
<p>We process your personal data on the following legal bases:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>- Consent: You have given your consent for the processing of your personal data for one or more specific purposes.</p>
|
||||
<p>
|
||||
- Consent: You have given your consent for the processing of
|
||||
your personal data for one or more specific purposes.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>- Performance of a contract: The processing is necessary for the performance of the agreement between you and us.</p>
|
||||
<p>
|
||||
- Performance of a contract: The processing is necessary for the
|
||||
performance of the agreement between you and us.
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section>
|
||||
<h2>6. Data Sharing</h2>
|
||||
<p>We do not sell, trade, or otherwise transfer your personal information to third parties. However, we may share your information with:</p>
|
||||
<p>
|
||||
We do not sell, trade, or otherwise transfer your personal
|
||||
information to third parties. However, we may share your information
|
||||
with:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>- Third-party service providers involved in the operation and maintenance of the bot.</p>
|
||||
<p>
|
||||
- Third-party service providers involved in the operation and
|
||||
maintenance of the bot.
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section>
|
||||
<h2>7. Data Security</h2>
|
||||
<p>We implement reasonable security measures to protect your personal information from unauthorized access, disclosure, alteration, and destruction.</p>
|
||||
<p>
|
||||
We implement reasonable security measures to protect your personal
|
||||
information from unauthorized access, disclosure, alteration, and
|
||||
destruction.
|
||||
</p>
|
||||
</section>
|
||||
<section>
|
||||
<h2>8. Your Rights</h2>
|
||||
<p>You have the following rights regarding your personal data:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>- Right to withdraw consent: You have the right to withdraw your consent at any time. You can do this by contacting us at contact@moonleay.net.</p>
|
||||
<p>
|
||||
- Right to withdraw consent: You have the right to withdraw your
|
||||
consent at any time. You can do this by contacting us at
|
||||
contact@moonleay.net.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>- Right to rectification: You can request corrections to inaccurate or incomplete information.</p>
|
||||
<p>
|
||||
- Right to rectification: You can request corrections to
|
||||
inaccurate or incomplete information.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>- Right to erasure: You can request the deletion of your personal data.</p>
|
||||
<p>
|
||||
- Right to erasure: You can request the deletion of your
|
||||
personal data.
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section>
|
||||
<h2>9. Changes to this Privacy Policy</h2>
|
||||
<p>We may update this Privacy Policy to reflect changes in our practices. The updated version will be posted on https://liljudd.ink/privacy-policy.</p>
|
||||
<p>
|
||||
We may update this Privacy Policy to reflect changes in our
|
||||
practices. The updated version will be posted on
|
||||
https://liljudd.ink/privacy-policy.
|
||||
</p>
|
||||
</section>
|
||||
<section>
|
||||
<h2>10. Contact Information</h2>
|
||||
<p>If you have any questions or concerns about this Privacy Policy, please contact us at contact@moonleay.net.</p>
|
||||
<p>
|
||||
If you have any questions or concerns about this Privacy Policy,
|
||||
please contact us at contact@moonleay.net.
|
||||
</p>
|
||||
</section>
|
||||
</div>
|
||||
</Layout>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default privacyPolicy;
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
---
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import "../styles/pages/stack.scss"
|
||||
---
|
||||
import "../styles/pages/stack.scss";
|
||||
|
||||
<Layout>
|
||||
<h1 class="title">The Stack</h1>
|
||||
<section class="stacksection">
|
||||
function stack() {
|
||||
return (
|
||||
<>
|
||||
<h1 class="stack-title">The Stack</h1>
|
||||
<section class="stack-section">
|
||||
<img
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/logos/kotlin.svg"
|
||||
alt="Kotlin 'K' logo"
|
||||
|
@ -13,11 +12,12 @@ import "../styles/pages/stack.scss"
|
|||
<div class="stackgrid_3 stackitm">
|
||||
<h1>The Kotlin programming language</h1>
|
||||
<p>
|
||||
A programming language, which runs in the JVM. Also my main language.
|
||||
A programming language, which runs in the JVM. Also my main
|
||||
language.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
<section class="stacksection">
|
||||
<section class="stack-section">
|
||||
<img
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/logos/kord.png"
|
||||
alt="The Kord logo"
|
||||
|
@ -27,7 +27,7 @@ import "../styles/pages/stack.scss"
|
|||
<p>A Kotlin library for creating Discord bots. Pretty bare bones.</p>
|
||||
</div>
|
||||
</section>
|
||||
<section class="stacksection">
|
||||
<section class="stack-section">
|
||||
<img
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/logos/kordextensions.png"
|
||||
alt="The Kord-Extensions logo"
|
||||
|
@ -37,7 +37,7 @@ import "../styles/pages/stack.scss"
|
|||
<p>A Kotlin library to improve the Kord experience.</p>
|
||||
</div>
|
||||
</section>
|
||||
<section class="stacksection">
|
||||
<section class="stack-section">
|
||||
<img
|
||||
src="https://static.moonleay.net/img/lilJuddWeb/logos/pgelephant.png"
|
||||
alt="The PostgreSQL elephant"
|
||||
|
@ -50,9 +50,14 @@ import "../styles/pages/stack.scss"
|
|||
</p>
|
||||
</div>
|
||||
</section>
|
||||
<section class="stacknote">
|
||||
<section class="stack-note">
|
||||
<p>
|
||||
To view all used libraries and their licenses, check the <a href="/acknowledgements">Acknowledgements</a>.
|
||||
To view all used libraries and their licenses, check the{" "}
|
||||
<a href="/acknowledgements">Acknowledgements</a>.
|
||||
</p>
|
||||
</section>
|
||||
</Layout>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default stack;
|
||||
|
|
|
@ -1,52 +1,97 @@
|
|||
---
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import "../styles/pages/terms-of-service.scss";
|
||||
---
|
||||
|
||||
<Layout>
|
||||
<div class="wrapper">
|
||||
function termsOfService() {
|
||||
return (
|
||||
<>
|
||||
<div class="termsOfService">
|
||||
<h1>Terms of Service</h1>
|
||||
<div>
|
||||
<h2>Usage Agreement</h2>
|
||||
<p>
|
||||
By inviting the bot and using its features (commands, planning system) are you agreeing to the below mentioned Terms and Privacy Policy (Policy) of the bot.<br/>
|
||||
|
||||
You acknowledge that you have the privilege to use the bot freely on any Discord Server (Server) you share with it, that you can invite it to any Server that you have "Manage Server" rights for and that this privilege might get revoked for you, if you're subject of breaking the terms and/or policy of this bot, or the <a href="https://discord.com/terms" target="_blank">Terms of Service</a>, <a href="https://discord.com/privacy" target="_blank">Privacy Policy</a> and/or <a href="https://discord.com/guidelines" target="_blank">Community Guidelines</a> of <a href="https://discord.com/" target="_blank">Discord Inc</a>.<br/>
|
||||
|
||||
Through Inviting the bot may it collect specific data as described in its Policy.<br/>
|
||||
The intended usage of this data is for core functionalities of the bot such as command handling, guild-specific settings and the time-planning system.<br/>
|
||||
By inviting the bot and using its features (commands, planning
|
||||
system) are you agreeing to the below mentioned Terms and Privacy
|
||||
Policy (Policy) of the bot.
|
||||
<br />
|
||||
You acknowledge that you have the privilege to use the bot freely on
|
||||
any Discord Server (Server) you share with it, that you can invite
|
||||
it to any Server that you have "Manage Server" rights for and that
|
||||
this privilege might get revoked for you, if you're subject of
|
||||
breaking the terms and/or policy of this bot, or the{" "}
|
||||
<a href="https://discord.com/terms" target="_blank">
|
||||
Terms of Service
|
||||
</a>
|
||||
,{" "}
|
||||
<a href="https://discord.com/privacy" target="_blank">
|
||||
Privacy Policy
|
||||
</a>{" "}
|
||||
and/or{" "}
|
||||
<a href="https://discord.com/guidelines" target="_blank">
|
||||
Community Guidelines
|
||||
</a>{" "}
|
||||
of{" "}
|
||||
<a href="https://discord.com/" target="_blank">
|
||||
Discord Inc
|
||||
</a>
|
||||
.<br />
|
||||
Through Inviting the bot may it collect specific data as described
|
||||
in its Policy.
|
||||
<br />
|
||||
The intended usage of this data is for core functionalities of the
|
||||
bot such as command handling, guild-specific settings and the
|
||||
time-planning system.
|
||||
<br />
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>Intended Age</h2>
|
||||
<p>
|
||||
The bot may not be used by individuals under the minimal age described in Discord's Terms of Service.<br/>
|
||||
Doing so will be seen as a violation of these terms and will result in a removal of the bot from any servers you own.<br/>
|
||||
The bot may not be used by individuals under the minimal age
|
||||
described in Discord's Terms of Service.
|
||||
<br />
|
||||
Doing so will be seen as a violation of these terms and will result
|
||||
in a removal of the bot from any servers you own.
|
||||
<br />
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>Affiliation</h2>
|
||||
<p>
|
||||
The Bot is not affiliated with, supported or made by Discord Inc.<br/>
|
||||
Any direct connection to Discord or any of its Trademark objects is purely coincidental. We do not claim to have the copyright ownership of any of Discord's assets, trademarks or other intellectual property.<br/>
|
||||
The Bot is not affiliated with, supported or made by Discord Inc.
|
||||
<br />
|
||||
Any direct connection to Discord or any of its Trademark objects is
|
||||
purely coincidental. We do not claim to have the copyright ownership
|
||||
of any of Discord's assets, trademarks or other intellectual
|
||||
property.
|
||||
<br />
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>Liability</h2>
|
||||
<p>
|
||||
The owner of the bot may not be made liable for individuals breaking these Terms at any given time.<br/>
|
||||
He has faith in the end users being truthfull about their information and not misusing this bot or the services of Discord Inc in a malicious way.<br/>
|
||||
|
||||
We reserve the right to update these terms at our own discretion, giving you a 1-Week (7 days) period to opt out of these terms if you're not agreeing with the new changes.
|
||||
You may opt out by Removing the bot from any Server you have the rights for.
|
||||
The owner of the bot may not be made liable for individuals breaking
|
||||
these Terms at any given time.
|
||||
<br />
|
||||
He has faith in the end users being truthfull about their
|
||||
information and not misusing this bot or the services of Discord Inc
|
||||
in a malicious way.
|
||||
<br />
|
||||
We reserve the right to update these terms at our own discretion,
|
||||
giving you a 1-Week (7 days) period to opt out of these terms if
|
||||
you're not agreeing with the new changes. You may opt out by
|
||||
Removing the bot from any Server you have the rights for.
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>Contact</h2>
|
||||
<p>
|
||||
People may get in contact through e-mail at contact@moonleay.net, or through the official Support Discord of the Bot.
|
||||
Other ways of support may be provided but aren't guaranteed.
|
||||
People may get in contact through e-mail at contact@moonleay.net, or
|
||||
through the official Support Discord of the Bot. Other ways of
|
||||
support may be provided but aren't guaranteed.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</Layout>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default termsOfService;
|
||||
|
|
26
src/server/auth.ts
Normal file
26
src/server/auth.ts
Normal file
|
@ -0,0 +1,26 @@
|
|||
import Discord from "@auth/core/providers/discord";
|
||||
import { DrizzleAdapter } from "@auth/drizzle-adapter";
|
||||
import { type SolidAuthConfig } from "@auth/solid-start";
|
||||
import db from "~/drizzle";
|
||||
|
||||
export const authOptions: SolidAuthConfig = {
|
||||
providers: [
|
||||
{
|
||||
...Discord({
|
||||
clientId: process.env.DISCORD_CLIENT_ID,
|
||||
clientSecret: process.env.DISCORD_CLIENT_SECRET,
|
||||
}),
|
||||
authorization:
|
||||
"https://discord.com/api/oauth2/authorize?scope=identify+email+guilds+guilds.members.read",
|
||||
},
|
||||
],
|
||||
adapter: DrizzleAdapter(db),
|
||||
secret: process.env.AUTH_SECRET,
|
||||
pages: {
|
||||
// signIn: "/signin",
|
||||
// signOut: "/signout",
|
||||
// error: '/auth/error', // Error code passed in query string as ?error=
|
||||
// verifyRequest: '/auth/verify-request', // (used for check email message)
|
||||
// newUser: '/auth/new-user' // New users will be directed here on first sign in (leave the property out if not of interest)
|
||||
},
|
||||
};
|
|
@ -24,16 +24,16 @@ footer {
|
|||
}
|
||||
|
||||
.footerTable {
|
||||
padding: 20px;
|
||||
padding: 15px;
|
||||
display: grid;
|
||||
@media (max-width: 768px) {
|
||||
@media (max-width: 800px) {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 0;
|
||||
div {
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 769px) {
|
||||
@media (min-width: 801px) {
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
gap: 20px;
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
border-radius: 0.5rem;
|
||||
width: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
max-width: 90vw;
|
||||
|
||||
@media (min-width: 1150px) {
|
||||
max-width: 80vw;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
h1 {
|
||||
font-size: 3rem;
|
||||
text-align: center;
|
||||
margin-bottom: 1.2rem;
|
||||
}
|
||||
|
||||
.aboutdiv {
|
||||
max-width: 1100px;
|
||||
margin: 1rem auto;
|
||||
width: 100%;
|
||||
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
text-align: center;
|
||||
margin-bottom: 1.2rem;
|
||||
}
|
||||
|
||||
section {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 4px;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.wrapper {
|
||||
.acknowledgements {
|
||||
h1 {
|
||||
@media (min-width: 420px) {
|
||||
font-size: 3rem;
|
||||
|
@ -11,7 +11,8 @@
|
|||
section {
|
||||
margin: 1rem;
|
||||
|
||||
p, a {
|
||||
p,
|
||||
a {
|
||||
@media (max-width: 420px) {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
@ -52,7 +53,6 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.wrapper {
|
||||
.contact {
|
||||
margin: 0;
|
||||
|
||||
h1 {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.container {
|
||||
.features {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
.title {
|
||||
.hdi-title {
|
||||
font-size: 3rem;
|
||||
text-align: center;
|
||||
margin-bottom: 1.2rem;
|
||||
}
|
||||
|
||||
.section {
|
||||
.hdi-section {
|
||||
max-width: 1100px;
|
||||
margin: 1rem auto;
|
||||
width: 100%;
|
||||
|
@ -41,7 +41,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.footernotesection {
|
||||
.hdi-footernotesection {
|
||||
max-width: 1100px;
|
||||
margin: 1rem auto;
|
||||
width: 100%;
|
||||
|
@ -62,4 +62,3 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
.wrapper {
|
||||
.imprint {
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
text-align: center;
|
||||
margin-bottom: 1.2rem;
|
||||
}
|
||||
|
||||
p {
|
||||
section {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 4px;
|
||||
margin: 1rem;
|
||||
|
@ -16,6 +16,11 @@
|
|||
margin: 1rem auto;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
h5 {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
a {
|
||||
color: white;
|
||||
|
@ -27,6 +32,4 @@
|
|||
color: rgb(96 59 255) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.section {
|
||||
.index {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
@ -15,16 +15,17 @@
|
|||
|
||||
div {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.p1 {
|
||||
.p1 {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.p2 {
|
||||
.p2 {
|
||||
font-size: 0.8rem;
|
||||
a {
|
||||
}
|
||||
|
||||
.p1 a,
|
||||
.p2 a {
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
font-size: 0.9rem;
|
||||
|
@ -34,4 +35,5 @@
|
|||
color: rgb(96 59 255) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
.wrapper {
|
||||
.privacyPolicy {
|
||||
div {
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
text-align: center;
|
||||
}
|
||||
h4{
|
||||
h4 {
|
||||
font-size: 1.5rem;
|
||||
text-align: center;
|
||||
margin-bottom: 1.2rem;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
.title {
|
||||
.stack-title {
|
||||
font-size: 3rem;
|
||||
text-align: center;
|
||||
margin-bottom: 1.2rem;
|
||||
}
|
||||
|
||||
.stacksection {
|
||||
.stack-section {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 4px;
|
||||
margin: 1rem;
|
||||
|
@ -35,7 +35,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.stacknote {
|
||||
.stack-note {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 4px;
|
||||
margin: 1rem;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.wrapper {
|
||||
.termsOfService {
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
text-align: center;
|
||||
|
|
|
@ -1,10 +1,19 @@
|
|||
{
|
||||
"extends": "astro/tsconfigs/strict",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"target": "ESNext",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"esModuleInterop": true,
|
||||
"jsx": "preserve",
|
||||
"jsxImportSource": "solid-js",
|
||||
"allowJs": true,
|
||||
"strict": true,
|
||||
"noEmit": true,
|
||||
"types": ["vinxi/client"],
|
||||
"isolatedModules": true,
|
||||
"paths": {
|
||||
"@components/*": ["src/components/*"],
|
||||
"@layouts/*": ["src/layouts/*"]
|
||||
"~/*": ["./src/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
3
vite.config.ts
Normal file
3
vite.config.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
import { defineConfig } from "@solidjs/start/config";
|
||||
|
||||
export default defineConfig({});
|
Loading…
Reference in a new issue