diff --git a/.templatesyncignore b/.templatesyncignore index 4a49ade..9b7d3ce 100644 --- a/.templatesyncignore +++ b/.templatesyncignore @@ -6,3 +6,9 @@ package-lock.json src/config .github/workflows + +index.html +package.json +src/layouts/paperbase/Header.jsx +tsconfig.app.tsbuildinfo +tsconfig.node.tsbuildinfo diff --git a/index.html b/index.html index fa8d52d..b6336a6 100644 --- a/index.html +++ b/index.html @@ -30,7 +30,7 @@ sizes="180x180" /> - Recipes + Appelent Template
diff --git a/src/App.tsx b/src/App.tsx index ec020f0..853a732 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,40 +1,21 @@ import ScrollToTop from '@/components/default/scroll-to-top'; import '@/config/firebase'; -import { db } from '@/config/firebase'; import routes from '@/config/routes'; import { FirebaseAuthProvider } from '@/libs/auth'; -import FirestoreDataSource from '@/libs/data-sources/data-sources/FirestoreDataSource'; import LocalStorageDataSource from '@/libs/data-sources/data-sources/LocalStorageDataSource'; -import { recipeYupSchema } from '@/schemas/recipe'; import theme from '@/theme/paperbase/theme'; import './App.css'; import config from './config'; import { getPath } from './config/paths'; import Dashboard from './Dashboard'; -import { Recipe } from './schemas/recipe'; const firebaseProvider = new FirebaseAuthProvider({ login: getPath('login').to, logout: '/logout', }); -const devFilter = import.meta.env.DEV ? 'ja' : 'ZMG16rhpzbdKd8LXUIiNOD7Jul23'; - const dataSources = { - recipes: new FirestoreDataSource( - { - target: 'recipes', - targetMode: 'collection', - YupValidationSchema: recipeYupSchema, - subscribe: true, - targetFilter: { - filters: [{ field: 'owner', operator: '!=', value: devFilter }], - orderBy: [{ field: 'name', direction: 'asc' }], - }, - }, - { db } - ), settings: new LocalStorageDataSource({ target: 'settings', targetMode: 'document' }), }; diff --git a/src/layouts/paperbase/Navigator.jsx b/src/layouts/paperbase/Navigator.jsx index 875ee5c..a9d4370 100644 --- a/src/layouts/paperbase/Navigator.jsx +++ b/src/layouts/paperbase/Navigator.jsx @@ -82,7 +82,6 @@ export default function Navigator(props) { mainItems.reduce((acc, { id, collapsed }) => ({ ...acc, [id]: collapsed ?? false }), {}) ); - console.log(open); const title = config?.meta?.title; const { t } = useTranslation(); @@ -119,16 +118,16 @@ export default function Navigator(props) { key={id} sx={{ bgcolor: '#101F33' }} > - handleClick(id)} > {translationKey ? t(translationKey, { defaultValue: label }) : label} {open[id] ? : } - + - +