From 4b20ba2a64c940df746e5539c4c908def84ea446 Mon Sep 17 00:00:00 2001 From: Tomas Holub Date: Wed, 1 Aug 2018 16:31:31 +0200 Subject: [PATCH 1/3] Fake data prepared. List of pages displayed. Add, Edit and Delete actions handled. Dialog windows will be added later. --- .../admin/pages/components/PagesIndexPage.tsx | 242 +++++++++++++++++- 1 file changed, 240 insertions(+), 2 deletions(-) diff --git a/client/admin/pages/components/PagesIndexPage.tsx b/client/admin/pages/components/PagesIndexPage.tsx index ca7c82c..a343f34 100644 --- a/client/admin/pages/components/PagesIndexPage.tsx +++ b/client/admin/pages/components/PagesIndexPage.tsx @@ -1,8 +1,246 @@ import * as React from 'react'; import {WithAdminProps} from '@client/with/withAdmin'; +import {Button, Paper, Table, TableHead, TableRow, TableBody, TableCell} from '@material-ui/core'; + +enum PageFormat { + Text, + Html, + Markdown, +} + +// data related to each page +interface PageModel { + id: number; + title: string; + text: string; + format: PageFormat; + active: boolean; + publishDate?: Date; // can be null +} + +interface State { + pages: PageModel[]; + showAddDialog: boolean; + showEditDialog: boolean; + showDeleteDialog: boolean; + currentID: number; +} + +const defaultState = { + pages: [ + { + id: 1, + title: 'Home', + text: 'This is your home page', + format: PageFormat.Text, + active: true, + publishDate: new Date(2018, 12, 24), + }, + { + id: 2, + title: 'About', + text: 'This is your about page', + format: PageFormat.Html, + active: true, + }, + { + id: 3, + title: 'Markdown example', + text: 'This is your **markdown** example page', + format: PageFormat.Markdown, + active: true, + }, + { + id: 4, + title: 'Multiline', + text: 'This is your page\nwith several\nlines.', + format: PageFormat.Text, + active: true, + }, + { + id: 5, + title: 'Temp', + text: 'This is your temp page', + format: PageFormat.Text, + active: false, + }, + { + id: 6, + title: 'Temp', + text: 'This is your temp page', + format: PageFormat.Text, + active: false, + }, + { + id: 7, + title: 'Temp', + text: 'This is your temp page', + format: PageFormat.Text, + active: false, + }, + { + id: 8, + title: 'Temp', + text: 'This is your temp page', + format: PageFormat.Text, + active: false, + }, + { + id: 9, + title: 'Temp', + text: 'This is your temp page', + format: PageFormat.Text, + active: false, + }, + { + id: 10, + title: 'Temp', + text: 'This is your temp page', + format: PageFormat.Text, + active: false, + }, + { + id: 11, + title: 'Temp', + text: 'This is your temp page', + format: PageFormat.Text, + active: false, + }, + { + id: 12, + title: 'Temp', + text: 'This is your temp page', + format: PageFormat.Text, + active: false, + }, + { + id: 13, + title: 'Temp', + text: 'This is your temp page', + format: PageFormat.Text, + active: false, + }, + { + id: 14, + title: 'Temp', + text: 'This is your temp page', + format: PageFormat.Text, + active: false, + }, + { + id: 15, + title: 'Temp', + text: 'This is your temp page', + format: PageFormat.Text, + active: false, + }, + ], + showAddDialog: false, + showEditDialog: false, + showDeleteDialog: false, + currentID: -1, +}; + +export class PagesIndexPage extends React.Component { + readonly state = defaultState; + + handleOnAdd = () => { + // alert('ADD'); + this.hideAllDialogs(); + this.setState({ + showAddDialog: true, + }); + }; + + handleOnEdit = (id: number) => () => { + // alert(`EDIT: ${id}`); + this.hideAllDialogs(); + this.setState({ + showEditDialog: true, + currentID: id, + }); + }; + + handleOnDelete = (id: number) => () => { + // alert(`DEL: ${id}`); + this.hideAllDialogs(); + this.setState({ + showDeleteDialog: true, + currentID: id, + }); + }; + + hideAllDialogs = () => { + this.setState({ + showAddDialog: false, + showEditDialog: false, + showDeleteDialog: false, + }); + }; + + getReadablePageFormat = (format: PageFormat) => { + switch (format) { + case PageFormat.Text: + return 'Text'; + case PageFormat.Html: + return 'Html'; + case PageFormat.Markdown: + return 'Markdown'; + } + + return ''; + }; -export class PagesIndexPage extends React.Component { render() { - return
PagesIndexPage
; + const {showAddDialog, showEditDialog, showDeleteDialog, pages} = this.state; + + return ( +
+

Pages

+ {showAddDialog &&
ADD DIALOG
} + {showEditDialog &&
EDIT DIALOG
} + {showDeleteDialog &&
DELETE DIALOG
} +
+ +
+ + + + + ID + Title + Text + Format + Active + Publish Date + + + + + {pages.map((row) => ( + + {row.id} + {row.title} + {row.text} + {this.getReadablePageFormat(row.format)} + {row.active ? Y : N} + TODO: + + + + + + ))} + +
+
+
+ ); } } + +/* + {row.publishDate !== typeof('undefined') ? row.publishDate : ''} +*/ From bc8befdf206de51985223c845e73d76f99d57fbe Mon Sep 17 00:00:00 2001 From: Tomas Holub Date: Fri, 17 Aug 2018 21:04:51 +0200 Subject: [PATCH 2/3] Only return type of function changed --- client/admin/pages/components/PagesIndexPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/admin/pages/components/PagesIndexPage.tsx b/client/admin/pages/components/PagesIndexPage.tsx index a343f34..faac69b 100644 --- a/client/admin/pages/components/PagesIndexPage.tsx +++ b/client/admin/pages/components/PagesIndexPage.tsx @@ -178,7 +178,7 @@ export class PagesIndexPage extends React.Component { }); }; - getReadablePageFormat = (format: PageFormat) => { + getReadablePageFormat = (format: PageFormat): string => { switch (format) { case PageFormat.Text: return 'Text'; From e8fca139d5b1a8d40267102ee05a7b949adae77b Mon Sep 17 00:00:00 2001 From: Tomas Holub Date: Fri, 17 Aug 2018 21:08:54 +0200 Subject: [PATCH 3/3] Changes in package.json and package-lock.json --- package-lock.json | 216 +++++++++++++++++++++++----------------------- package.json | 2 +- 2 files changed, 109 insertions(+), 109 deletions(-) diff --git a/package-lock.json b/package-lock.json index dea7ab8..603e2f0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,17 +18,17 @@ } }, "@babel/core": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.0.0-beta.55.tgz", - "integrity": "sha1-nhfDS1rIVeQnyY9XCRWhf8xrq0o=", - "requires": { - "@babel/code-frame": "7.0.0-beta.55", - "@babel/generator": "7.0.0-beta.55", - "@babel/helpers": "7.0.0-beta.55", - "@babel/parser": "7.0.0-beta.55", - "@babel/template": "7.0.0-beta.55", - "@babel/traverse": "7.0.0-beta.55", - "@babel/types": "7.0.0-beta.55", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.0.0-beta.56.tgz", + "integrity": "sha512-IsytpdHZqo5pgJj4FTcpEMKmfXK9TdvThLZo4yUOjbuVZCy8NAwoeBnojvKCNf+139L7xNIIosp3RVA0cMkbOg==", + "requires": { + "@babel/code-frame": "7.0.0-beta.56", + "@babel/generator": "7.0.0-beta.56", + "@babel/helpers": "7.0.0-beta.56", + "@babel/parser": "7.0.0-beta.56", + "@babel/template": "7.0.0-beta.56", + "@babel/traverse": "7.0.0-beta.56", + "@babel/types": "7.0.0-beta.56", "convert-source-map": "^1.1.0", "debug": "^3.1.0", "json5": "^0.5.0", @@ -39,19 +39,19 @@ }, "dependencies": { "@babel/code-frame": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.55.tgz", - "integrity": "sha1-cfUw57AQr163p993UveJId1X6e4=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.56.tgz", + "integrity": "sha512-OBeGs8UXWpKl0oK2T5nUXNl2yu8RKxqL/7aUnMtKDXCU6VUrNP3npdrPivBA11HPB15TVI49nWf2lntTzoUuAg==", "requires": { - "@babel/highlight": "7.0.0-beta.55" + "@babel/highlight": "7.0.0-beta.56" } }, "@babel/generator": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.55.tgz", - "integrity": "sha1-jsERUtzDmLrjXdGBEicEQVw4OgE=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.56.tgz", + "integrity": "sha512-d+Ls/Vr5OU5FBDYQToXSqAluI3r2UaSoNZ41zD3sxdoVoaT8K5Bdh4So4eG4o//INGM7actValXGfb+5J1+r8w==", "requires": { - "@babel/types": "7.0.0-beta.55", + "@babel/types": "7.0.0-beta.56", "jsesc": "^2.5.1", "lodash": "^4.17.10", "source-map": "^0.5.0", @@ -59,35 +59,35 @@ } }, "@babel/helper-function-name": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.55.tgz", - "integrity": "sha1-FqqyE4Ci6rzuMyjSG5WGujQn2+8=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.56.tgz", + "integrity": "sha512-Lq4nPOt1j3sUq+1GVrw57dKq6wBKAHplGjYzEG8dkytqo93i6uSKKKg3smYXx2qohEVD5ciAyJjgRJq7RQu4Lg==", "requires": { - "@babel/helper-get-function-arity": "7.0.0-beta.55", - "@babel/template": "7.0.0-beta.55", - "@babel/types": "7.0.0-beta.55" + "@babel/helper-get-function-arity": "7.0.0-beta.56", + "@babel/template": "7.0.0-beta.56", + "@babel/types": "7.0.0-beta.56" } }, "@babel/helper-get-function-arity": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.55.tgz", - "integrity": "sha1-hVne2W7NO2JvnB9XSU7cT6PMapQ=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.56.tgz", + "integrity": "sha512-QU9EVlnDGTzBasgrdo/I4+RzZS7oqzz9YcetpYko3bp+VsRGokqsAQl3gIvxWTtxwibwboDEdBx+fGArtb2fhw==", "requires": { - "@babel/types": "7.0.0-beta.55" + "@babel/types": "7.0.0-beta.56" } }, "@babel/helper-split-export-declaration": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.55.tgz", - "integrity": "sha1-7LgHS/LSLGUYolIoJTXe8TeocE8=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.56.tgz", + "integrity": "sha512-j886mQJQg5HDF7X0qK/AfNdrpIYUcJHxRKwBJ9dUvhpO3eFqsTLbJJpitgLaJQjh9D7Db5Aiq8MRghj3+MH57g==", "requires": { - "@babel/types": "7.0.0-beta.55" + "@babel/types": "7.0.0-beta.56" } }, "@babel/highlight": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.55.tgz", - "integrity": "sha1-mIZTZH1inCYdrhVudNXwJSulIMA=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.56.tgz", + "integrity": "sha512-q4TfI+jJISul6vVpZJktzH4tupwRiVk6KXRhB8PHqJ7erl966I6ePDXl9mAbE8jMM7YswhnnB0j1SYP7LBVyhg==", "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -95,36 +95,36 @@ } }, "@babel/template": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.55.tgz", - "integrity": "sha1-xsqw4nIrpeM/4DQHO20xZzq6Mm4=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.56.tgz", + "integrity": "sha512-rsR9K18h0oiJTUmS/ICYREbV8qhPTic4SIqDSkzv9xOxupt7dKj8hWmZQLGPySO5x6cdn8py039o1wPQnsEGHg==", "requires": { - "@babel/code-frame": "7.0.0-beta.55", - "@babel/parser": "7.0.0-beta.55", - "@babel/types": "7.0.0-beta.55", + "@babel/code-frame": "7.0.0-beta.56", + "@babel/parser": "7.0.0-beta.56", + "@babel/types": "7.0.0-beta.56", "lodash": "^4.17.10" } }, "@babel/traverse": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.55.tgz", - "integrity": "sha1-UL5dD8xcxKwCCnsMUZvo2uNF1L4=", - "requires": { - "@babel/code-frame": "7.0.0-beta.55", - "@babel/generator": "7.0.0-beta.55", - "@babel/helper-function-name": "7.0.0-beta.55", - "@babel/helper-split-export-declaration": "7.0.0-beta.55", - "@babel/parser": "7.0.0-beta.55", - "@babel/types": "7.0.0-beta.55", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.56.tgz", + "integrity": "sha512-9WTqtKP2Ll+jG68r+JEecXAbdH/kk5inN1VDSDaTgdYtZ82BYUS9XRWMVpc5HB9LJsu2ZEyUA1cGybID7eeOXA==", + "requires": { + "@babel/code-frame": "7.0.0-beta.56", + "@babel/generator": "7.0.0-beta.56", + "@babel/helper-function-name": "7.0.0-beta.56", + "@babel/helper-split-export-declaration": "7.0.0-beta.56", + "@babel/parser": "7.0.0-beta.56", + "@babel/types": "7.0.0-beta.56", "debug": "^3.1.0", "globals": "^11.1.0", "lodash": "^4.17.10" } }, "@babel/types": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.55.tgz", - "integrity": "sha1-d1XJ0uWDFaZPBdjPMyI3m+FtkZk=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.56.tgz", + "integrity": "sha512-fRIBeHtKxAD3D1E7hYSpG4MnLt0AfzHHs5gfVclOB0NlfLu3qiWU/IqdbK2ixTK61424iEkV1P/VAzndx6ungA==", "requires": { "esutils": "^2.0.2", "lodash": "^4.17.10", @@ -322,29 +322,29 @@ } }, "@babel/helpers": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.0.0-beta.55.tgz", - "integrity": "sha1-0LS5oyfbpC1YiQAR3rkFyCBzlhc=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.0.0-beta.56.tgz", + "integrity": "sha512-KaNBuVlAGW6sFCEWjliN29dL8K4L/ff8ZUaR/D5ou/JsqOuxLRy34Rf8WXMru3Et2g4Czly6vJeSmaYyf3s0lA==", "requires": { - "@babel/template": "7.0.0-beta.55", - "@babel/traverse": "7.0.0-beta.55", - "@babel/types": "7.0.0-beta.55" + "@babel/template": "7.0.0-beta.56", + "@babel/traverse": "7.0.0-beta.56", + "@babel/types": "7.0.0-beta.56" }, "dependencies": { "@babel/code-frame": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.55.tgz", - "integrity": "sha1-cfUw57AQr163p993UveJId1X6e4=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.56.tgz", + "integrity": "sha512-OBeGs8UXWpKl0oK2T5nUXNl2yu8RKxqL/7aUnMtKDXCU6VUrNP3npdrPivBA11HPB15TVI49nWf2lntTzoUuAg==", "requires": { - "@babel/highlight": "7.0.0-beta.55" + "@babel/highlight": "7.0.0-beta.56" } }, "@babel/generator": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.55.tgz", - "integrity": "sha1-jsERUtzDmLrjXdGBEicEQVw4OgE=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.56.tgz", + "integrity": "sha512-d+Ls/Vr5OU5FBDYQToXSqAluI3r2UaSoNZ41zD3sxdoVoaT8K5Bdh4So4eG4o//INGM7actValXGfb+5J1+r8w==", "requires": { - "@babel/types": "7.0.0-beta.55", + "@babel/types": "7.0.0-beta.56", "jsesc": "^2.5.1", "lodash": "^4.17.10", "source-map": "^0.5.0", @@ -352,35 +352,35 @@ } }, "@babel/helper-function-name": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.55.tgz", - "integrity": "sha1-FqqyE4Ci6rzuMyjSG5WGujQn2+8=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.56.tgz", + "integrity": "sha512-Lq4nPOt1j3sUq+1GVrw57dKq6wBKAHplGjYzEG8dkytqo93i6uSKKKg3smYXx2qohEVD5ciAyJjgRJq7RQu4Lg==", "requires": { - "@babel/helper-get-function-arity": "7.0.0-beta.55", - "@babel/template": "7.0.0-beta.55", - "@babel/types": "7.0.0-beta.55" + "@babel/helper-get-function-arity": "7.0.0-beta.56", + "@babel/template": "7.0.0-beta.56", + "@babel/types": "7.0.0-beta.56" } }, "@babel/helper-get-function-arity": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.55.tgz", - "integrity": "sha1-hVne2W7NO2JvnB9XSU7cT6PMapQ=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.56.tgz", + "integrity": "sha512-QU9EVlnDGTzBasgrdo/I4+RzZS7oqzz9YcetpYko3bp+VsRGokqsAQl3gIvxWTtxwibwboDEdBx+fGArtb2fhw==", "requires": { - "@babel/types": "7.0.0-beta.55" + "@babel/types": "7.0.0-beta.56" } }, "@babel/helper-split-export-declaration": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.55.tgz", - "integrity": "sha1-7LgHS/LSLGUYolIoJTXe8TeocE8=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.56.tgz", + "integrity": "sha512-j886mQJQg5HDF7X0qK/AfNdrpIYUcJHxRKwBJ9dUvhpO3eFqsTLbJJpitgLaJQjh9D7Db5Aiq8MRghj3+MH57g==", "requires": { - "@babel/types": "7.0.0-beta.55" + "@babel/types": "7.0.0-beta.56" } }, "@babel/highlight": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.55.tgz", - "integrity": "sha1-mIZTZH1inCYdrhVudNXwJSulIMA=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.56.tgz", + "integrity": "sha512-q4TfI+jJISul6vVpZJktzH4tupwRiVk6KXRhB8PHqJ7erl966I6ePDXl9mAbE8jMM7YswhnnB0j1SYP7LBVyhg==", "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -388,36 +388,36 @@ } }, "@babel/template": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.55.tgz", - "integrity": "sha1-xsqw4nIrpeM/4DQHO20xZzq6Mm4=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.56.tgz", + "integrity": "sha512-rsR9K18h0oiJTUmS/ICYREbV8qhPTic4SIqDSkzv9xOxupt7dKj8hWmZQLGPySO5x6cdn8py039o1wPQnsEGHg==", "requires": { - "@babel/code-frame": "7.0.0-beta.55", - "@babel/parser": "7.0.0-beta.55", - "@babel/types": "7.0.0-beta.55", + "@babel/code-frame": "7.0.0-beta.56", + "@babel/parser": "7.0.0-beta.56", + "@babel/types": "7.0.0-beta.56", "lodash": "^4.17.10" } }, "@babel/traverse": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.55.tgz", - "integrity": "sha1-UL5dD8xcxKwCCnsMUZvo2uNF1L4=", - "requires": { - "@babel/code-frame": "7.0.0-beta.55", - "@babel/generator": "7.0.0-beta.55", - "@babel/helper-function-name": "7.0.0-beta.55", - "@babel/helper-split-export-declaration": "7.0.0-beta.55", - "@babel/parser": "7.0.0-beta.55", - "@babel/types": "7.0.0-beta.55", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.56.tgz", + "integrity": "sha512-9WTqtKP2Ll+jG68r+JEecXAbdH/kk5inN1VDSDaTgdYtZ82BYUS9XRWMVpc5HB9LJsu2ZEyUA1cGybID7eeOXA==", + "requires": { + "@babel/code-frame": "7.0.0-beta.56", + "@babel/generator": "7.0.0-beta.56", + "@babel/helper-function-name": "7.0.0-beta.56", + "@babel/helper-split-export-declaration": "7.0.0-beta.56", + "@babel/parser": "7.0.0-beta.56", + "@babel/types": "7.0.0-beta.56", "debug": "^3.1.0", "globals": "^11.1.0", "lodash": "^4.17.10" } }, "@babel/types": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.55.tgz", - "integrity": "sha1-d1XJ0uWDFaZPBdjPMyI3m+FtkZk=", + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.56.tgz", + "integrity": "sha512-fRIBeHtKxAD3D1E7hYSpG4MnLt0AfzHHs5gfVclOB0NlfLu3qiWU/IqdbK2ixTK61424iEkV1P/VAzndx6ungA==", "requires": { "esutils": "^2.0.2", "lodash": "^4.17.10", @@ -437,9 +437,9 @@ } }, "@babel/parser": { - "version": "7.0.0-beta.55", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.55.tgz", - "integrity": "sha1-ClJ+/BSMbIzYXV/92srYF6La7rI=" + "version": "7.0.0-beta.56", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.56.tgz", + "integrity": "sha512-JM0ughhbo+sPXw2Z+SUyowfYrAOhjanzjMshcLswBdXVelJCOeEKe/FqMqPWGVPQr7wByongXIn+MKdCpY7DBw==" }, "@babel/plugin-proposal-async-generator-functions": { "version": "7.0.0-beta.42", diff --git a/package.json b/package.json index 731a6d8..6fc8320 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ ] }, "dependencies": { - "@babel/core": "^7.0.0-beta.55", + "@babel/core": "^7.0.0-beta.56", "@material-ui/core": "1.4.1", "@material-ui/icons": "2.0.0", "apollo-boost": "0.1.10",