From 0d75cd5d159f081fd399b7628e4b39359e023d57 Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Tue, 9 Jun 2015 17:06:51 +0200 Subject: [PATCH 1/4] Added sharing to anyone with link, changed home page --- rpg-docs/Model/Character/Characters.js | 6 +++ rpg-docs/Routes/Routes.js | 1 + .../characterSettings/shareDialog.html | 14 +++++- .../characterSettings/shareDialog.js | 15 ++++++ rpg-docs/client/views/guide/guide.html | 5 -- rpg-docs/client/views/home/home.html | 25 ++++++++-- rpg-docs/client/views/home/home.js | 26 +++------- rpg-docs/client/views/home/intro/intro.html | 49 +++++++++++++++++++ rpg-docs/client/views/home/intro/intro.scss | 12 +++++ .../paperTemplates/baseDialog/baseDialog.js | 5 +- .../server/publications/singleCharacter.js | 2 +- 11 files changed, 129 insertions(+), 31 deletions(-) create mode 100644 rpg-docs/client/views/home/intro/intro.html create mode 100644 rpg-docs/client/views/home/intro/intro.scss diff --git a/rpg-docs/Model/Character/Characters.js b/rpg-docs/Model/Character/Characters.js index 98edfae0..c0dbab0c 100644 --- a/rpg-docs/Model/Character/Characters.js +++ b/rpg-docs/Model/Character/Characters.js @@ -176,6 +176,12 @@ Schemas.Character = new SimpleSchema({ "settings.useStandardEncumbrance": {type: Boolean, defaultValue: true}, //hide spellcasting "settings.hideSpellcasting": {type: Boolean, defaultValue: false}, + //show to anyone with link + "settings.viewPermission": { + type: String, + defaultValue: "whitelist", + allowedValues: ["whitelist", "public"], + }, }); Characters.attachSchema(Schemas.Character); diff --git a/rpg-docs/Routes/Routes.js b/rpg-docs/Routes/Routes.js index d54b3357..7a9c2f2f 100644 --- a/rpg-docs/Routes/Routes.js +++ b/rpg-docs/Routes/Routes.js @@ -6,6 +6,7 @@ Router.configure({ Router.plugin("ensureSignedIn", { except: [ "home", + "characterSheet", "atSignIn", "atSignUp", "atForgotPassword", diff --git a/rpg-docs/client/views/character/characterSettings/shareDialog.html b/rpg-docs/client/views/character/characterSettings/shareDialog.html index 9ce9b6ff..d788ac2e 100644 --- a/rpg-docs/client/views/character/characterSettings/shareDialog.html +++ b/rpg-docs/client/views/character/characterSettings/shareDialog.html @@ -1,5 +1,17 @@