working deploys

This commit is contained in:
Nicholas Orlowsky 2023-01-18 14:18:31 -06:00
parent 847d11c841
commit 67dcd4e139
3 changed files with 12 additions and 25 deletions

View file

@ -2,22 +2,9 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="03fafda4-e2c1-4602-a731-a2f96e84badd" name="Default Changelist" comment=""> <list default="true" id="03fafda4-e2c1-4602-a731-a2f96e84badd" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/src/components/HomePage.tsx" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/components/UptimeCard.css" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/static/images/NWS_Logo_Transparent.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/package-lock.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/App.css" beforeDir="false" afterPath="$PROJECT_DIR$/src/App.css" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/components/CreateCruisePage.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/CreateCruisePage.tsx" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/components/CreateCruisePage.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/CreateCruisePage.tsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/components/DashboardPage.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/DashboardPage.tsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/components/Footer.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/Footer.tsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/components/StatusPage.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/StatusPage.tsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/components/UptimeCard.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/UptimeCard.tsx" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/components/UptimeCard.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/UptimeCard.tsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/index.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.tsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/nws-api/calls.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/nws-api/calls.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/nws-api/hooks.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/nws-api/hooks.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/nws-api/types.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/nws-api/types.ts" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -46,14 +33,11 @@
<option name="hideEmptyMiddlePackages" value="true" /> <option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" /> <option name="showLibraryContents" value="true" />
</component> </component>
<component name="PropertiesComponent"> <component name="PropertiesComponent"><![CDATA[{
<property name="WebServerToolWindowFactoryState" value="false" /> "keyToString": {
<property name="last_opened_file_path" value="$PROJECT_DIR$/src/static/images" /> "ts.external.directory.path": "/home/nickorlow/programmming/personal/nws-site/node_modules/typescript/lib"
<property name="list.type.of.created.stylesheet" value="CSS" /> }
<property name="nodejs_package_manager_path" value="npm" /> }]]></component>
<property name="ts.external.directory.path" value="$PROJECT_DIR$/node_modules/typescript/lib" />
<property name="vue.rearranger.settings.migration" value="true" />
</component>
<component name="RecentsManager"> <component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS"> <key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/src/static/images" /> <recent name="$PROJECT_DIR$/src/static/images" />

View file

@ -2,6 +2,7 @@ import {useState} from "react";
import URI from "urijs"; import URI from "urijs";
import {Namespace} from "../nws-api/types"; import {Namespace} from "../nws-api/types";
import {useNWSAccount, useNWSAuthKey} from "../nws-api/hooks"; import {useNWSAccount, useNWSAuthKey} from "../nws-api/hooks";
import {useSearchParams} from "react-router-dom";
export default function CreateCruisePage() { export default function CreateCruisePage() {
const [page, setPage] = useState('info'); const [page, setPage] = useState('info');
@ -16,18 +17,20 @@ export default function CreateCruisePage() {
const authKey = useNWSAuthKey(); const authKey = useNWSAuthKey();
const acct = useNWSAccount(); const acct = useNWSAccount();
const [search, useSearch] = useSearchParams();
function deploy() { function deploy() {
fetch("https://api-nws.nickorlow.com/Services/" + acct!.id + "/service", fetch("https://api-nws.nickorlow.com/" + acct!.id + "/service",
{ {
method: 'POST', method: 'POST',
headers: { headers: {
"Authorization": authKey "Authorization": authKey,
"Content-Type": "application/json"
}, },
body: JSON.stringify({ body: JSON.stringify({
"serviceName": name, "serviceName": name,
"containerUrl": `ghcr.io/${owner}/${repo}`, "containerUrl": `ghcr.io/${owner}/${repo}`,
"namespaceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "namespaceId": search.get("namespaceId"),
"serviceUrl": hostUriInput, "serviceUrl": hostUriInput,
}) })
}).then((response)=> { }).then((response)=> {

View file

@ -8,7 +8,7 @@ export default function UptimeCard(props: {uptime: UptimeRecord, isService: bool
const [isModalOpen, setModalOpen] = useState(false); const [isModalOpen, setModalOpen] = useState(false);
return( return(
<div className={"nws-card row mb-2 m-0"} style={{maxWidth: '100%'}}> <div className={"nws-card row mb-2 m-0"} style={{maxWidth: '100%'}}>
<h3 className={"col-md-9 col-12 uptime-lnk"} onClick={()=>setModalOpen(true)}>{props.uptime.name}</h3> <h4 className={"col-md-9 col-12 uptime-lnk"} onClick={()=>setModalOpen(true)}>{props.uptime.name}</h4>
<div className={`col-md-3 col-12 d-flex d-md-none justify-content-start`}> <div className={`col-md-3 col-12 d-flex d-md-none justify-content-start`}>
<p className={`fw-bold severity-label w-100 <p className={`fw-bold severity-label w-100