Skip to content

Commit

Permalink
Merge pull request #142 from sevenxhq/development
Browse files Browse the repository at this point in the history
obs-web-version (#35)
  • Loading branch information
vipinpaul authored Sep 29, 2023
2 parents 6e1f10e + d849e77 commit 1ada3be
Show file tree
Hide file tree
Showing 140 changed files with 12,285 additions and 7,248 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ yarn-debug.log*
yarn-error.log*

# local env files

.env
.env.local
.env.development.local
.env.test.local
Expand Down
Binary file added app/favicon.ico
Binary file not shown.
13 changes: 13 additions & 0 deletions app/head.js
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>
</>
);
}
22 changes: 22 additions & 0 deletions app/home/layout.jsx
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,
};
12 changes: 12 additions & 0 deletions app/home/page.jsx
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>
);
}
16 changes: 16 additions & 0 deletions app/layout.js
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>
);
}
7 changes: 7 additions & 0 deletions app/loading.js
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;
5 changes: 5 additions & 0 deletions app/login/page.jsx
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;
10 changes: 10 additions & 0 deletions app/newproject/page.js
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;
7 changes: 7 additions & 0 deletions app/page.js
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;
12 changes: 12 additions & 0 deletions app/profile/page.js
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;
10 changes: 10 additions & 0 deletions app/projects/page.jsx
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;
26 changes: 26 additions & 0 deletions app/providers.js
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>
);
}
12 changes: 12 additions & 0 deletions app/resource/page.jsx
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;
8 changes: 8 additions & 0 deletions app/signup/page.jsx
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;
11 changes: 11 additions & 0 deletions app/sync/page.js
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;
Loading

0 comments on commit 1ada3be

Please sign in to comment.