Chungus 2.0

This commit is contained in:
Owen
2025-10-10 11:27:15 -07:00
parent f64a477c3d
commit d92b87b7c8
224 changed files with 1507 additions and 1586 deletions

View File

@@ -1,24 +0,0 @@
/*
* This file is part of a proprietary work.
*
* Copyright (c) 2025 Fossorial, Inc.
* All rights reserved.
*
* This file is licensed under the Fossorial Commercial License.
* You may not use this file except in compliance with the License.
* Unauthorized use, copying, modification, or distribution is strictly prohibited.
*
* This file is not licensed under the AGPLv3.
*/
import { GetRemoteExitNodeResponse } from "@server/routers/private/remoteExitNode";
import { createContext } from "react";
type RemoteExitNodeContextType = {
remoteExitNode: GetRemoteExitNodeResponse;
updateRemoteExitNode: (updatedRemoteExitNode: Partial<GetRemoteExitNodeResponse>) => void;
};
const RemoteExitNodeContext = createContext<RemoteExitNodeContextType | undefined>(undefined);
export default RemoteExitNodeContext;

View File

@@ -1,28 +0,0 @@
/*
* This file is part of a proprietary work.
*
* Copyright (c) 2025 Fossorial, Inc.
* All rights reserved.
*
* This file is licensed under the Fossorial Commercial License.
* You may not use this file except in compliance with the License.
* Unauthorized use, copying, modification, or distribution is strictly prohibited.
*
* This file is not licensed under the AGPLv3.
*/
import { GetOrgSubscriptionResponse } from "@server/routers/private/billing";
import { createContext } from "react";
type SubscriptionStatusContextType = {
subscriptionStatus: GetOrgSubscriptionResponse | null;
updateSubscriptionStatus: (updatedSite: GetOrgSubscriptionResponse) => void;
isActive: () => boolean;
getTier: () => string | null;
};
const PrivateSubscriptionStatusContext = createContext<
SubscriptionStatusContextType | undefined
>(undefined);
export default PrivateSubscriptionStatusContext;

View File

@@ -0,0 +1,11 @@
import { GetRemoteExitNodeResponse } from "#private/routers/remoteExitNode";
import { createContext } from "react";
type RemoteExitNodeContextType = {
remoteExitNode: GetRemoteExitNodeResponse;
updateRemoteExitNode: (updatedRemoteExitNode: Partial<GetRemoteExitNodeResponse>) => void;
};
const RemoteExitNodeContext = createContext<RemoteExitNodeContextType | undefined>(undefined);
export default RemoteExitNodeContext;

View File

@@ -0,0 +1,15 @@
import { GetOrgSubscriptionResponse } from "#private/routers/billing";
import { createContext } from "react";
type SubscriptionStatusContextType = {
subscriptionStatus: GetOrgSubscriptionResponse | null;
updateSubscriptionStatus: (updatedSite: GetOrgSubscriptionResponse) => void;
isActive: () => boolean;
getTier: () => string | null;
};
const SubscriptionStatusContext = createContext<
SubscriptionStatusContextType | undefined
>(undefined);
export default SubscriptionStatusContext;