Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting @faustjs as framework name #319

Merged
merged 2 commits into from
Jun 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/next/getting-started/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />
4 changes: 2 additions & 2 deletions examples/next/getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"wpe-build": "next build"
},
"dependencies": {
"@wpengine/headless-core": "^0.7.0",
"@wpengine/headless-next": "^0.7.0",
"@faustjs/core": "^0.7.0",
"@faustjs/next": "^0.7.0",
"next": "^11.0.0",
"normalize.css": "^8.0.1",
"react": "^17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/next/getting-started/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* GQLESS: You can safely modify this file and Query Fetcher based on your needs
*/
import type { IncomingMessage } from 'http';
import { getClient } from '@wpengine/headless-next';
import { getClient } from '@faustjs/next';
import {
generatedSchema,
scalarsEnumsHash,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Link from 'next/link';
import { WPPageInfo } from '@wpengine/headless-core';
import { WPPageInfo } from '@faustjs/core';

interface NextPageNavigationProps {
href: string;
Expand Down
2 changes: 1 addition & 1 deletion examples/next/getting-started/src/pages/[...pageUri].tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getNextStaticProps, is404 } from '@wpengine/headless-next';
import { getNextStaticProps, is404 } from '@faustjs/next';
import { Footer, Header, Hero } from 'components';
import { GetStaticPropsContext } from 'next';
import Head from 'next/head';
Expand Down
4 changes: 2 additions & 2 deletions examples/next/getting-started/src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { headlessConfig } from '@wpengine/headless-core';
import { HeadlessProvider } from '@wpengine/headless-next';
import { headlessConfig } from '@faustjs/core';
import { HeadlessProvider } from '@faustjs/next';
import 'normalize.css/normalize.css';
import React from 'react';
import 'scss/main.scss';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { authorizeHandler } from '@wpengine/headless-core';
import { authorizeHandler } from '@faustjs/core';

export default authorizeHandler;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GetStaticPropsContext } from 'next';
import Page from 'pages/category/[categorySlug]';
import { getNextStaticProps } from '@wpengine/headless-next';
import { getNextStaticProps } from '@faustjs/next';
import { client } from 'client';

export default Page;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getNextStaticProps, is404 } from '@wpengine/headless-next';
import { getNextStaticProps, is404 } from '@faustjs/next';
import Head from 'next/head';
import { Header, Footer, Posts, Pagination } from 'components';
import { GetStaticPropsContext } from 'next';
Expand Down
2 changes: 1 addition & 1 deletion examples/next/getting-started/src/pages/custom-page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getNextStaticProps } from '@wpengine/headless-next';
import { getNextStaticProps } from '@faustjs/next';
import { client } from 'client';
import { Footer, Header, Hero } from 'components';
import { GetStaticPropsContext } from 'next';
Expand Down
2 changes: 1 addition & 1 deletion examples/next/getting-started/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getNextStaticProps } from '@wpengine/headless-next';
import { getNextStaticProps } from '@faustjs/next';

import { GetStaticPropsContext } from 'next';
import Head from 'next/head';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getNextStaticProps } from '@wpengine/headless-next';
import { getNextStaticProps } from '@faustjs/next';
import { GetStaticPropsContext } from 'next';
import Page from '..';
import { client } from 'client';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getNextStaticProps, is404 } from '@wpengine/headless-next';
import { getNextStaticProps, is404 } from '@faustjs/next';
import { client, Post } from 'client';
import { Footer, Header, Hero } from 'components';
import { GetStaticPropsContext } from 'next';
Expand Down
2 changes: 1 addition & 1 deletion examples/next/getting-started/src/pages/posts/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getNextStaticProps } from '@wpengine/headless-next';
import { getNextStaticProps } from '@faustjs/next';
import { client, OrderEnum, PostObjectsConnectionOrderbyEnum } from 'client';
import { Footer, Header, Pagination, Posts } from 'components';
import { GetStaticPropsContext } from 'next';
Expand Down
2 changes: 1 addition & 1 deletion examples/next/getting-started/src/pages/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useRouter } from "next/router";
import { PageComponent } from "./[...pageUri]";
import type { Page, Post } from "@wpengine/headless-core";
import type { Page, Post } from "@faustjs/core";
import { PostComponent } from "./posts/[postSlug]";
import { client } from 'client';

Expand Down
4 changes: 2 additions & 2 deletions examples/react/getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"@types/react": "^17.0.11",
"@types/react-dom": "^17.0.8",
"@types/react-router-dom": "^5.1.7",
"@wpengine/headless-core": "^0.7.0",
"@wpengine/headless-react": "^0.7.0",
"@faustjs/core": "^0.7.0",
"@faustjs/react": "^0.7.0",
"dotenv": "^10.0.0",
"express": "^4.17.1",
"normalize.css": "^8.0.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/getting-started/server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require('dotenv').config();
const express = require('express');
const app = express();
const { authorizeHandler, headlessConfig } = require('@wpengine/headless-core');
const { authorizeHandler, headlessConfig } = require('@faustjs/core');
const port = 5000;

headlessConfig({
Expand Down
2 changes: 1 addition & 1 deletion examples/react/getting-started/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* GQLESS: You can safely modify this file and Query Fetcher based on your needs
*/
import type { IncomingMessage } from 'http';
import { getClient } from '@wpengine/headless-react';
import { getClient } from '@faustjs/react';
import {
generatedSchema,
scalarsEnumsHash,
Expand Down
2 changes: 1 addition & 1 deletion examples/react/getting-started/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { headlessConfig } from '@wpengine/headless-core';
import { headlessConfig } from '@faustjs/core';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
Expand Down
2 changes: 1 addition & 1 deletion examples/react/getting-started/src/pages/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ensureAuthorization } from '@wpengine/headless-core';
import { ensureAuthorization } from '@faustjs/core';
import {
client,
Page as PageType,
Expand Down
Loading