mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Replace Picker for community packages version & small
This commit is contained in:
parent
4ba2a23c72
commit
eb745106d8
7 changed files with 11 additions and 10 deletions
|
@ -65,7 +65,6 @@ msavin:usercache
|
||||||
# Keep stylus in 1.1.0, because building v2 takes extra 52 minutes.
|
# Keep stylus in 1.1.0, because building v2 takes extra 52 minutes.
|
||||||
coagmano:stylus@1.1.0!
|
coagmano:stylus@1.1.0!
|
||||||
meteorhacks:subs-manager
|
meteorhacks:subs-manager
|
||||||
meteorhacks:picker
|
|
||||||
meteorhacks:aggregate@1.3.0
|
meteorhacks:aggregate@1.3.0
|
||||||
wekan-markdown
|
wekan-markdown
|
||||||
konecty:mongo-counter
|
konecty:mongo-counter
|
||||||
|
@ -129,7 +128,3 @@ simple:json-routes
|
||||||
kadira:flow-router
|
kadira:flow-router
|
||||||
spacebars
|
spacebars
|
||||||
communitypackages:picker
|
communitypackages:picker
|
||||||
useraccounts:core
|
|
||||||
useraccounts:unstyled
|
|
||||||
useraccounts:flow-routing
|
|
||||||
service-configuration
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ check@1.3.1
|
||||||
coagmano:stylus@1.1.0
|
coagmano:stylus@1.1.0
|
||||||
coffeescript@2.4.1
|
coffeescript@2.4.1
|
||||||
coffeescript-compiler@2.4.1
|
coffeescript-compiler@2.4.1
|
||||||
|
communitypackages:picker@1.1.0
|
||||||
cottz:publish-relations@2.0.8
|
cottz:publish-relations@2.0.8
|
||||||
dburles:collection-helpers@1.1.0
|
dburles:collection-helpers@1.1.0
|
||||||
ddp@1.4.0
|
ddp@1.4.0
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
import { Exporter } from './exporter';
|
import { Exporter } from './exporter';
|
||||||
|
import { Meteor } from 'meteor/meteor';
|
||||||
|
|
||||||
/* global JsonRoutes */
|
/* global JsonRoutes */
|
||||||
if (Meteor.isServer) {
|
if (Meteor.isServer) {
|
||||||
|
import { Picker } from 'meteor/communitypackages:picker';
|
||||||
|
|
||||||
// todo XXX once we have a real API in place, move that route there
|
// todo XXX once we have a real API in place, move that route there
|
||||||
// todo XXX also share the route definition between the client and the server
|
// todo XXX also share the route definition between the client and the server
|
||||||
// so that we could use something like
|
// so that we could use something like
|
||||||
|
|
|
@ -6,6 +6,7 @@ runOnServer(function() {
|
||||||
// it here we use runOnServer to have it inside a function instead of an
|
// it here we use runOnServer to have it inside a function instead of an
|
||||||
// if (Meteor.isServer) block
|
// if (Meteor.isServer) block
|
||||||
import { ExporterExcel } from './server/ExporterExcel';
|
import { ExporterExcel } from './server/ExporterExcel';
|
||||||
|
import { Picker } from 'meteor/communitypackages:picker';
|
||||||
|
|
||||||
// todo XXX once we have a real API in place, move that route there
|
// todo XXX once we have a real API in place, move that route there
|
||||||
// todo XXX also share the route definition between the client and the server
|
// todo XXX also share the route definition between the client and the server
|
||||||
|
|
|
@ -6,6 +6,7 @@ runOnServer(function() {
|
||||||
// it here we use runOnServer to have it inside a function instead of an
|
// it here we use runOnServer to have it inside a function instead of an
|
||||||
// if (Meteor.isServer) block
|
// if (Meteor.isServer) block
|
||||||
import { ExporterCardPDF } from './server/ExporterCardPDF';
|
import { ExporterCardPDF } from './server/ExporterCardPDF';
|
||||||
|
import { Picker } from 'meteor/communitypackages:picker';
|
||||||
|
|
||||||
// todo XXX once we have a real API in place, move that route there
|
// todo XXX once we have a real API in place, move that route there
|
||||||
// todo XXX also share the route definition between the client and the server
|
// todo XXX also share the route definition between the client and the server
|
||||||
|
|
|
@ -5,9 +5,6 @@ Package.describe({
|
||||||
git: 'https://github.com/wekan/markdown.git',
|
git: 'https://github.com/wekan/markdown.git',
|
||||||
});
|
});
|
||||||
|
|
||||||
// Before Meteor 0.9?
|
|
||||||
if(!Package.onUse) Package.onUse = Package.on_use;
|
|
||||||
|
|
||||||
Package.onUse(function (api) {
|
Package.onUse(function (api) {
|
||||||
if(api.versionsFrom) api.versionsFrom('1.8.2');
|
if(api.versionsFrom) api.versionsFrom('1.8.2');
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
|
import { Meteor } from 'meteor/meteor';
|
||||||
|
import { Picker } from 'meteor/communitypackages:picker';
|
||||||
|
|
||||||
// Sandstorm context is detected using the METEOR_SETTINGS environment variable
|
// Sandstorm context is detected using the METEOR_SETTINGS environment variable
|
||||||
// in the package definition.
|
// in the package definition.
|
||||||
const isSandstorm =
|
const isSandstorm = Meteor.settings?.public?.sandstorm;
|
||||||
Meteor.settings && Meteor.settings.public && Meteor.settings.public.sandstorm;
|
|
||||||
|
|
||||||
// In sandstorm we only have one board per sandstorm instance. Since we want to
|
// In sandstorm we only have one board per sandstorm instance. Since we want to
|
||||||
// keep most of our code unchanged, we simply hard-code a board `_id` and
|
// keep most of our code unchanged, we simply hard-code a board `_id` and
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue