clean up imports/exports and other small things

This commit is contained in:
Sacha Greif 2016-11-29 18:53:31 +09:00
parent 9467837d1f
commit 00fcc01c0d
12 changed files with 86 additions and 112 deletions

View file

@ -1,50 +1,46 @@
############ Nova Core ############
############ Core Packages ############
nova:core # core components and wrappers
############ Nova Base Packages ############
nova:forms # auto-generated forms
nova:apollo # data layer
nova:routing # routing and server-side rendering
nova:email # email
nova:users # user management and permissions
############ Optional Packages ############
############ Features Packages ############
# nova:events
# nova:settings
# nova:posts
# nova:comments
# nova:newsletter
# nova:search
# nova:notifications
# nova:getting-started
# nova:categories
# nova:voting
# nova:embedly
# nova:api
# nova:rss
# nova:subscribe
############ Customizable Packages ############
# nova:base-components # default ui components
nova:base-styles # default styling
# nova:email-templates # default email templates for notifications
nova:i18n-en-us # default language translation
accounts-password@1.3.3
# accounts-twitter
# accounts-facebook
nova:events
nova:posts
nova:comments
nova:newsletter
nova:search
nova:notifications
nova:getting-started
nova:categories
nova:voting
nova:embedly
nova:api
nova:rss
nova:subscribe
############ Debug Packages ############
# nova:debug
# nova:kadira
############ Theme Packages ############
nova:base-components # default ui components
nova:base-styles # default styling
nova:email-templates # default email templates for notifications
nova:i18n-en-us # default language translation
############ Your Packages ############
# my-custom-package
custom-collection-demo
accounts-password@1.3.3
# accounts-twitter
# accounts-facebook
# customization-demo
# framework-demo

View file

@ -19,7 +19,6 @@ callback-hook@1.0.10
check@1.2.4
chuangbo:cookie@1.1.0
coffeescript@1.0.17
custom-collection-demo@0.27.4-nova
dburles:collection-helpers@1.1.0
ddp@1.2.5
ddp-client@1.3.2
@ -32,6 +31,7 @@ ecmascript@0.6.1
ecmascript-runtime@0.3.15
ejson@1.0.13
email@1.1.18
fortawesome:fontawesome@4.5.0
fourseven:scss@3.10.1
geojson-utils@1.0.10
hot-code-push@1.0.4
@ -54,6 +54,7 @@ meteorhacks:inject-data@2.0.1-nova-patch
meteorhacks:inject-initial@1.0.4
meteorhacks:meteorx@1.4.1
meteorhacks:picker@1.0.3
meteorhacks:subs-manager@1.6.4
minifier-css@1.2.15
minifier-js@1.2.15
minimongo@1.0.19
@ -61,15 +62,30 @@ modules@0.7.7
modules-runtime@0.7.7
mongo@1.1.14
mongo-id@1.0.6
nova:api@0.27.4-nova
nova:apollo@0.27.4-nova
nova:base-components@0.27.4-nova
nova:base-styles@0.27.4-nova
nova:categories@0.27.4-nova
nova:comments@0.27.4-nova
nova:core@0.27.4-nova
nova:email@0.27.4-nova
nova:email-templates@0.27.4-nova
nova:embedly@0.27.4-nova
nova:events@0.27.4-nova
nova:forms@0.27.4-nova
nova:getting-started@0.27.4-nova
nova:i18n-en-us@0.27.4-nova
nova:lib@0.27.4-nova
nova:newsletter@0.27.4-nova
nova:notifications@0.27.4-nova
nova:posts@0.27.4-nova
nova:routing@0.27.4-nova
nova:rss@0.27.4-nova
nova:search@0.27.4-nova
nova:subscribe@0.27.4-nova
nova:users@0.27.4-nova
nova:voting@0.27.4-nova
npm-bcrypt@0.9.2
npm-mongo@2.2.11_2
observe-sequence@1.0.14
@ -103,5 +119,6 @@ tracker@1.1.1
ui@1.0.12
underscore@1.0.10
url@1.0.11
utilities:react-list-container@0.1.14
webapp@1.3.12
webapp-hashing@1.0.9

View file

@ -1,11 +1,9 @@
Package.describe({
name: "my-custom-package"
name: "customization-demo"
});
Package.onUse( function(api) {
api.versionsFrom("METEOR@1.0");
api.use([
'fourseven:scss',

View file

@ -2,6 +2,4 @@ import './collection.js';
import './i18n.js';
import './permissions.js';
import './routes.js';
import './schema.js';
import './components/App.jsx';
import './schema.js';

View file

@ -1,14 +1,9 @@
Package.describe({
name: 'custom-collection-demo',
summary: 'Telescope components package',
version: '0.27.4-nova',
git: 'https://github.com/TelescopeJS/Telescope.git'
name: 'framework-demo',
});
Package.onUse(function (api) {
api.versionsFrom(['METEOR@1.0']);
api.use([
'nova:core@0.27.4-nova',
'nova:forms@0.27.4-nova',

View file

@ -13,7 +13,6 @@ import './common/Newsletter.jsx';
import './common/NewsletterButton.jsx';
import './common/SearchForm.jsx';
import './common/Error404.jsx';
import './common/Loading.jsx';
import './common/Vote.jsx';
// posts

View file

@ -1,18 +1 @@
import './modules.js';
import Messages from './messages.js';
import App from "./components/App.jsx";
import Layout from "./components/Layout.jsx";
import Icon from "./components/Icon.jsx";
import Loading from "./components/Loading.jsx";
import ModalTrigger from './components/ModalTrigger.jsx';
import ContextPasser from './components/ContextPasser.jsx';
import FlashContainer from "./containers/FlashContainer.jsx";
import withCurrentUser from './containers/withCurrentUser.js';
import withList from './containers/withList.js';
import withSingle from './containers/withSingle.js';
import withNew from './containers/withNew.js';
import withEdit from './containers/withEdit.js';
import withRemove from './containers/withRemove.js';
export { Messages, App, Layout, Icon, Loading, ModalTrigger, ContextPasser, FlashContainer, withCurrentUser, withList, withSingle, withNew, withEdit, withRemove };
export * from './modules.js';

View file

@ -1 +1,17 @@
import './messages.js'; // import redux actions
import './messages.js'; // import redux actions
export { default as Messages } from './messages.js';
export { default as App } from "./components/App.jsx";
export { default as Layout } from "./components/Layout.jsx";
export { default as Icon } from "./components/Icon.jsx";
export { default as Loading } from "./components/Loading.jsx";
export { default as ModalTrigger } from './components/ModalTrigger.jsx';
export { default as ContextPasser } from './components/ContextPasser.jsx';
export { default as FlashContainer } from "./containers/FlashContainer.jsx";
export { default as withCurrentUser } from './containers/withCurrentUser.js';
export { default as withList } from './containers/withList.js';
export { default as withSingle } from './containers/withSingle.js';
export { default as withNew } from './containers/withNew.js';
export { default as withEdit } from './containers/withEdit.js';
export { default as withRemove } from './containers/withRemove.js';

View file

@ -1,20 +1,3 @@
import "./modules.js";
import "./server/start.js";
import Messages from "./messages.js";
import App from "./components/App.jsx";
import Layout from "./components/Layout.jsx";
import Icon from "./components/Icon.jsx";
import Loading from "./components/Loading.jsx";
import ModalTrigger from "./components/ModalTrigger.jsx";
import ContextPasser from "./components/ContextPasser.jsx";
import FlashContainer from "./containers/FlashContainer.jsx";
import withCurrentUser from './containers/withCurrentUser.js';
import withList from './containers/withList.js';
import withSingle from './containers/withSingle.js';
import withNew from './containers/withNew.js';
import withEdit from './containers/withEdit.js';
import withRemove from './containers/withRemove.js';
export { Messages, App, Layout, Icon, Loading, ModalTrigger, ContextPasser, FlashContainer, withCurrentUser, withList, withSingle, withNew, withEdit, withRemove };
export * from './modules.js';

View file

@ -1,19 +1,6 @@
import Telescope from 'meteor/nova:lib';
import {Inject} from 'meteor/meteorhacks:inject-initial';
const Events = new Mongo.Collection('events');
Meteor.startup(function () {
if (!Events.findOne({name: 'firstRun'})) {
Events.insert({
name: 'firstRun',
unique: true, // will only get logged a single time
important: true,
createdAt: new Date(),
});
}
});
if (Telescope.settings.get('mailUrl')) {
process.env.MAIL_URL = Telescope.settings.get('mailUrl');
}

View file

@ -1,3 +1,5 @@
import Telescope from './config.js';
import { compose } from 'react-apollo'; // note: at the moment, compose@react-apollo === compose@redux ; see https://github.com/apollostack/react-apollo/blob/master/src/index.ts#L4-L7
Telescope.components = {};

View file

@ -16,11 +16,11 @@ Users.addField([
type: [String],
optional: true,
hidden: true, // never show this,
publish: true,
join: {
joinAs: "subscribersArray",
collection: () => Users
}
// publish: true,
// join: {
// joinAs: "subscribersArray",
// collection: () => Users
// }
}
},
{
@ -43,11 +43,11 @@ if (typeof Package['nova:posts'] !== "undefined") {
type: [String],
optional: true,
hidden: true, // never show this
publish: true,
join: {
joinAs: "subscribersArray",
collection: () => Users
}
// publish: true,
// join: {
// joinAs: "subscribersArray",
// collection: () => Users
// }
}
},
{
@ -72,11 +72,11 @@ if (typeof Package['nova:categories'] !== "undefined") {
type: [String],
optional: true,
hidden: true, // never show this
publish: true,
join: {
joinAs: "subscribersArray",
collection: () => Users
}
// publish: true,
// join: {
// joinAs: "subscribersArray",
// collection: () => Users
// }
}
},
{