Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from OnrampLab/issue-1-ivr-settings-page
Browse files Browse the repository at this point in the history
Issue 1 ivr settings page
  • Loading branch information
moon-brillar authored Oct 18, 2019
2 parents 3dca67f + 7c1fefd commit df93c8e
Show file tree
Hide file tree
Showing 29 changed files with 1,932 additions and 1,200 deletions.
3 changes: 1 addition & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"presets": [
"next/babel",
"@zeit/next-typescript/babel"
"next/babel"
],
"plugins": [
[
Expand Down
2 changes: 2 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
2 changes: 0 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const withPlugins = require('next-compose-plugins');

const withTypescript = require('@zeit/next-typescript');
const withCSS = require('@zeit/next-css');
const withSass = require('@zeit/next-sass');
const withLess = require('@zeit/next-less');
Expand Down Expand Up @@ -45,7 +44,6 @@ const nextConfig = {

module.exports = withConfig(withPlugins(
[
[withTypescript],
[withCSS],
[withSass],
[withLess],
Expand Down
19 changes: 9 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,23 @@
"@zeit/next-css": "^1.0.1",
"@zeit/next-less": "1.0.2-canary.2",
"@zeit/next-sass": "^1.0.1",
"@zeit/next-typescript": "^1.1.1",
"antd": "3.23.3",
"awesome-typescript-loader": "^5.2.1",
"cssnano": "^4.1.10",
"date-fns": "^1.30.1",
"isomorphic-unfetch": "^3.0.0",
"next": "^8.1.0",
"next": "^9.0.7",
"next-compose-plugins": "^2.2.0",
"next-redux-wrapper": "^2.1.0",
"next-redux-wrapper": "^4.0.0",
"next-routes": "^1.4.2",
"next-runtime-dotenv": "^1.1.1",
"next-runtime-dotenv": "^1.2.0",
"nock": "^10.0.6",
"node-sass": "^4.12.0",
"nprogress": "^0.2.0",
"postcss-easy-import": "^3.0.0",
"query-string": "^6.7.0",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"react": "^16.10.1",
"react-dom": "^16.10.1",
"react-feather": "^1.1.6",
"react-no-ssr": "^1.1.0",
"react-redux": "^7.1.0",
Expand All @@ -53,13 +52,13 @@
"@types/enzyme-adapter-react-16": "^1.0.5",
"@types/jest": "^24.0.12",
"@types/lodash": "^4.14.138",
"@types/next": "^8.0.5",
"@types/next": "^8.0.6",
"@types/next-redux-wrapper": "^2.0.2",
"@types/node": "^12.0.8",
"@types/nprogress": "^0.2.0",
"@types/react": "^16.9.2",
"@types/react-dom": "^16.9.0",
"@types/react-redux": "^7.1.0",
"@types/react": "^16.9.4",
"@types/react-dom": "^16.9.1",
"@types/react-redux": "^7.1.4",
"@types/redux-mock-store": "^1.0.1",
"@types/styled-components": "^4.1.16",
"@typescript-eslint/eslint-plugin": "^2.3.0",
Expand Down
3 changes: 0 additions & 3 deletions pages/ivr/message-settings.tsx

This file was deleted.

3 changes: 3 additions & 0 deletions pages/ivr/settings.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { SettingsPage } from '@onr/ivr';

export default SettingsPage;
9 changes: 5 additions & 4 deletions src/app/components/MyApp.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '../../assets/styles.less';
import '../../assets/tailwind-extension.css';

import App, { Container, NextAppContext } from 'next/app';
import App, { NextAppContext } from 'next/app';
import React from 'react';
import { Provider } from 'react-redux';
import withRedux from 'next-redux-wrapper';
Expand Down Expand Up @@ -40,8 +40,9 @@ export class AppComponent extends App<any> {
const { Component, pageProps, store } = this.props;

return (
<Container>
<>
<GlobalStyles />

<Head>
<meta
name="viewport"
Expand All @@ -50,7 +51,7 @@ export class AppComponent extends App<any> {
<meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<link rel="shortcut icon" href="/static/images/triangle.png" />
<title>Next Starter</title>
<title>Ava</title>
<link
href="https://fonts.googleapis.com/css?family=Anonymous+Pro:400,700"
rel="stylesheet"
Expand All @@ -64,7 +65,7 @@ export class AppComponent extends App<any> {
<Component {...pageProps} />
</Page>
</Provider>
</Container>
</>
);
}
}
Expand Down
32 changes: 16 additions & 16 deletions src/app/configs/menuItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@ export const menuItems: MenuItem[] = [
name: 'Home',
icon: <Home strokeWidth={1} size={16} />,
},
{
name: 'Demo',
icon: <MessageCircle strokeWidth={1} size={16} />,
children: [
{
path: '/demo/planet',
name: 'Daily Planet',
},
{
path: '/demo/mars',
name: 'Mars Photos',
},
],
},
// {
// name: 'Demo',
// icon: <MessageCircle strokeWidth={1} size={16} />,
// children: [
// {
// path: '/demo/planet',
// name: 'Daily Planet',
// },
// {
// path: '/demo/mars',
// name: 'Mars Photos',
// },
// ],
// },
{
name: 'IVR',
icon: <PhoneCall strokeWidth={1} size={16} />,
children: [
{
path: '/ivr/message-settings',
name: 'Message Settings',
path: '/ivr/settings',
name: 'Settings',
},
],
},
Expand Down
6 changes: 3 additions & 3 deletions src/modules/core/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Avatar, Layout, Menu } from 'antd';
import { BarChart, ChevronsDown, Settings, Triangle } from 'react-feather';
import { BarChart, ChevronsDown, Settings, PhoneCall } from 'react-feather';
import Link from 'next/link';
import { connect } from 'react-redux';
import { bindActionCreators, Dispatch } from 'redux';
Expand All @@ -24,8 +24,8 @@ const MainHeader = (props: IWrapperPage.IProps) => {
)}
<Link href="/">
<a className="brand">
<Triangle size={24} strokeWidth={1} />
<strong className="mx-1 text-black">{state.name}</strong>
<PhoneCall size={20} strokeWidth={1} />
<strong className="mx-3 text-black">{state.name}</strong>
</a>
</Link>

Expand Down
10 changes: 5 additions & 5 deletions src/modules/core/components/SidebarMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
Switch,
Tooltip,
} from 'antd';
import { Book, LogOut, Triangle } from 'react-feather';
import { Book, LogOut, PhoneCall } from 'react-feather';
import * as React from 'react';
import { withRouter, WithRouterProps } from 'next/router';
import Link from 'next/link';
Expand Down Expand Up @@ -110,7 +110,7 @@ const SidebarContent = (props: ISidebarMenuProps) => {
if (state.mobile) setMobileDrawer();
}}
>
<Link href={route.path} prefetch>
<Link href={route.path}>
<a>
{sidebarIcons && <span className="anticon">{route.icon}</span>}
<span className="mr-auto">{capitalize(route.name)}</span>
Expand Down Expand Up @@ -139,7 +139,7 @@ const SidebarContent = (props: ISidebarMenuProps) => {
if (state.mobile) setMobileDrawer();
}}
>
<Link href={`${subitem.path ? subitem.path : ''}`} prefetch>
<Link href={`${subitem.path ? subitem.path : ''}`}>
<a>
<span className="mr-auto">{capitalize(subitem.name)}</span>
</a>
Expand Down Expand Up @@ -245,9 +245,9 @@ const SidebarContent = (props: ISidebarMenuProps) => {
<Header>
<Link href="/">
<a className="brand">
<Triangle size={24} strokeWidth={1} />
<PhoneCall size={24} strokeWidth={1} />
<strong
className="mx-1"
className="mx-3"
style={{
display: 'inline',
}}
Expand Down
3 changes: 1 addition & 2 deletions src/modules/core/redux/reducers/wrapperReducer.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { ActionConsts } from '../actions/ActionConsts';

import { IAction, IWrapperPage, IStore } from '@onr/core';

const INITIAL_STATE: IWrapperPage.IStateProps = {
version: 1,
name: 'Next Starter',
name: 'Ava',
mobile: false,
boxed: false,
darkSidebar: false,
Expand Down
1 change: 0 additions & 1 deletion src/modules/ivr/components/index.ts

This file was deleted.

Loading

0 comments on commit df93c8e

Please sign in to comment.