mirror of
https://github.com/xHyroM/roles-bot.git
synced 2024-11-21 16:11:04 +01:00
page fix
This commit is contained in:
parent
b0841b319c
commit
a414b11651
5 changed files with 19 additions and 47 deletions
8
.github/workflows/pages.yml
vendored
8
.github/workflows/pages.yml
vendored
|
@ -12,8 +12,14 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
- run: npm ci
|
||||
- run: cd src/web && npm run ghbuild
|
||||
|
||||
- name: Deploy site
|
||||
uses: JamesIves/github-pages-deploy-action@4.1.4
|
||||
with:
|
||||
branch: gh-pages
|
||||
folder: src/web-old
|
||||
folder: src/web/out
|
|
@ -4,8 +4,7 @@
|
|||
"main": "dist/worker.production.js",
|
||||
"scripts": {
|
||||
"build": "webpack ./src/bot",
|
||||
"dev": "cross-env NODE_ENV=development npm run build",
|
||||
"transpile": "tsc --project ./test"
|
||||
"dev": "cross-env NODE_ENV=development npm run build"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
|
|
|
@ -1,36 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang='en'>
|
||||
<head>
|
||||
<meta charset='UTF-8'>
|
||||
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
|
||||
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
|
||||
<title>Roles Bot</title>
|
||||
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css' integrity='sha512-c42qTSw/wPZ3/5LBzD+Bw5f7bSF2oxou6wEb+I/lqeaKV5FDIfMvvRp772y4jcJLKuGUOpbJMdg/BTl50fJYAw==' crossorigin='anonymous' referrerpolicy='no-referrer' />
|
||||
<meta name='keywords' content='ReactionRoles, discord, discordbot, discordroles, roles-bot'>
|
||||
<link rel='stylesheet' href='dist/style.css'>
|
||||
<link rel='icon' href='assets/logo.ico'>
|
||||
<script src='https://kit.fontawesome.com/5acf4d9e80.js' crossorigin='anonymous'></script>
|
||||
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js'></script>
|
||||
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/default.min.css'>
|
||||
<script src='https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js'></script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
</head>
|
||||
<body>
|
||||
<section class='flex-container'>
|
||||
<div class='container animate__animated animate__fadeIn'>
|
||||
<h1>Generate</h1>
|
||||
<form>
|
||||
<input placeholder='Your Message' name='message' id='message'/><br> <!--Message-->
|
||||
<input placeholder='Channel Id' name='channel' id='channel'/> <!--Channel Id-->
|
||||
</form>
|
||||
<button id='addRole'>Add Role</button>
|
||||
|
||||
<button id='buttonCopy'>Copy</button>
|
||||
<img src='assets/slash.png' class='responsive' />
|
||||
<pre class='hljs language-json copy' id='jsonPre'><code id='json' class="code"></code></pre>
|
||||
</div>
|
||||
</section>
|
||||
<script src='//cdn.jsdelivr.net/npm/sweetalert2@11'></script>
|
||||
<script src='app/js/script.js'></script>
|
||||
</body>
|
||||
</html>
|
|
@ -5,7 +5,8 @@
|
|||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint"
|
||||
"lint": "next lint",
|
||||
"ghbuild": "next build && next export"
|
||||
},
|
||||
"dependencies": {
|
||||
"next": "12.0.7",
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
import Head from "next/head";
|
||||
import Script from "next/script";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<div>
|
||||
<Head>
|
||||
<title>Roles Bot</title>
|
||||
<link rel="icon" href="logo.ico" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/default.min.css" />
|
||||
</Head>
|
||||
<section className="flex-container">
|
||||
|
@ -15,17 +18,16 @@ export default function Home() {
|
|||
</form>
|
||||
<button id="addRole">Add Role</button>
|
||||
<button id="buttonCopy">Copy</button>
|
||||
<img src="slash.png" className="responsive" />
|
||||
<pre className={`hljs language-json copy`} id="jsonPre"><code id="json" className="code"></code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script src="https://kit.fontawesome.com/5acf4d9e80.js" crossOrigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||
<script src="script.js"></script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
<Script src="https://kit.fontawesome.com/5acf4d9e80.js" crossOrigin="anonymous"></Script>
|
||||
<Script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></Script>
|
||||
<Script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js"></Script>
|
||||
<Script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></Script>
|
||||
<Script src="script.js"></Script>
|
||||
<Script id='hljs'>hljs.initHighlightingOnLoad();</Script>
|
||||
</div>
|
||||
)
|
||||
}
|
Loading…
Reference in a new issue