Fixed versions issues (react-bootstrap + apollo)

This commit is contained in:
eric-burel 2019-01-30 17:21:20 +01:00
parent fd33c7675b
commit 02cfafabc2
28 changed files with 1930 additions and 137 deletions

1978
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -24,15 +24,15 @@
"dependencies": {
"@babel/runtime": "7.0.0-beta.55",
"analytics-node": "^2.1.1",
"apollo-cache-inmemory": "^1.2.10",
"apollo-client": "^2.4.2",
"apollo-engine": "^0.5.4",
"apollo-cache-inmemory": "^1.4.2",
"apollo-client": "2.4.12",
"apollo-engine": "1.1.2",
"apollo-errors": "^1.4.0",
"apollo-link-error": "^1.1.5",
"apollo-link-schema": "^1.1.1",
"apollo-link-state": "^0.4.2",
"apollo-server": "^2.1.0",
"apollo-server-express": "^2.1.0",
"apollo-server": "2.3.3",
"apollo-server-express": "2.3.3",
"babel-runtime": "^6.26.0",
"bcrypt": "^3.0.2",
"body-parser": "^1.18.2",
@ -50,7 +50,7 @@
"flat": "^4.0.0",
"formsy-react": "^0.19.5",
"formsy-react-components": "^0.11.1",
"graphql": "^0.10.5",
"graphql": "14.1.1",
"graphql-anywhere": "^3.0.1",
"graphql-date": "^1.0.2",
"graphql-tag": "^2.0.0",
@ -75,7 +75,7 @@
"qs": "^6.6.0",
"react": "^16.2.0",
"react-addons-pure-render-mixin": "^15.4.1",
"react-apollo": "^2.2.4",
"react-apollo": "^2.4.1",
"react-bootstrap": "^1.0.0-beta.3",
"react-bootstrap-datetimepicker": "0.0.22",
"react-cookie": "^2.1.4",

View file

@ -3,7 +3,7 @@ import { withMutation } from 'meteor/vulcan:core';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
import Form from 'react-bootstrap/lib/Form';
import Form from 'react-bootstrap/Form';
class EmbedURL extends Component {
constructor(props) {

View file

@ -156,5 +156,4 @@ export const onStart = () => {
// ssr
enableSSR({ computeContext: context });
};
// createApolloServer when server startup
Meteor.startup(onStart);

View file

@ -1,4 +1,5 @@
export * from './apollo_server2';
export * from './settings';
import './startup';
export { default as initGraphQL } from './initGraphQL';

View file

@ -0,0 +1,3 @@
const { onStart } = require('./apollo_server2')
// createApolloServer when server startup
Meteor.startup(onStart);

View file

@ -1,5 +1,4 @@
// import './oauth_config.js';
export * from './apollo-server';
import './intl_polyfill.js';
import './site.js';

View file

@ -61,7 +61,7 @@ Package.onUse(function(api) {
});
Package.onTest(function(api) {
api.use(['ecmascript', 'meteortesting:mocha', 'vulcan:lib']);
api.use(['ecmascript', 'meteortesting:mocha']);
api.mainModule('./test/index.js');
api.mainModule('./test/server/index.js', 'server');
});

View file

@ -1,12 +1,8 @@
import {
createApolloServer,
setupWebApp,
defaultConfig,
initGraphQL,
initContext,
computeContextFromReq,
} from '../../lib/server/apollo-server';
import { GraphQLSchema } from '../../lib/modules/graphql';
} from '../../lib/server/apollo-server/apollo_server2';
//import initGraphQL from '../../lib/server/apollo-server/initGraphQL';
//import { GraphQLSchema } from '../../lib/modules/graphql';
import expect from 'expect';
import { executableSchema } from './fixtures/minimalSchema';
@ -16,10 +12,11 @@ const test = it; // TODO: just before we switch to jest
describe('apollo-server', function() {
let options;
before(function() {
initGraphQL();
// TODO: does not work in this test. This should setup the schema.
// initGraphQL();
options = {
config: defaultConfig,
config: {},//defaultConfig,
// Apollo options
apolloServerOptions: {
// TODO: check why this fails. One of the schema defined

View file

@ -1,5 +1,5 @@
import React from 'react';
import Form from 'react-bootstrap/lib/Form';
import Form from 'react-bootstrap/Form';
import { Components, registerComponent } from 'meteor/vulcan:core';
const CheckboxComponent = ({ refFunction, path, inputProperties, itemProperties }) => (

View file

@ -1,5 +1,5 @@
import React from 'react';
import Form from 'react-bootstrap/lib/Form';
import Form from 'react-bootstrap/Form';
import { Components, registerComponent } from 'meteor/vulcan:core';
import without from 'lodash/without';
import uniq from 'lodash/uniq';

View file

@ -1,5 +1,5 @@
import React from 'react';
import Form from 'react-bootstrap/lib/Form';
import Form from 'react-bootstrap/Form';
import { Components, registerComponent } from 'meteor/vulcan:core';
const Default = ({ refFunction, inputProperties, itemProperties }) => (

View file

@ -1,5 +1,5 @@
import React from 'react';
import Form from 'react-bootstrap/lib/Form';
import Form from 'react-bootstrap/Form';
import { Components, registerComponent } from 'meteor/vulcan:core';
const EmailComponent = ({ refFunction, inputProperties, itemProperties }) => (

View file

@ -1,5 +1,5 @@
import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormControl from 'react-bootstrap/FormControl';
import { registerComponent } from 'meteor/vulcan:lib';
registerComponent('FormControl', FormControl);

View file

@ -1,5 +1,5 @@
// import React from 'react';
import Form from 'react-bootstrap/lib/Form';
import Form from 'react-bootstrap/Form';
import { registerComponent } from 'meteor/vulcan:core';
registerComponent('FormElement', Form);

View file

@ -5,9 +5,9 @@ Layout for a single form item
*/
import React from 'react';
import Form from 'react-bootstrap/lib/Form';
import Row from 'react-bootstrap/lib/Row';
import Col from 'react-bootstrap/lib/Col';
import Form from 'react-bootstrap/Form';
import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col';
import { registerComponent } from 'meteor/vulcan:core';
const FormItem = ({ path, label, children, beforeInput, afterInput }) => {

View file

@ -1,5 +1,5 @@
import React from 'react';
import Form from 'react-bootstrap/lib/Form';
import Form from 'react-bootstrap/Form';
import { Components, registerComponent } from 'meteor/vulcan:core';
const NumberComponent = ({ refFunction, inputProperties, itemProperties }) => (

View file

@ -1,5 +1,5 @@
import React from 'react';
import Form from 'react-bootstrap/lib/Form';
import Form from 'react-bootstrap/Form';
import { Components, registerComponent } from 'meteor/vulcan:core';
const RadioGroupComponent = ({ refFunction, inputProperties, itemProperties }) => (

View file

@ -1,6 +1,6 @@
import React from 'react';
import { intlShape } from 'meteor/vulcan:i18n';
import Form from 'react-bootstrap/lib/Form';
import Form from 'react-bootstrap/Form';
import { Components, registerComponent } from 'meteor/vulcan:core';
// copied from vulcan:forms/utils.js to avoid extra dependency

View file

@ -1,6 +1,6 @@
import React from 'react';
import { intlShape } from 'meteor/vulcan:i18n';
import Form from 'react-bootstrap/lib/Form';
import Form from 'react-bootstrap/Form';
import { Components, registerComponent } from 'meteor/vulcan:core';
const SelectMultipleComponent = ({ refFunction, inputProperties, itemProperties }, { intl }) => {

View file

@ -1,5 +1,5 @@
import React from 'react';
import Form from 'react-bootstrap/lib/Form';
import Form from 'react-bootstrap/Form';
import { Components, registerComponent } from 'meteor/vulcan:core';
const TextareaComponent = ({ refFunction, inputProperties, itemProperties }) => (

View file

@ -1,5 +1,5 @@
import React from 'react';
import Form from 'react-bootstrap/lib/Form';
import Form from 'react-bootstrap/Form';
import { Components, registerComponent } from 'meteor/vulcan:core';
const UrlComponent = ({ refFunction, inputProperties, itemProperties }) => (

View file

@ -1,5 +1,5 @@
import React from 'react';
import Alert from 'react-bootstrap/lib/Alert';
import Alert from 'react-bootstrap/Alert';
import { registerComponent } from 'meteor/vulcan:lib';
const BootstrapAlert = ({ children, variant, ...rest }) =>

View file

@ -1,5 +1,5 @@
import React from 'react';
import Button from 'react-bootstrap/lib/Button';
import Button from 'react-bootstrap/Button';
import { registerComponent } from 'meteor/vulcan:lib';
const BootstrapButton = ({ children, variant, size, iconButton, ...rest }) =>

View file

@ -1,9 +1,9 @@
import React from 'react';
import PropTypes from 'prop-types';
import { registerComponent } from 'meteor/vulcan:lib';
import Dropdown from 'react-bootstrap/lib/Dropdown';
import DropdownItem from 'react-bootstrap/lib/DropdownItem';
import DropdownButton from 'react-bootstrap/lib/DropdownButton';
import Dropdown from 'react-bootstrap/Dropdown';
import DropdownItem from 'react-bootstrap/DropdownItem';
import DropdownButton from 'react-bootstrap/DropdownButton';
import { LinkContainer } from 'react-router-bootstrap';
import { FormattedMessage } from 'meteor/vulcan:i18n';

View file

@ -1,7 +1,7 @@
import { registerComponent } from 'meteor/vulcan:lib';
import React from 'react';
import PropTypes from 'prop-types';
import Modal from 'react-bootstrap/lib/Modal';
import Modal from 'react-bootstrap/Modal';
const BootstrapModal = ({ children, size = 'lg', show = false, onHide, title, showCloseButton = true, header, footer, ...rest }) => {

View file

@ -1,5 +1,5 @@
import React from 'react';
import Table from 'react-bootstrap/lib/Table';
import Table from 'react-bootstrap/Table';
import { registerComponent } from 'meteor/vulcan:lib';
registerComponent('Table', Table);

View file

@ -6,8 +6,8 @@ trigger: the component that triggers the tooltip to appear
*/
import React from 'react';
import { registerComponent } from 'meteor/vulcan:core';
import Tooltip from 'react-bootstrap/lib/Tooltip';
import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger';
import Tooltip from 'react-bootstrap/Tooltip';
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
const TooltipTrigger = ({ children, trigger, placement = 'top', ...rest }) => {
const tooltip = <Tooltip id="tooltip">{children}</Tooltip>;