mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-10-10 00:53:06 +02:00
docs blog consts
This commit is contained in:
@@ -228,7 +228,7 @@ page CheckoutPage {
|
|||||||
route AdminRoute { path: "/admin", to: DashboardPage }
|
route AdminRoute { path: "/admin", to: DashboardPage }
|
||||||
page DashboardPage {
|
page DashboardPage {
|
||||||
authRequired: true,
|
authRequired: true,
|
||||||
component: import Dashboard from "@client/admin/pages/Dashboard/Ecommerce"
|
component: import Dashboard from "@client/admin/pages/DashboardPage"
|
||||||
}
|
}
|
||||||
|
|
||||||
route AdminUsersRoute { path: "/admin/users", to: AdminUsersPage }
|
route AdminUsersRoute { path: "/admin/users", to: AdminUsersPage }
|
||||||
|
@@ -1,16 +1,16 @@
|
|||||||
import TotalSignupsCard from '../../components/TotalSignupsCard';
|
import TotalSignupsCard from '../components/TotalSignupsCard';
|
||||||
import TotalPageViewsCard from '../../components/TotalPaidViewsCard';
|
import TotalPageViewsCard from '../components/TotalPaidViewsCard';
|
||||||
import TotalPayingUsersCard from '../../components/TotalPayingUsersCard';
|
import TotalPayingUsersCard from '../components/TotalPayingUsersCard';
|
||||||
import TotalRevenueCard from '../../components/TotalRevenueCard';
|
import TotalRevenueCard from '../components/TotalRevenueCard';
|
||||||
import RevenueAndProfitChart from '../../components/RevenueAndProfitChart';
|
import RevenueAndProfitChart from '../components/RevenueAndProfitChart';
|
||||||
import SourcesTable from '../../components/SourcesTable';
|
import SourcesTable from '../components/SourcesTable';
|
||||||
import DefaultLayout from '../../layout/DefaultLayout';
|
import DefaultLayout from '../layout/DefaultLayout';
|
||||||
import { useQuery } from '@wasp/queries';
|
import { useQuery } from '@wasp/queries';
|
||||||
import getDailyStats from '@wasp/queries/getDailyStats';
|
import getDailyStats from '@wasp/queries/getDailyStats';
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
import type { User } from '@wasp/entities';
|
import type { User } from '@wasp/entities';
|
||||||
|
|
||||||
const Ecommerce = ({ user} : { user: User }) => {
|
const Dashboard = ({ user }: { user: User }) => {
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
if (!user.isAdmin) {
|
if (!user.isAdmin) {
|
||||||
history.push('/');
|
history.push('/');
|
||||||
@@ -41,4 +41,4 @@ const Ecommerce = ({ user} : { user: User }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Ecommerce;
|
export default Dashboard;
|
@@ -4,11 +4,12 @@ import { HiBars3 } from 'react-icons/hi2';
|
|||||||
import useAuth from '@wasp/auth/useAuth';
|
import useAuth from '@wasp/auth/useAuth';
|
||||||
import logo from '../static/logo.png';
|
import logo from '../static/logo.png';
|
||||||
import DropdownUser from './DropdownUser';
|
import DropdownUser from './DropdownUser';
|
||||||
|
import { DOCS_URL, BLOG_URL } from '@wasp/shared/constants';
|
||||||
|
|
||||||
const navigation = [
|
const navigation = [
|
||||||
{ name: 'GPT Wrapper', href: '/gpt' },
|
{ name: 'GPT Wrapper', href: '/gpt' },
|
||||||
{ name: 'Documentation', href: '#' }, // TODO: add link to docs
|
{ name: 'Documentation', href: DOCS_URL },
|
||||||
{ name: 'Blog', href: '#' }, // TODO: add link to blog
|
{ name: 'Blog', href: BLOG_URL },
|
||||||
];
|
];
|
||||||
|
|
||||||
export default function AppNavBar() {
|
export default function AppNavBar() {
|
||||||
|
@@ -11,7 +11,7 @@ import useAuth from '@wasp/auth/useAuth';
|
|||||||
import DropdownUser from '../components/DropdownUser';
|
import DropdownUser from '../components/DropdownUser';
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
import stripePayment from '@wasp/actions/stripePayment';
|
import stripePayment from '@wasp/actions/stripePayment';
|
||||||
import { STRIPE_CUSTOMER_PORTAL_LINK } from '@wasp/shared/constants';
|
import { DOCS_URL, BLOG_URL, STRIPE_CUSTOMER_PORTAL_LINK } from '@wasp/shared/constants';
|
||||||
import { UserMenuItems } from '../components/UserMenuItems';
|
import { UserMenuItems } from '../components/UserMenuItems';
|
||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
import { TierIds } from '@wasp/shared/constants';
|
import { TierIds, DOCS_URL, BLOG_URL } from '@wasp/shared/constants';
|
||||||
|
|
||||||
export const navigation = [
|
export const navigation = [
|
||||||
{ name: 'Features', href: '#features' },
|
{ name: 'Features', href: '#features' },
|
||||||
{ name: 'Pricing', href: '#pricing' },
|
{ name: 'Pricing', href: '#pricing' },
|
||||||
{ name: 'Documentation', href: '#' },
|
{ name: 'Documentation', href: DOCS_URL },
|
||||||
{ name: 'Blog', href: '#' },
|
{ name: 'Blog', href: BLOG_URL },
|
||||||
];
|
];
|
||||||
export const features = [
|
export const features = [
|
||||||
{
|
{
|
||||||
|
@@ -4,6 +4,9 @@ export enum TierIds {
|
|||||||
ENTERPRISE = 'enterprise-tier',
|
ENTERPRISE = 'enterprise-tier',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const DOCS_URL = 'https://open-saas-docs.netlify.app';
|
||||||
|
export const BLOG_URL = 'https://open-saas-blog.netlify.app/blog';
|
||||||
|
|
||||||
//get this link at https://dashboard.stripe.com/test/settings/billing/portal
|
//get this link at https://dashboard.stripe.com/test/settings/billing/portal
|
||||||
const isDev = process.env.NODE_ENV === 'development';
|
const isDev = process.env.NODE_ENV === 'development';
|
||||||
const customerPortalTestUrl = 'https://billing.stripe.com/p/login/test_8wM8x17JN7DT4zC000';
|
const customerPortalTestUrl = 'https://billing.stripe.com/p/login/test_8wM8x17JN7DT4zC000';
|
||||||
|
Reference in New Issue
Block a user