mirror of
https://github.com/xHyroM/roles-bot.git
synced 2024-11-10 03:08:06 +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
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
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
|
- name: Deploy site
|
||||||
uses: JamesIves/github-pages-deploy-action@4.1.4
|
uses: JamesIves/github-pages-deploy-action@4.1.4
|
||||||
with:
|
with:
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
folder: src/web-old
|
folder: src/web/out
|
|
@ -4,8 +4,7 @@
|
||||||
"main": "dist/worker.production.js",
|
"main": "dist/worker.production.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack ./src/bot",
|
"build": "webpack ./src/bot",
|
||||||
"dev": "cross-env NODE_ENV=development npm run build",
|
"dev": "cross-env NODE_ENV=development npm run build"
|
||||||
"transpile": "tsc --project ./test"
|
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"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",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint"
|
"lint": "next lint",
|
||||||
|
"ghbuild": "next build && next export"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "12.0.7",
|
"next": "12.0.7",
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
|
import Script from "next/script";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Head>
|
<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" />
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/default.min.css" />
|
||||||
</Head>
|
</Head>
|
||||||
<section className="flex-container">
|
<section className="flex-container">
|
||||||
|
@ -15,17 +18,16 @@ export default function Home() {
|
||||||
</form>
|
</form>
|
||||||
<button id="addRole">Add Role</button>
|
<button id="addRole">Add Role</button>
|
||||||
<button id="buttonCopy">Copy</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>
|
<pre className={`hljs language-json copy`} id="jsonPre"><code id="json" className="code"></code></pre>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<script src="https://kit.fontawesome.com/5acf4d9e80.js" crossOrigin="anonymous"></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/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://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="https://cdn.jsdelivr.net/npm/sweetalert2@11"></Script>
|
||||||
<script src="script.js"></script>
|
<Script src="script.js"></Script>
|
||||||
<script>hljs.initHighlightingOnLoad();</script>
|
<Script id='hljs'>hljs.initHighlightingOnLoad();</Script>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
Loading…
Reference in a new issue