mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
better organization for blank package
This commit is contained in:
parent
f2e20f9baf
commit
f4a01f90e2
5 changed files with 113 additions and 24 deletions
|
@ -12,25 +12,4 @@ var customProperty = {
|
|||
}
|
||||
}
|
||||
}
|
||||
addToPostSchema.push(customProperty);
|
||||
|
||||
// Custom Setting
|
||||
|
||||
var customSetting = {
|
||||
propertyName: 'customSetting',
|
||||
propertySchema: {
|
||||
type: String,
|
||||
optional: true,
|
||||
autoform: {
|
||||
group: 'customGroup', // assign custom group (fieldset) in Settings form
|
||||
private: true // mark as private (not published to client)
|
||||
}
|
||||
}
|
||||
}
|
||||
addToSettingsSchema.push(customSetting);
|
||||
|
||||
// Global Function
|
||||
|
||||
myFunction = function (a, b) {
|
||||
return a + b;
|
||||
}
|
||||
addToPostSchema.push(customProperty);
|
88
packages/telescope-blank/lib/hooks.js
Normal file
88
packages/telescope-blank/lib/hooks.js
Normal file
|
@ -0,0 +1,88 @@
|
|||
// ------------------------------------------------------------------------------------------- //
|
||||
// -------------------------------------- Subscriptions -------------------------------------- //
|
||||
// ------------------------------------------------------------------------------------------- //
|
||||
|
||||
// add a subscription to be preloaded before the rest of the app
|
||||
preloadSubscriptions.push('');
|
||||
|
||||
// ------------------------------------------------------------------------------------------- //
|
||||
// ------------------------------------------- Nav ------------------------------------------- //
|
||||
// ------------------------------------------------------------------------------------------- //
|
||||
|
||||
// add templates to the primary nav bar
|
||||
primaryNav.push({
|
||||
template: '',
|
||||
order: 99
|
||||
});
|
||||
|
||||
// add templates to the secondary nav bar
|
||||
secondaryNav.push({
|
||||
template: '',
|
||||
order: 99
|
||||
});
|
||||
|
||||
// add items to the view menu
|
||||
viewNav.push({
|
||||
route: '',
|
||||
label: '',
|
||||
description: ''
|
||||
});
|
||||
|
||||
// add items to the admin menu
|
||||
adminNav.push({
|
||||
route: '',
|
||||
label: '',
|
||||
description: ''
|
||||
});
|
||||
|
||||
// ------------------------------------------------------------------------------------------- //
|
||||
// ------------------------------------------ Zones ------------------------------------------ //
|
||||
// ------------------------------------------------------------------------------------------- //
|
||||
|
||||
// add templates to the hero zone (before posts list)
|
||||
heroModules.push({
|
||||
template: '',
|
||||
order: 99
|
||||
});
|
||||
|
||||
// add templates to the footer (after posts list)
|
||||
footerModules.push({
|
||||
template: '',
|
||||
order: 99
|
||||
});
|
||||
|
||||
// ------------------------------------------------------------------------------------------- //
|
||||
// ------------------------------------------ Posts ------------------------------------------ //
|
||||
// ------------------------------------------------------------------------------------------- //
|
||||
|
||||
// add templates to the post items
|
||||
postModules.push({
|
||||
template: '',
|
||||
order: 99
|
||||
});
|
||||
|
||||
// add templates to the post heading zone
|
||||
postHeading.push({
|
||||
template: '',
|
||||
order: 99
|
||||
});
|
||||
|
||||
// add templates to the post meta zone
|
||||
postMeta.push({
|
||||
template: '',
|
||||
order: 99
|
||||
});
|
||||
|
||||
// ------------------------------------------------------------------------------------------- //
|
||||
// -------------------------------------- User Profiles -------------------------------------- //
|
||||
// ------------------------------------------------------------------------------------------- //
|
||||
|
||||
userProfileDisplay.push({
|
||||
template: '',
|
||||
order: 99
|
||||
});
|
||||
|
||||
userProfileEdit.push({
|
||||
template: '',
|
||||
order: 99
|
||||
});
|
5
packages/telescope-blank/lib/main.js
Normal file
5
packages/telescope-blank/lib/main.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Global Function
|
||||
|
||||
myFunction = function (a, b) {
|
||||
return a + b;
|
||||
}
|
14
packages/telescope-blank/lib/settings.js
Normal file
14
packages/telescope-blank/lib/settings.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
// Custom Setting
|
||||
|
||||
var customSetting = {
|
||||
propertyName: 'customSetting',
|
||||
propertySchema: {
|
||||
type: String,
|
||||
optional: true,
|
||||
autoform: {
|
||||
group: 'customGroup', // assign custom group (fieldset) in Settings form
|
||||
private: true // mark as private (not published to client)
|
||||
}
|
||||
}
|
||||
}
|
||||
addToSettingsSchema.push(customSetting);
|
|
@ -48,8 +48,11 @@ Package.onUse(function (api) {
|
|||
// both
|
||||
|
||||
api.add_files([
|
||||
'lib/both.js',
|
||||
'lib/routes.js'
|
||||
'lib/custom_fields.js',
|
||||
'lib/hooks.js',
|
||||
'lib/main.js',
|
||||
'lib/routes.js',
|
||||
'lib/settings.js'
|
||||
], ['client', 'server']);
|
||||
|
||||
// client
|
||||
|
|
Loading…
Add table
Reference in a new issue