Skip to content

Commit

Permalink
πŸ’ˆπŸ‘— ↣ Adding script to embed sta-15 branch contents in #9 for #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gizmotronn committed Nov 3, 2022
1 parent 45c63a5 commit 361046d
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 454 deletions.
14 changes: 7 additions & 7 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"files": {
"main.css": "/static/css/main.0fcf26ef.chunk.css",
"main.js": "/static/js/main.8d71a8fd.chunk.js",
"main.js.map": "/static/js/main.8d71a8fd.chunk.js.map",
"main.js": "/static/js/main.560047c7.chunk.js",
"main.js.map": "/static/js/main.560047c7.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.7e9105ec.js",
"runtime-main.js.map": "/static/js/runtime-main.7e9105ec.js.map",
"static/js/2.d9f41e0b.chunk.js": "/static/js/2.d9f41e0b.chunk.js",
"static/js/2.d9f41e0b.chunk.js.map": "/static/js/2.d9f41e0b.chunk.js.map",
"static/js/2.6ab2cbbd.chunk.js": "/static/js/2.6ab2cbbd.chunk.js",
"static/js/2.6ab2cbbd.chunk.js.map": "/static/js/2.6ab2cbbd.chunk.js.map",
"index.html": "/index.html",
"static/css/main.0fcf26ef.chunk.css.map": "/static/css/main.0fcf26ef.chunk.css.map",
"static/js/2.d9f41e0b.chunk.js.LICENSE.txt": "/static/js/2.d9f41e0b.chunk.js.LICENSE.txt",
"static/js/2.6ab2cbbd.chunk.js.LICENSE.txt": "/static/js/2.6ab2cbbd.chunk.js.LICENSE.txt",
"static/media/TessStat.92d32aa4.png": "/static/media/TessStat.92d32aa4.png",
"static/media/bg.c3d46c85.png": "/static/media/bg.c3d46c85.png",
"static/media/logo-transparent.3bbbd591.jpg": "/static/media/logo-transparent.3bbbd591.jpg",
Expand All @@ -18,8 +18,8 @@
},
"entrypoints": [
"static/js/runtime-main.7e9105ec.js",
"static/js/2.d9f41e0b.chunk.js",
"static/js/2.6ab2cbbd.chunk.js",
"static/css/main.0fcf26ef.chunk.css",
"static/js/main.8d71a8fd.chunk.js"
"static/js/main.560047c7.chunk.js"
]
}
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Companion app for the Star Sailors game"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Star Sailors</title><link href="/static/css/main.0fcf26ef.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,l,a=r[0],f=r[1],i=r[2],c=0,s=[];c<a.length;c++)l=a[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,i||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var f=t[a];0!==o[f]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var a=this["webpackJsonpstar-sailors-fe"]=this["webpackJsonpstar-sailors-fe"]||[],f=a.push.bind(a);a.push=r,a=a.slice();for(var i=0;i<a.length;i++)r(a[i]);var p=f;t()}([])</script><script src="/static/js/2.d9f41e0b.chunk.js"></script><script src="/static/js/main.8d71a8fd.chunk.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Companion app for the Star Sailors game"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Star Sailors</title><link href="/static/css/main.0fcf26ef.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,l,a=r[0],f=r[1],i=r[2],c=0,s=[];c<a.length;c++)l=a[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,i||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var f=t[a];0!==o[f]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var a=this["webpackJsonpstar-sailors-fe"]=this["webpackJsonpstar-sailors-fe"]||[],f=a.push.bind(a);a.push=r,a=a.slice();for(var i=0;i<a.length;i++)r(a[i]);var p=f;t()}([])</script><script src="/static/js/2.6ab2cbbd.chunk.js"></script><script src="/static/js/main.560047c7.chunk.js"></script></body></html>
1 change: 1 addition & 0 deletions server/models/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vercel
8 changes: 8 additions & 0 deletions server/models/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head></head>
<body>
<script src="https://anvil.works/embed.js" async></script>
<iframe style="width:100%;" data-anvil-embed src="https://KUZFNL3BKN4XRD4D.anvil.app/GUGXOCY77C7VQWSS4AQVBJYI"></iframe>
</body>
</html>
21 changes: 7 additions & 14 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,23 @@ import Spinner from 'react-bootstrap/Spinner';
import Sidebar from './components/SideBar Section/Sidebar';

// Auth components
import Authenticate from './components/auth/Authenticate';
import Authenticate from './auth/Authenticate';
import Login from './pages/Login';
import { UserContext } from './context/userContext';
import { checkUser } from './service/magic';
import Dashboard from './components/auth/Dashboard';
import PrivateRoute from './components/auth/PrivateRoute';
import Dashboard from './auth/Dashboard';
import PrivateRoute from './auth/PrivateRoute';
import { Switch, BrowserRouter as Router, Route, Redirect } from 'react-router-dom';

// SupaAuth components
import Auth from './auth/SupAuth';
import Account from './auth/Account';
import { supabase } from './auth/config/supabaseClient';
/* SupaAuth components
import Auth from './components/auth/SupAuth';
import Account from './components/auth/Account';
import { supabase } from './components/auth/config/supabaseClient'; */

function App() {
const [user, setUser] = useState({ isLoggedIn: null, email: ''});
const [loading, setLoading] = useState();

const [session, setSession] = useState(None);

useEffect(() => {
setSession(supabase.auth.sessions());
supabase
})

useEffect(() => {
const validateUser = async () => {
setLoading(true);
Expand Down
4 changes: 2 additions & 2 deletions src/auth/Authenticate.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { useState } from "react";
import { useHistory } from 'react-router-dom';
import { Button, Form, FormGroup, FormLabel, FormControl } from 'react-bootstrap';
import { loginUser } from "../../service/magic";
import Login from "../../pages/Login";
import { loginUser } from "../service/magic";
import Login from "../pages/Login";

const Authenticate = () => {
const [email, setEmail] = useState('');
Expand Down
8 changes: 4 additions & 4 deletions src/auth/Dashboard.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { useContext } from 'react';
import { useHistory } from 'react-router-dom';
import Button from 'react-bootstrap/Button';
import { UserContext } from '../../context/userContext';
import { logoutUser } from '../../service/magic';
import { UserContext } from '../context/userContext';
import { logoutUser } from '../service/magic';

import Sidebar from '../SideBar Section/Sidebar';
import Body from '../Body Section/Body';
import Sidebar from '../components/SideBar Section/Sidebar';
import Body from '../components/Body Section/Body';

const Dashboard = () => {
/*const [currentTime, setCurrentTime] = useState(0);
Expand Down
2 changes: 1 addition & 1 deletion src/auth/PrivateRoute.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component, useContext } from 'react';
import { Redirect, Route } from 'react-router-dom';
import { UserContext } from '../../context/userContext';
import { UserContext } from '../context/userContext';

const PrivateRoute = ({ component: Component, ...rest }) => {
const { isLoggedIn } = useContext(UserContext); // Call context to check state/us of user through magic sdk
Expand Down
52 changes: 0 additions & 52 deletions src/auth/SupAuth.js

This file was deleted.

Loading

0 comments on commit 361046d

Please sign in to comment.