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

Update/component library #386

Merged
merged 4 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"core": "WordPress/WordPress#tags/6.4.1",
"core": "WordPress/WordPress#tags/6.4.2",
"config": {
"WP_DEBUG": true,
"WP_DEBUG_LOG": true,
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
"newfold-labs/wp-module-ecommerce": "^1.3.12",
"newfold-labs/wp-module-global-ctb": "^1.0.9",
"newfold-labs/wp-module-loader": "^1.0.10",
"newfold-labs/wp-module-marketplace": "^2.1.0",
"newfold-labs/wp-module-marketplace": "^2.2.0",
"newfold-labs/wp-module-notifications": "^1.1.6",
"newfold-labs/wp-module-onboarding": "1.11.8",
"newfold-labs/wp-module-performance": "^1.2.2",
"newfold-labs/wp-module-performance": "^1.3.0",
"newfold-labs/wp-module-runtime": "^1.0.7",
"newfold-labs/wp-module-secure-passwords": "^1.1",
"newfold-labs/wp-module-sso": "^1.0.4",
Expand Down
26 changes: 13 additions & 13 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@heroicons/react": "^2.0.18",
"@newfold-labs/wp-module-ecommerce": "^1.3.12",
"@newfold-labs/wp-module-runtime": "^1.0.7",
"@newfold/ui-component-library": "^1.0.0",
"@newfold/ui-component-library": "^1.0.1",
"@reduxjs/toolkit": "^2.0.1",
"@wordpress/compose": "^6.24.0",
"@wordpress/dom-ready": "^3.47.0",
Expand Down
15 changes: 0 additions & 15 deletions src/app/components/page/index.js

This file was deleted.

94 changes: 0 additions & 94 deletions src/app/components/section/index.js

This file was deleted.

6 changes: 3 additions & 3 deletions src/app/pages/ecommerce/page.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Page } from "../../components/page"
import {NewfoldECommerce} from "@newfold-labs/wp-module-ecommerce";
import { Page } from "@newfold/ui-component-library";
import { NewfoldECommerce } from "@newfold-labs/wp-module-ecommerce";
import { useNavigate, useLocation, useSearchParams } from "react-router-dom";
import { useNotification } from "../../components/notifications/feed";
import AppStore from "../../data/store";
import {useContext } from "@wordpress/element";
import { useContext } from "@wordpress/element";
import { hostgatorSettingsApiFetch } from "../../util/helpers";
import "@newfold-labs/wp-module-ecommerce/hostgator.css";

Expand Down
22 changes: 13 additions & 9 deletions src/app/pages/help/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { Page } from '../../components/page';
import { SectionContainer, SectionContent, SectionHeader } from '../../components/section';
import help from '../../data/help';
import { getLinkPerRegion, supportsLinkPerRegion } from '../../util/helpers';
import { Button, Card, Title } from "@newfold/ui-component-library";
import {
Button,
Card,
Title,
Container,
Page
} from "@newfold/ui-component-library";

const HelpCard = ({ item }) => {
return (
Expand Down Expand Up @@ -46,17 +50,17 @@ const Help = () => {
};
return (
<Page className={"hgwp-app-help-page"}>
<SectionContainer className={'hgwp-app-help-container'}>
<SectionHeader
<Container className={'hgwp-app-help-container'}>
<Container.Header
title={__('Help', 'wp-plugin-hostgator')}
subTitle={__('We are available 24/7 to help answer questions and solve your problems.',
description={__('We are available 24/7 to help answer questions and solve your problems.',
'wp-plugin-hostgator')}
/>

<SectionContent>
<Container.Block>
{renderHelpCards()}
</SectionContent>
</SectionContainer>
</Container.Block>
</Container>
</Page>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/home/freeAddonsSection.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {FreePlugins} from "@newfold-labs/wp-module-ecommerce";
import { FreePlugins } from "@newfold-labs/wp-module-ecommerce";
import { useNotification } from "../../components/notifications/feed";

const FreePluginsSection = () => {
Expand Down
25 changes: 12 additions & 13 deletions src/app/pages/home/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Page } from '../../components/page';
import { SectionContainer, SectionHeader, SectionContent } from '../../components/section';
import { Container, Page } from "@newfold/ui-component-library";
import ComingSoon from '../settings/comingSoon';
import FreePluginsSection from './freeAddonsSection';
import SettingsSection from './settingsSection';
Expand All @@ -12,27 +11,27 @@ const Home = () => {
<Page title="Settings" className={"hgwp-app-home-page hgwp-home"}>
<WelcomeSection />
<FreePluginsSection />
<SectionContainer className={'hgwp-app-home-container'}>
<SectionHeader
<Container className={'hgwp-app-home-container'}>
<Container.Header
title={__('More', 'wp-plugin-hostgator')}
className={'hgwp-app-home-header display-none'}
/>
<SectionContent separator={true} className={'hgwp-app-home-coming-soon'}>
<Container.Block separator={true} className={'hgwp-app-home-coming-soon'}>
<ComingSoon />
</SectionContent>
</Container.Block>

<SectionContent separator={true} className={'hgwp-app-home-content'}>
<Container.Block separator={true} className={'hgwp-app-home-content'}>
<WebContentSection />
</SectionContent>
</Container.Block>

<SectionContent separator={true} className={'hgwp-app-home-settings'}>
<Container.Block separator={true} className={'hgwp-app-home-settings'}>
<SettingsSection />
</SectionContent>
</Container.Block>

<SectionContent separator={false} className={'hgwp-app-home-hosting'}>
<Container.Block separator={false} className={'hgwp-app-home-hosting'}>
<WebHostingSection />
</SectionContent>
</SectionContainer>
</Container.Block>
</Container>
</Page>
);
};
Expand Down
6 changes: 3 additions & 3 deletions src/app/pages/home/settingsSection.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import ActionField from "../../components/action-field";
import { SectionSettings } from "../../components/section";
import { Container } from "@newfold/ui-component-library";

const SettingsSection = () => {
return (
<SectionSettings
<Container.SettingsField
title={__('Settings and Performance', 'wp-plugin-hostgator')}
description={__('Customize & fine-tune your site.', 'wp-plugin-hostgator')}
>
Expand Down Expand Up @@ -35,7 +35,7 @@ const SettingsSection = () => {
{__('Add site services, themes or plugins from the marketplace.', 'wp-plugin-hostgator')}
</ActionField>
</div>
</SectionSettings >
</Container.SettingsField>
);
};

Expand Down
Loading
Loading