From a37d82185e0fa25189a66adaf363994b3e005270 Mon Sep 17 00:00:00 2001 From: purple Date: Fri, 28 Apr 2023 14:44:23 +0200 Subject: [PATCH] Remove basic user-side extension support until I'm happy with the result. --- .../Helpers/BlueprintExtensionLibrary.php | 2 + .../scripts/components/NavigationBar.tsx.bak | 99 ------------------- 2 files changed, 2 insertions(+), 99 deletions(-) delete mode 100644 resources/scripts/components/NavigationBar.tsx.bak diff --git a/app/Services/Helpers/BlueprintExtensionLibrary.php b/app/Services/Helpers/BlueprintExtensionLibrary.php index dc01f6b..862ea4a 100644 --- a/app/Services/Helpers/BlueprintExtensionLibrary.php +++ b/app/Services/Helpers/BlueprintExtensionLibrary.php @@ -19,6 +19,7 @@ class BlueprintExtensionLibrary ) { } + /* | Databasing | @@ -33,6 +34,7 @@ class BlueprintExtensionLibrary return $this->settings->set($table."::".$record, $value); } + /* | Notifications | diff --git a/resources/scripts/components/NavigationBar.tsx.bak b/resources/scripts/components/NavigationBar.tsx.bak deleted file mode 100644 index 749a7c1..0000000 --- a/resources/scripts/components/NavigationBar.tsx.bak +++ /dev/null @@ -1,99 +0,0 @@ -import * as React from 'react'; -import { useState } from 'react'; -import { Link, NavLink } from 'react-router-dom'; -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; -import { faCogs, faLayerGroup, faSignOutAlt, faEllipsis } from '@fortawesome/free-solid-svg-icons'; -import { useStoreState } from 'easy-peasy'; -import { ApplicationStore } from '@/state'; -import SearchContainer from '@/components/dashboard/search/SearchContainer'; -import tw, { theme } from 'twin.macro'; -import styled from 'styled-components/macro'; -import http from '@/api/http'; -import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; -import Tooltip from '@/components/elements/tooltip/Tooltip'; -import Avatar from '@/components/Avatar'; - -const RightNavigation = styled.div` - & > a, - & > button, - & > .navigation-link { - ${tw`flex items-center h-full no-underline text-neutral-300 px-6 cursor-pointer transition-all duration-150`}; - - &:active, - &:hover { - ${tw`text-neutral-100 bg-black`}; - } - - &:active, - &:hover, - &.active { - box-shadow: inset 0 -2px ${theme`colors.cyan.600`.toString()}; - } - } -`; - -export default () => { - const name = useStoreState((state: ApplicationStore) => state.settings.data!.name); - const rootAdmin = useStoreState((state: ApplicationStore) => state.user.data!.rootAdmin); - const [isLoggingOut, setIsLoggingOut] = useState(false); - - const onTriggerLogout = () => { - setIsLoggingOut(true); - http.post('/auth/logout').finally(() => { - // @ts-expect-error this is valid - window.location = '/'; - }); - }; - - return ( -
- -
-
- - {name} - -
- - - - - - - - {rootAdmin && ( - - - - - - )} - - - - - - - - - - - - - - - - - - -
-
- ); -}; \ No newline at end of file