generated from partypages/party-template
This commit is contained in:
parent
06e208a84a
commit
cada41af2a
@ -14,7 +14,7 @@ steps:
|
|||||||
ssh_key:
|
ssh_key:
|
||||||
from_secret: rsync_key
|
from_secret: rsync_key
|
||||||
source: build/
|
source: build/
|
||||||
destination: pelipper@oreburgh.leafbla.de:/srv/docker/party/nginx/html/${DRONE_REPO_NAME}/
|
destination: pelipper@oreburgh.leafbla.de:/srv/docker/party/nginx/html/sugar/
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
16694
package-lock.json
generated
16694
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
|||||||
import { APIEndPoint, PartyStatus, SelfStatus, UpdatableSelfStatus } from "./PartyContext";
|
import { APIEndPoint, PartyStatus, SelfStatus, UpdatableSelfStatus } from "./PartyContext";
|
||||||
|
|
||||||
export const parseURI = (uri: string): APIEndPoint | undefined => {
|
export const parseURI = (uri: string): APIEndPoint | undefined => {
|
||||||
const x = uri.match(/https?:\/\/(?<partyName>.+)\.party\.leafbla\.de\/(?<token>.+)/);
|
const x = uri.match(/https?:\/\/(?<partyName>\w+)\.(?<host>.+)\/(?<token>.+)/);
|
||||||
if (x === null || x.groups === undefined) return;
|
if (x === null || x.groups === undefined) return;
|
||||||
const partyName = x.groups["partyName"];
|
const partyName = x.groups["partyName"];
|
||||||
const token = x.groups["token"];
|
const token = x.groups["token"];
|
||||||
|
Loading…
Reference in New Issue
Block a user