-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev rebase web-version lint-fix build fixes create projects obs editor v1 resource modules popup fixed download resources minor fixes Fix/env fixed dev (#36) * conditionally loading supabase * loading projects * minor fixes * lint fixes --------- Co-authored-by: Kalisa <[email protected]>
- Loading branch information
Showing
140 changed files
with
12,284 additions
and
7,280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// import i18n from '../src/translations/i18n'; | ||
import '../styles/nprogress.css'; | ||
|
||
export default function Head() { | ||
return ( | ||
<> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta charSet="utf-8" /> | ||
<link rel="icon" href="/favicon.ico" sizes="any" /> | ||
<title>Scribe Scripture editor</title> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
'use client'; | ||
|
||
import PropTypes from 'prop-types'; | ||
import SubMenuBar from '@/layouts/editor/SubMenuBar'; | ||
import MenuBar from '@/layouts/editor/WebMenuBar'; | ||
|
||
export default function EditorLayout(props) { | ||
const { children } = props; | ||
|
||
return ( | ||
<> | ||
<MenuBar /> | ||
<SubMenuBar /> | ||
|
||
<main className="bg-gray-50-x">{children}</main> | ||
</> | ||
); | ||
} | ||
|
||
EditorLayout.propTypes = { | ||
children: PropTypes.any, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
'use client'; | ||
|
||
import SectionContainer from '@/layouts/editor/WebSectionContainer'; | ||
import ProtectedRoute from '@/components/Protected'; | ||
|
||
export default function page() { | ||
return ( | ||
<ProtectedRoute> | ||
<SectionContainer /> | ||
</ProtectedRoute> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Providers } from './providers'; | ||
import '../styles/nprogress.css'; | ||
import '../styles/globals.css'; | ||
// import { initializeParse } from '@parse/react-ssr'; | ||
import 'usfm-editor/dist/style.css'; | ||
import '../styles/style-override.lazy.css'; | ||
|
||
export default function RootLayout({ children }) { | ||
return ( | ||
<html lang="en"> | ||
<Providers> | ||
<body>{children}</body> | ||
</Providers> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import LoadingScreen from '@/components/Loading/LoadingScreen'; | ||
|
||
const Loading = () => ( | ||
<LoadingScreen /> | ||
); | ||
|
||
export default Loading; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import WebLogin from '@/components/Login/WebLogin'; | ||
|
||
const login = () => <WebLogin />; | ||
|
||
export default login; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import ProtectedRoute from '@/components/Protected'; | ||
import NewWebProject from '@/modules/projects/NewWebProject'; | ||
|
||
const newproject = () => ( | ||
<ProtectedRoute> | ||
<NewWebProject call="new" /> | ||
</ProtectedRoute> | ||
); | ||
|
||
export default newproject; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import WebHome from '../renderer/src/WebHome'; | ||
|
||
const index = () => ( | ||
<WebHome /> | ||
); | ||
|
||
export default index; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
// import Profile from '@/modules/projects/Profile'; | ||
import ProtectedRoute from '@/components/Protected'; | ||
|
||
const ProfilePage = () => ( | ||
<ProtectedRoute> | ||
Profile page | ||
{/* <Profile /> */} | ||
</ProtectedRoute> | ||
); | ||
|
||
export default ProfilePage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import ProjectList from '@/modules/projects/WebProjectList'; | ||
import ProtectedRoute from '@/components/Protected'; | ||
|
||
const projects = () => ( | ||
<ProtectedRoute> | ||
<ProjectList /> | ||
</ProtectedRoute> | ||
); | ||
|
||
export default projects; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
'use client'; | ||
|
||
import SyncContextProvider from '@/components/Sync/SyncContextProvider'; | ||
import ScribexContextProvider from '@/components/context/ScribexContext'; | ||
import ProjectContextProvider from '../renderer/src/components/context/ProjectContext'; | ||
import ReferenceContextProvider from '../renderer/src/components/context/ReferenceContext'; | ||
import AuthenticationContextProvider from '../renderer/src/components/Login/AuthenticationContextProvider'; | ||
import AutographaContextProvider from '../renderer/src/components/context/AutographaContext'; | ||
|
||
export function Providers({ children }) { | ||
return ( | ||
<AuthenticationContextProvider> | ||
<ProjectContextProvider> | ||
<ReferenceContextProvider> | ||
<AutographaContextProvider> | ||
<ScribexContextProvider> | ||
<SyncContextProvider> | ||
{children} | ||
</SyncContextProvider> | ||
</ScribexContextProvider> | ||
</AutographaContextProvider> | ||
</ReferenceContextProvider> | ||
</ProjectContextProvider> | ||
</AuthenticationContextProvider> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
// import SectionPlaceholder1 from '../../renderer/src/layouts/editor/SectionPlaceholder1'; | ||
// import SectionPlaceholder2 from '../../renderer/src/layouts/editor/SectionPlaceholder2'; | ||
|
||
const Page = () => ( | ||
<div className="grid grid-flow-col auto-cols-fr m-3 gap-2"> | ||
{/* <SectionPlaceholder1 editor="textStories" /> | ||
<SectionPlaceholder2 editor="textStories" /> */} | ||
</div> | ||
); | ||
|
||
export default Page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* eslint-disable no-tabs */ | ||
import SignupPage from '@/components/Signup/WebSignup'; | ||
|
||
function Page() { | ||
return <SignupPage />; | ||
} | ||
|
||
export default Page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import ProtectedRoute from '@/components/Protected'; | ||
// import Sync from '@/modules/projects/Sync'; | ||
|
||
const sync = () => ( | ||
<ProtectedRoute> | ||
Sync page | ||
{/* <Sync /> */} | ||
</ProtectedRoute> | ||
); | ||
|
||
export default sync; |
Oops, something went wrong.