Skip to content

Commit

Permalink
fixes frontend to no longer have enterprise license
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahbenizzy committed May 4, 2024
1 parent 2bbca16 commit fdca68f
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 83 deletions.
6 changes: 5 additions & 1 deletion ui/backend/server/server/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
from ninja import NinjaAPI
from trackingserver_auth import api as auth_api
from trackingserver_base import api as base_api
from trackingserver_base.auth import propelauth

try:
from trackingserver_extensions import propelauth
except ImportError:
pass # this is just so we can allow enterprise mode to work
from trackingserver_base.auth.local import LocalAPIAuthenticator
from trackingserver_base.auth.testing import TestAPIAuthenticator
from trackingserver_projects import api as project_api
Expand Down
37 changes: 0 additions & 37 deletions ui/backend/server/trackingserver_auth/LICENSE

This file was deleted.

4 changes: 2 additions & 2 deletions ui/frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import { TaskRunOutlet } from "./components/dashboard/Runs/Task/TaskRunOutlet";
import { CodeOutlet } from "./components/dashboard/Code/CodeOutlet";
import { VisualizeOutlet } from "./components/dashboard/Visualize/VisualizeOutlet";
import Settings from "./components/dashboard/Settings/Settings";
import { UserContext } from "./ee/auth/Login";
import { LocalAccount } from "./ee/auth/LocalAccount";
import { UserContext } from "./auth/Login";
import { LocalAccount } from "./auth/LocalAccount";

export const FeedbackButton = (props: { userName: string }) => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useContext } from "react";
import { UserContext } from "./Login";
import { ProjectLogInstructions } from "../../components/dashboard/Project/ProjectLogInstructions";
import { ProjectLogInstructions } from "../components/dashboard/Project/ProjectLogInstructions";

export const LocalAccount = () => {
const localAccount = useContext(UserContext)?.username;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, createContext } from "react";
import { useLocalStorage } from "../../utils/localStorage";
import { useLocalStorage } from "../utils/localStorage";

type UserContextType = {
username: string;
Expand Down
37 changes: 0 additions & 37 deletions ui/frontend/src/ee/LICENSE

This file was deleted.

3 changes: 0 additions & 3 deletions ui/frontend/src/ee/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion ui/frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Loading } from "./components/common/Loading";
import { PostHogProvider } from "posthog-js/react";
import TimeAgo from "javascript-time-ago";
import en from "javascript-time-ago/locale/en.json";
import { LocalLoginProvider } from "./ee/auth/Login";
import { LocalLoginProvider } from "./auth/Login";

const posthogOptions = {
api_host: process.env.REACT_APP_PUBLIC_POSTHOG_HOST,
Expand Down

0 comments on commit fdca68f

Please sign in to comment.