Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
612e127be4 | ||
|
|
2b0d975cee | ||
|
|
248ab9bb6b | ||
|
|
314ce85410 | ||
|
|
9ff45dbcc2 | ||
|
|
6caf19bc99 | ||
|
|
c2b04d0977 | ||
|
|
9012c4a558 | ||
|
|
65a84937f2 | ||
|
|
eebb88b6b1 | ||
|
|
06ab7c5116 | ||
|
|
034067bd6e | ||
|
|
0d75cd5d15 |
@@ -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);
|
||||
|
||||
@@ -4,17 +4,9 @@ Router.configure({
|
||||
});
|
||||
|
||||
Router.plugin("ensureSignedIn", {
|
||||
except: [
|
||||
"home",
|
||||
"atSignIn",
|
||||
"atSignUp",
|
||||
"atForgotPassword",
|
||||
"atResetPwd",
|
||||
"atEnrollAccount",
|
||||
"atVerifyEmail",
|
||||
"atResendVerificationEmail",
|
||||
"loginButtons",
|
||||
"notFound",
|
||||
only: [
|
||||
"profile",
|
||||
"characterList",
|
||||
]
|
||||
});
|
||||
|
||||
@@ -93,4 +85,11 @@ Router.map(function() {
|
||||
document.title = appName;
|
||||
},
|
||||
});
|
||||
|
||||
this.route("/guide", {
|
||||
name: "guide",
|
||||
onAfterAction: function() {
|
||||
document.title = appName;
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
@@ -20,6 +20,11 @@ openParentDialog = function(parent, charId, heroId) {
|
||||
template: "itemDialog",
|
||||
data: {itemId: parent.id},
|
||||
};
|
||||
} else if (parent.collection === "Spells") {
|
||||
detail = {
|
||||
template: "spellDialog",
|
||||
data: {spellId: parent.id},
|
||||
};
|
||||
}
|
||||
detail.heroId = heroId;
|
||||
detail.charId = charId;
|
||||
|
||||
@@ -70,8 +70,8 @@
|
||||
background-color: #9E9E9E;
|
||||
}
|
||||
|
||||
.blue-grey {
|
||||
background-color: #607D8B;
|
||||
.app-grey {
|
||||
background-color: #424242;
|
||||
}
|
||||
|
||||
.white {
|
||||
|
||||
@@ -19,6 +19,16 @@ body {
|
||||
background-color: #E0E0E0;
|
||||
}
|
||||
|
||||
//fix tabs and core-toolbar having box shadow
|
||||
core-toolbar {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
//give drawer panel a shadow always
|
||||
core-header-panel[drawer] {
|
||||
box-shadow: 2px 0px 5px 0px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
//Horizontal rule
|
||||
hr {
|
||||
background-color: #444;
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
<template name="shareDialog">
|
||||
<div style="width: 360px;">
|
||||
<div layout horizontal center>
|
||||
<div>Who can view this character: </div>
|
||||
<paper-dropdown-menu class="visibilityDropdown"
|
||||
label="Visibility">
|
||||
<paper-dropdown layered class="dropdown">
|
||||
<core-menu class="menu visibilityMenu" selected={{viewPermission}}>
|
||||
<paper-item name="whitelist">Only people I share with</paper-item>
|
||||
<paper-item name="public">Anyone with link</paper-item>
|
||||
</core-menu>
|
||||
</paper-dropdown>
|
||||
</paper-dropdown-menu>
|
||||
</div>
|
||||
<div>
|
||||
{{#if readers.count}}
|
||||
<div style="font-weight: 500;">
|
||||
@@ -7,7 +19,7 @@
|
||||
</div>
|
||||
{{#each readers}}
|
||||
<div layout horizontal center>
|
||||
<div flex>{{username}}</div>
|
||||
<div flex>{{getUserName}}</div>
|
||||
<paper-icon-button class="deleteShare" icon="delete"></paper-icon-button>
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
@@ -3,6 +3,10 @@ Template.shareDialog.onCreated(function(){
|
||||
});
|
||||
|
||||
Template.shareDialog.helpers({
|
||||
viewPermission: function() {
|
||||
var char = Characters.findOne(this._id, {fields: {settings: 1}});
|
||||
return char.settings.viewPermission || "whitelist";
|
||||
},
|
||||
readers: function(){
|
||||
var char = Characters.findOne(this._id, {fields: {readers: 1}});
|
||||
return Meteor.users.find({_id: {$in: char.readers}});
|
||||
@@ -19,9 +23,20 @@ Template.shareDialog.helpers({
|
||||
return "User not found";
|
||||
}
|
||||
},
|
||||
getUserName: function() {
|
||||
return this.username || "user: " + this._id;
|
||||
}
|
||||
});
|
||||
|
||||
Template.shareDialog.events({
|
||||
"core-select .visibilityDropdown": function(event){
|
||||
var detail = event.originalEvent.detail;
|
||||
if (!detail.isSelected) return;
|
||||
var value = detail.item.getAttribute("name");
|
||||
var char = Characters.findOne(this._id, {fields: {settings: 1}});
|
||||
if (value == char.settings.viewPermission) return;
|
||||
Characters.update(this._id, {$set: {"settings.viewPermission": value}});
|
||||
},
|
||||
"input #userNameOrEmailInput":
|
||||
function(event, instance){
|
||||
var userName = instance.find("#userNameOrEmailInput").value;
|
||||
|
||||
@@ -174,6 +174,20 @@ Template.inventory.events({
|
||||
heroId: itemId,
|
||||
});
|
||||
},
|
||||
"hold .inventoryItem": function(event, instance) {
|
||||
var itemId = this._id;
|
||||
var charId = Template.parentData()._id;
|
||||
var containerId = this.parent.id;
|
||||
GlobalUI.showDialog({
|
||||
template: "moveItemDialog",
|
||||
data: {
|
||||
charId: charId,
|
||||
itemId: itemId,
|
||||
containerId: containerId,
|
||||
},
|
||||
heading: "Move " + this.pluralName(),
|
||||
});
|
||||
},
|
||||
"tap .incrementButtons": function(event) {
|
||||
event.stopPropagation();
|
||||
},
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
html /deep/ .moveItemDialog paper-tabs::shadow #selectionBar {
|
||||
background-color: #D50000;
|
||||
}
|
||||
|
||||
html /deep/ .moveItemDialog paper-tab::shadow #ink {
|
||||
color: #D50000;
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
<template name="moveItemDialog">
|
||||
<div class="moveItemDialog">
|
||||
<paper-tabs selected="{{selectedTab}}">
|
||||
<paper-tab name="containers"
|
||||
class="clickable">
|
||||
Containers
|
||||
</paper-tab>
|
||||
<paper-tab name="characters"
|
||||
class="clickable">
|
||||
Characters
|
||||
</paper-tab>
|
||||
</paper-tabs>
|
||||
<core-animated-pages selected="{{selectedTab}}"
|
||||
transitions="slide-from-right"
|
||||
style="width: 250px;
|
||||
height: 200px;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;">
|
||||
<section name="containers">
|
||||
<core-menu id="containerMenu" style="margin: 0;">
|
||||
{{#each containers}}
|
||||
<paper-item name={{_id}}
|
||||
layout horizontal center>
|
||||
<core-icon icon="image:brightness-1"
|
||||
style="color: {{hexColor color}};
|
||||
margin-right: 16px;">
|
||||
</core-icon>
|
||||
<div>{{name}}</div>
|
||||
</paper-item>
|
||||
{{/each}}
|
||||
</core-menu>
|
||||
</section>
|
||||
<section name="characters">
|
||||
<core-menu id="characterMenu" style="margin: 0;">
|
||||
{{#each characters}}
|
||||
<paper-item name={{_id}}
|
||||
layout horizontal center>
|
||||
<div class="item small">
|
||||
{{name}}
|
||||
</div>
|
||||
</paper-item>
|
||||
{{/each}}
|
||||
</core-menu>
|
||||
</section>
|
||||
</core-animated-pages>
|
||||
</div>
|
||||
<paper-button id="cancelButton" affirmative> Cancel </paper-button>
|
||||
<paper-button id="moveButton" affirmative> Move </paper-button>
|
||||
</template>
|
||||
@@ -0,0 +1,56 @@
|
||||
Template.moveItemDialog.onCreated(function() {
|
||||
Session.setDefault("moveItemDialogTab", "containers");
|
||||
});
|
||||
|
||||
Template.moveItemDialog.helpers({
|
||||
selectedTab: function() {
|
||||
return Session.get("moveItemDialogTab");
|
||||
},
|
||||
characters: function() {
|
||||
var userId = Meteor.userId();
|
||||
return Characters.find(
|
||||
{
|
||||
$or: [
|
||||
{readers: userId},
|
||||
{writers: userId},
|
||||
{owner: userId},
|
||||
],
|
||||
_id: {$ne: this.charId},
|
||||
},
|
||||
{fields: {name: 1}}
|
||||
);
|
||||
},
|
||||
containers: function(){
|
||||
return Containers.find(
|
||||
{
|
||||
charId: this.charId,
|
||||
_id: {$ne: this.containerId},
|
||||
},
|
||||
{
|
||||
fields: {color: 1, name: 1},
|
||||
sort: {color: 1, name: 1},
|
||||
}
|
||||
);
|
||||
},
|
||||
});
|
||||
|
||||
Template.moveItemDialog.events({
|
||||
"tap paper-tab": function(event) {
|
||||
Session.set("moveItemDialogTab", event.currentTarget.getAttribute("name"));
|
||||
},
|
||||
"tap #moveButton": function(event, instance) {
|
||||
var tab = Session.get("moveItemDialogTab");
|
||||
if (tab === "containers"){
|
||||
var containerId = instance.find("#containerMenu").selected;
|
||||
if (!containerId) throw "no menu selection";
|
||||
Meteor.call("moveItemToContainer", this.itemId, containerId);
|
||||
} else if (tab === "characters"){
|
||||
var characterId = instance.find("#characterMenu").selected;
|
||||
if (!characterId) throw "no menu selection";
|
||||
Meteor.call("moveItemToCharacter", this.itemId, characterId);
|
||||
} else {
|
||||
throw "Move item dialog tab is not set to containers or character," +
|
||||
" it is set to " + tab;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
<template name="backgroundDialog">
|
||||
{{#baseDialog title=title class=colorClass hideColor="true" hideDelete="true" startEditing=startEditing}}
|
||||
<div class="pre-wrap">{{evaluateString charId value}}</div>
|
||||
{{> proficiencyViewList charId=charId parentId=charId parentGroup="background"}}
|
||||
{{else}}
|
||||
{{> textDialogEdit}}
|
||||
{{> proficiencyEditList parentId=charId parentCollection="Characters" charId=charId parentGroup="background"}}
|
||||
{{/baseDialog}}
|
||||
</template>
|
||||
@@ -0,0 +1,8 @@
|
||||
Template.backgroundDialog.helpers({
|
||||
value: function(){
|
||||
var fieldSelector = {fields: {}};
|
||||
fieldSelector.fields[this.field] = 1;
|
||||
var char = Characters.findOne(this.charId, fieldSelector);
|
||||
return char[this.field];
|
||||
}
|
||||
});
|
||||
@@ -40,11 +40,20 @@ Template.persona.helpers({
|
||||
|
||||
Template.persona.events({
|
||||
"tap .characterField": function(event){
|
||||
if (this.field !== "details"){
|
||||
if (this.field === "details"){
|
||||
this.charId = Template.parentData()._id;
|
||||
GlobalUI.setDetail({
|
||||
template: "personaDetailsDialog",
|
||||
data: this,
|
||||
heroId: this._id + this.field,
|
||||
});
|
||||
} else {
|
||||
var template = "textDialog";
|
||||
if (this.field === "backstory") template = "backgroundDialog";
|
||||
var charId = Template.parentData()._id;
|
||||
GlobalUI.setDetail({
|
||||
template: "textDialog",
|
||||
data: {
|
||||
template: template,
|
||||
data: {
|
||||
charId: charId,
|
||||
field: this.field,
|
||||
title: this.title,
|
||||
@@ -52,13 +61,6 @@ Template.persona.events({
|
||||
},
|
||||
heroId: this._id + this.field,
|
||||
});
|
||||
} else {
|
||||
this.charId = Template.parentData()._id;
|
||||
GlobalUI.setDetail({
|
||||
template: "personaDetailsDialog",
|
||||
data: this,
|
||||
heroId: this._id + this.field,
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
<template name="proficiencyView">
|
||||
<div class="proficiencyView" layout horizontal center>
|
||||
<core-icon icon="{{profIcon}}"></core-icon>
|
||||
<div class="sideMargin">{{getName}}</div>
|
||||
<div class="proficiencyView item small"
|
||||
style="padding: 0;"
|
||||
layout horizontal center>
|
||||
<core-icon icon="{{profIcon}}" style="margin-right: 16px;"></core-icon>
|
||||
<div>{{getName}}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{{#if proficiencies.count}}
|
||||
<hr class="vertMargin">
|
||||
<div class="proficiencies">
|
||||
<h2 class="spaceAfter">Proficiencies</h2>
|
||||
<h2 style="margin-bottom: 8px;">Proficiencies</h2>
|
||||
{{#each proficiencies}}
|
||||
{{> proficiencyView}}
|
||||
{{/each}}
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="pre-wrap">{{evaluateString charId description}}</div>
|
||||
{{> attacksViewList charId=charId parentId=_id}}
|
||||
</template>
|
||||
|
||||
<template name="spellEdit">
|
||||
@@ -126,4 +127,5 @@
|
||||
<textarea id="descriptionInput" placeholder value={{description}}></textarea>
|
||||
</paper-autogrow-textarea>
|
||||
</paper-input-decorator>
|
||||
{{> attackEditList parentId=_id parentCollection="Spells" charId=charId enabled=true name=name}}
|
||||
</template>
|
||||
@@ -1,4 +1,4 @@
|
||||
.healthCard paper-slider{
|
||||
.healthCard paper-diff-slider{
|
||||
width: 100%;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
@@ -10,24 +10,24 @@
|
||||
</div>
|
||||
<div class="right" flex layout vertical center-justified style="min-width: 180px;">
|
||||
<div layout horizontal>
|
||||
<paper-slider id="hitPointSlider"
|
||||
<paper-diff-slider id="hitPointSlider"
|
||||
value={{attributeValue "hitPoints"}}
|
||||
max={{attributeBase "hitPoints"}}
|
||||
editable pin
|
||||
role="slider"
|
||||
></paper-slider>
|
||||
></paper-diff-slider>
|
||||
</div>
|
||||
{{#each tempHitPoints}}
|
||||
<div>
|
||||
{{name}}
|
||||
<div layout horizontal>
|
||||
<paper-slider class="tempHitPointSlider"
|
||||
<paper-diff-slider class="tempHitPointSlider"
|
||||
value={{left}}
|
||||
max={{maximum}}
|
||||
editable pin
|
||||
role="slider"
|
||||
flex
|
||||
></paper-slider>
|
||||
></paper-diff-slider>
|
||||
{{#unless left}}{{#unless deleteOnZero}}
|
||||
<paper-icon-button class="deleteTHP" icon="delete"></paper-icon-button>
|
||||
{{/unless}}{{/unless}}
|
||||
|
||||
@@ -212,7 +212,15 @@ Template.skillDialogView.helpers({
|
||||
return Characters.findOne(this.charId, {fields:{_id: 1}});
|
||||
},
|
||||
sourceName: function(){
|
||||
if (this.parent.collection === "Characters") return "inate";
|
||||
if (this.parent.collection === "Characters"){
|
||||
if (this.parent.group === "racial"){
|
||||
return Characters.findOne(this.charId, {fields:{race: 1}}).race || "Race";
|
||||
}
|
||||
if (this.parent.group === "background"){
|
||||
return "Background";
|
||||
}
|
||||
return "Innate";
|
||||
}
|
||||
return this.getParent().name;
|
||||
},
|
||||
operationName: function(){
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template name="characterList">
|
||||
<core-toolbar class="blue-grey white-text">
|
||||
<core-toolbar class="app-grey white-text">
|
||||
<core-icon-button icon="menu" core-drawer-toggle></core-icon-button>
|
||||
<div flex>
|
||||
Characters
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<template name="guide">
|
||||
<core-toolbar class="app-grey white-text">
|
||||
<core-icon-button icon="menu" core-drawer-toggle></core-icon-button>
|
||||
<div flex>Guide</div>
|
||||
</core-toolbar>
|
||||
<div layout vertical center>
|
||||
<paper-shadow class="wallOfText card" style="padding: 32px; max-width: 800px;">
|
||||
<h1>Dicecloud Beta</h1>
|
||||
<p>Welcome to the Dicecloud beta.</p>
|
||||
<p>The beta is going to start with just the character sheet. You can play D&D without minis and maps, without a pre-written adventure, you can play without a lot of things, but the character sheet is necessary. So I'm starting here and working my way outwards.</p>
|
||||
<p>Leave any comments, feedback and suggestions on <a href="http://reddit.com/r/dicecloud">this subreddit</a>. If you've never used reddit before, all you need is a username and password to sign up. So it should be pretty accessible.</p>
|
||||
<p>If you'd like to see a list of known issues and upcoming features, check out the <a href="https://trello.com/b/94M0SCnq/dicecloud-roadmap">DiceCloud Roadmap</a>.</p>
|
||||
<h2>Character Sheet Philosophy</h2>
|
||||
<p>Setting up your character on Dicecloud is going to take you a little longer than just filling it in on a paper character sheet would have. The goal of using an online sheet is to make actually playing the game more streamlined, and ultimately more fun. So putting a little extra effort into setting up your character now will pay off over and over again once you're playing.</p>
|
||||
<p>The idea is to track where each number comes from, and allow you to easily make changes on the fly.</p>
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
<template name="home">
|
||||
<core-toolbar class="blue-grey white-text">
|
||||
<core-toolbar class="app-grey white-text">
|
||||
<core-icon-button icon="menu" core-drawer-toggle></core-icon-button>
|
||||
<div flex>
|
||||
DiceCloud
|
||||
Home
|
||||
</div>
|
||||
</core-toolbar>
|
||||
<div class="scroll-y" style="padding: 16px" fit>
|
||||
{{> guide}}
|
||||
</div>
|
||||
{{> intro}}
|
||||
</template>
|
||||
@@ -1,25 +1,15 @@
|
||||
Template.home.helpers({
|
||||
characterDetails: function(){
|
||||
var char = Characters.findOne(
|
||||
this._id,
|
||||
{fields: {name: 1, gender: 1, alignment: 1, race:1}}
|
||||
);
|
||||
char.title = char.name;
|
||||
char.field = "base";
|
||||
char.color = "d";
|
||||
char.class = "characterCard";
|
||||
return char;
|
||||
}
|
||||
selectedTab: function(){
|
||||
return Session.get("homePage.selectedTab");
|
||||
},
|
||||
});
|
||||
|
||||
Template.home.events({
|
||||
"tap .characterCard": function(event, instance){
|
||||
Router.go("characterSheet", {_id: this._id});
|
||||
"core-animated-pages-transition-end .tabPages": function(event) {
|
||||
event.stopPropagation();
|
||||
},
|
||||
"tap #addCharacter": function(event, template) {
|
||||
Characters.insert({owner: Meteor.userId()});
|
||||
},
|
||||
"tap #deleteChar": function(event, template){
|
||||
Characters.remove(this._id);
|
||||
"tap .homeTabs paper-tab": function(event, instance){
|
||||
Session.set("homePage.selectedTab",
|
||||
event.currentTarget.getAttribute("name"));
|
||||
},
|
||||
});
|
||||
|
||||
89
rpg-docs/client/views/home/intro/intro.html
Normal file
89
rpg-docs/client/views/home/intro/intro.html
Normal file
@@ -0,0 +1,89 @@
|
||||
<template name="intro">
|
||||
<div class="intro">
|
||||
<div class="section white-text" style="background: #282828">
|
||||
<div class="display2">
|
||||
Dice Cloud
|
||||
</div>
|
||||
<img style="width:130px; height:130px; background-color: #282828;"
|
||||
src="/crown-dice-logo-cropped-transparent.png">
|
||||
<div class="display1">
|
||||
Unofficial Online Realtime D&D 5e App
|
||||
</div>
|
||||
<h2>
|
||||
Spend less time shuffling paper and more time playing the game
|
||||
</h2>
|
||||
{{#unless currentUser}}
|
||||
<div layout horizontal around-justified wrap>
|
||||
<paper-button class="red white-text signInButton"
|
||||
style="margin: 16px;"
|
||||
raised>
|
||||
Sign In
|
||||
</paper-button>
|
||||
<paper-button class="red white-text signUpButton"
|
||||
style="margin: 16px;"
|
||||
raised>
|
||||
Sign Up
|
||||
</paper-button>
|
||||
</div>
|
||||
{{else}}
|
||||
<div style="padding-bottom: 0;"></div>
|
||||
{{/unless}}
|
||||
</div>
|
||||
<div class="section" style="background-color: #e9e9e9;">
|
||||
<div>
|
||||
<div class="display1">Character Sheet Open Beta</div>
|
||||
<h2 style="margin-bottom: 16px;">
|
||||
Check out the example characters
|
||||
</h2>
|
||||
<div layout horizontal around-justified wrap>
|
||||
<paper-shadow class="card characterCard ssArcher clickable"
|
||||
z="2">
|
||||
<div class="top subhead green white-text">
|
||||
<div class="subhead" flex>
|
||||
Starter Set Archer
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom text">Lawful Good Human</div>
|
||||
</paper-shadow>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section white-text" style="background: #282828">
|
||||
<div class="columns" layout horizontal around-justified wrap>
|
||||
<div>
|
||||
<h1>Check out the guide</h1>
|
||||
<p>
|
||||
Learn how your class gives you features, those features have effects,
|
||||
and those effects determine your stats.
|
||||
<paper-button class="guideButton">View Guide</paper-button>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h1>
|
||||
Discuss
|
||||
</h1>
|
||||
<p>
|
||||
On the official subreddit
|
||||
<paper-button class="redditButton">
|
||||
<a href="http://www.reddit.com/r/dicecloud/">
|
||||
/r/dicecloud
|
||||
</a>
|
||||
</paper-button>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h1>
|
||||
Get involved
|
||||
</h1>
|
||||
<p>Shape upcoming features and track bugs on the Dice Cloud Trello board
|
||||
<paper-button class="trelloButton">
|
||||
<a href="https://trello.com/b/94M0SCnq/dicecloud-roadmap">
|
||||
Trello Roadmap
|
||||
</a>
|
||||
</paper-button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
14
rpg-docs/client/views/home/intro/intro.js
Normal file
14
rpg-docs/client/views/home/intro/intro.js
Normal file
@@ -0,0 +1,14 @@
|
||||
Template.intro.events({
|
||||
"tap .signInButton": function() {
|
||||
Router.go("/sign-in");
|
||||
},
|
||||
"tap .signUpButton": function() {
|
||||
Router.go("/sign-up");
|
||||
},
|
||||
"tap .ssArcher": function() {
|
||||
Router.go("/character/yBWwt5XQTTHZiRQxq");
|
||||
},
|
||||
"tap .guideButton": function() {
|
||||
Router.go("/guide");
|
||||
},
|
||||
});
|
||||
33
rpg-docs/client/views/home/intro/intro.scss
Normal file
33
rpg-docs/client/views/home/intro/intro.scss
Normal file
@@ -0,0 +1,33 @@
|
||||
.intro {
|
||||
.section {
|
||||
width: 100%;
|
||||
min-height: 200px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
padding-top: 24px;
|
||||
padding-bottom: 24px;
|
||||
& > div, & > h2 {
|
||||
padding: 32px;
|
||||
.display1 {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
}
|
||||
.columns > div{
|
||||
max-width: 300px;
|
||||
padding: 16px;
|
||||
text-align: center;
|
||||
paper-button {
|
||||
color: #FF5252;
|
||||
}
|
||||
}
|
||||
}
|
||||
paper-button {
|
||||
min-width: 200px;
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,7 @@
|
||||
<link rel="import" href="/components/core-icons/editor-icons.html">
|
||||
<link rel="import" href="/components/core-icons/image-icons.html">
|
||||
<link rel="import" href="/components/core-icons/social-icons.html">
|
||||
<link rel="import" href="/components/core-image/core-image.html">
|
||||
<link rel="import" href="/components/core-item/core-item.html">
|
||||
<link rel="import" href="/components/core-menu/core-menu.html">
|
||||
<link rel="import" href="/components/core-scaffold/core-scaffold.html">
|
||||
@@ -32,11 +33,12 @@
|
||||
<link rel="import" href="/components/paper-radio-group/paper-radio-group.html">
|
||||
<link rel="import" href="/components/paper-shadow/paper-shadow.html">
|
||||
<link rel="import" href="/components/paper-spinner/paper-spinner.html">
|
||||
<link rel="import" href="/components/paper-slider/paper-slider.html">
|
||||
<link rel="import" href="/components/paper-tabs/paper-tabs.html">
|
||||
<link rel="import" href="/components/paper-toast/paper-toast.html">
|
||||
<link rel="import" href="/components/paper-toggle-button/paper-toggle-button.html">
|
||||
|
||||
<!--custom components-->
|
||||
<link rel="import" href="/custom_components/paper-dropdown-menu/paper-dropdown-menu.html">
|
||||
<link rel="import" href="/custom_components/paper-slider-diff/paper-slider.html">
|
||||
<link rel="import" href="/custom_components/paper-diff-slider/paper-diff-slider.html">
|
||||
<link rel="import" href="/custom_components/swipe-detect/swipe-detect.html">
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
<core-header-panel drawer navigation flex mode="seamed" class="white">
|
||||
<div id="accountSummary">
|
||||
{{#if currentUser}}
|
||||
<div id="profileLink" style="text-decoration: underline; cursor: pointer;">
|
||||
<div id="profileLink"
|
||||
style="text-decoration: underline; cursor: pointer; font-size: 16px;">
|
||||
{{profileLink}}
|
||||
</div>
|
||||
{{else}}
|
||||
@@ -13,6 +14,7 @@
|
||||
<div id="navPanel">
|
||||
<core-item id="homeNav" icon="home" label="Home"></core-item>
|
||||
{{> characterSideList}}
|
||||
<core-item id="guide" icon="social:school" label="Guide"></core-item>
|
||||
<core-item id="feedback" icon="bug-report" label="Send Feedback"></core-item>
|
||||
<core-item id="changeLog" icon="list" label="Change Log"></core-item>
|
||||
</div>
|
||||
@@ -23,7 +25,7 @@
|
||||
transitions="hero-transition cross-fade"
|
||||
selected={{globalDetailSelected}}>
|
||||
<section id="mainContentSection" class={{notSelected}}>
|
||||
<core-header-panel fit mode="seamed">
|
||||
<core-header-panel fit mode="standard">
|
||||
{{> yield}}
|
||||
</core-header-panel>
|
||||
<div>
|
||||
|
||||
@@ -41,4 +41,8 @@ Template.layout.events({
|
||||
Router.go("changeLog");
|
||||
instance.find("core-drawer-panel").closeDrawer();
|
||||
},
|
||||
"tap #guide": function(event, instance) {
|
||||
Router.go("guide");
|
||||
instance.find("core-drawer-panel").closeDrawer();
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
.bigSpinner {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template name="loading">
|
||||
<core-toolbar class="blue-grey white-text">
|
||||
<core-toolbar class="app-grey white-text">
|
||||
<core-icon-button icon="menu" core-drawer-toggle></core-icon-button>
|
||||
</core-toolbar>
|
||||
<div fit layout vertical center center-justified>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template name="changeLog">
|
||||
<core-toolbar class="blue-grey white-text">
|
||||
<core-toolbar class="app-grey white-text">
|
||||
<core-icon-button icon="menu" core-drawer-toggle></core-icon-button>
|
||||
<div flex>
|
||||
Change Log
|
||||
|
||||
@@ -14,10 +14,11 @@ Template.baseDialog.helpers({
|
||||
showEdit: function() {
|
||||
if (this.hideEdit) return false;
|
||||
var charId = Template.parentData().charId;
|
||||
var userId = Meteor.userId();
|
||||
if (!userId) return false;
|
||||
if (charId){
|
||||
var char = Characters.findOne(charId);
|
||||
var userId = Meteor.userId();
|
||||
if (char && userId)
|
||||
if (char)
|
||||
return char.owner === userId ||
|
||||
_.contains(char.writers, userId);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template name="titledAtForm">
|
||||
<core-toolbar class="blue-grey white-text">
|
||||
<core-toolbar class="app-grey white-text">
|
||||
<core-icon-button icon="menu" core-drawer-toggle></core-icon-button>
|
||||
<div flex>
|
||||
|
||||
|
||||
@@ -158,3 +158,21 @@ ChangeLogs.insert({
|
||||
"Fixed reports from google users not correctly storing the reply-to email address",
|
||||
],
|
||||
});
|
||||
|
||||
ChangeLogs.insert({
|
||||
version: "0.5.6",
|
||||
changes: [
|
||||
"Changed front page",
|
||||
"Moved to a darker style",
|
||||
"Added support for letting characters be viewed by \"anyone with the link\"",
|
||||
],
|
||||
});
|
||||
|
||||
ChangeLogs.insert({
|
||||
version: "0.5.7",
|
||||
changes: [
|
||||
"Added proficiencies to backgrounds",
|
||||
"Added attacks to spells",
|
||||
"Added a move item dialog to mobile devices, but it can't be accessed yet, because long-presses are broken",
|
||||
],
|
||||
});
|
||||
|
||||
BIN
rpg-docs/public/crown-dice-logo-cropped-transparent.png
Normal file
BIN
rpg-docs/public/crown-dice-logo-cropped-transparent.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
@@ -8,55 +8,55 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
-->
|
||||
|
||||
<!--
|
||||
`paper-slider` allows user to select a value from a range of values by
|
||||
`paper-diff-slider` allows user to select a value from a range of values by
|
||||
moving the slider thumb. The interactive nature of the slider makes it a
|
||||
great choice for settings that reflect intensity levels, such as volume,
|
||||
brightness, or color saturation.
|
||||
|
||||
Example:
|
||||
|
||||
<paper-slider></paper-slider>
|
||||
<paper-diff-slider></paper-diff-slider>
|
||||
|
||||
Use `min` and `max` to specify the slider range. Default is 0 to 100.
|
||||
|
||||
Example:
|
||||
|
||||
<paper-slider min="10" max="200" value="110"></paper-slider>
|
||||
<paper-diff-slider min="10" max="200" value="110"></paper-diff-slider>
|
||||
|
||||
Styling slider:
|
||||
|
||||
To change the slider progress bar color:
|
||||
|
||||
paper-slider::shadow #sliderBar::shadow #activeProgress {
|
||||
paper-diff-slider::shadow #sliderBar::shadow #activeProgress {
|
||||
background-color: #0f9d58;
|
||||
}
|
||||
|
||||
To change the slider knob color:
|
||||
|
||||
paper-slider::shadow #sliderKnobInner {
|
||||
paper-diff-slider::shadow #sliderKnobInner {
|
||||
background-color: #0f9d58;
|
||||
}
|
||||
|
||||
To change the slider pin color:
|
||||
|
||||
paper-slider::shadow #sliderKnobInner::before {
|
||||
paper-diff-slider::shadow #sliderKnobInner::before {
|
||||
background-color: #0f9d58;
|
||||
}
|
||||
|
||||
To change the slider pin's font color:
|
||||
|
||||
paper-slider::shadow #sliderKnob > #sliderKnobInner::after {
|
||||
paper-diff-slider::shadow #sliderKnob > #sliderKnobInner::after {
|
||||
color: #0f9d58
|
||||
}
|
||||
|
||||
To change the slider secondary progress bar color:
|
||||
|
||||
paper-slider::shadow #sliderBar::shadow #secondaryProgress {
|
||||
paper-diff-slider::shadow #sliderBar::shadow #secondaryProgress {
|
||||
background-color: #0f9d58;
|
||||
}
|
||||
|
||||
@group Paper Elements
|
||||
@element paper-slider
|
||||
@element paper-diff-slider
|
||||
@extends core-range
|
||||
@homepage github.io
|
||||
-->
|
||||
@@ -65,10 +65,10 @@ To change the slider secondary progress bar color:
|
||||
<link rel="import" href="../../components/paper-progress/paper-progress.html">
|
||||
<link rel="import" href="../../components/paper-input/paper-input.html">
|
||||
|
||||
<polymer-element name="paper-slider" extends="core-range" attributes="snaps pin disabled secondaryProgress editable immediateValue" role="slider" tabindex="0" aria-valuemin="0" aria-valuemax="100">
|
||||
<polymer-element name="paper-diff-slider" extends="core-range" attributes="snaps pin disabled secondaryProgress editable immediateValue" role="slider" tabindex="0" aria-valuemin="0" aria-valuemax="100">
|
||||
<template>
|
||||
|
||||
<link rel="stylesheet" href="paper-slider.css">
|
||||
<link rel="stylesheet" href="paper-diff-slider.css">
|
||||
|
||||
<template if="{{!disabled}}">
|
||||
<core-a11y-keys target="{{}}" keys="left down pagedown home" on-keys-pressed="{{decrementKey}}"></core-a11y-keys>
|
||||
@@ -109,7 +109,7 @@ To change the slider secondary progress bar color:
|
||||
</template>
|
||||
<script>
|
||||
|
||||
Polymer('paper-slider', {
|
||||
Polymer('paper-diff-slider', {
|
||||
|
||||
/**
|
||||
* Fired when the slider's value changes.
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 60 KiB |
@@ -1,12 +1,12 @@
|
||||
Meteor.publish("singleCharacter", function(characterId){
|
||||
userId = this.userId;
|
||||
if (!userId) return [];
|
||||
var char = Characters.findOne({
|
||||
_id: characterId,
|
||||
$or: [
|
||||
{readers: userId},
|
||||
{writers: userId},
|
||||
{owner: userId},
|
||||
{"settings.viewPermission": "public"},
|
||||
],
|
||||
});
|
||||
if (char){
|
||||
|
||||
Reference in New Issue
Block a user