-
diff --git a/rpg-docs/client/views/character/journal/journal.js b/rpg-docs/client/views/character/journal/journal.js
index 959b0d15..a1cbef98 100644
--- a/rpg-docs/client/views/character/journal/journal.js
+++ b/rpg-docs/client/views/character/journal/journal.js
@@ -50,6 +50,9 @@ Template.journal.helpers({
var char = Characters.findOne(this._id, {fields: {race: 1}});
return char && char.race;
},
+ shouldRaceBounce: function(){
+ return Session.get("newUserExperienceStep") === 1;
+ },
});
Template.journal.events({
diff --git a/rpg-docs/client/views/character/newUserStepper/newUserStepper.css b/rpg-docs/client/views/character/newUserStepper/newUserStepper.css
new file mode 100644
index 00000000..e06786f2
--- /dev/null
+++ b/rpg-docs/client/views/character/newUserStepper/newUserStepper.css
@@ -0,0 +1,12 @@
+.newUserStepper {
+ height: 300px !important;
+}
+
+.newUserStepper paper-step .invalid-step-message {
+ color: #d13b2e;
+ visibility: hidden;
+}
+
+.newUserStepper paper-step[invalid] .invalid-step-message {
+ visibility: visible;
+}
diff --git a/rpg-docs/client/views/character/newUserStepper/newUserStepper.html b/rpg-docs/client/views/character/newUserStepper/newUserStepper.html
new file mode 100644
index 00000000..4560145b
--- /dev/null
+++ b/rpg-docs/client/views/character/newUserStepper/newUserStepper.html
@@ -0,0 +1,26 @@
+
+
+
+
+ To get started, add a feature
+
+
+
+
+ Add a racial effect to set your speed
+
+
+
+
+ View your speed stat
+
+
+
+ If you get stuck, be sure to check out the guide, or ask for help using the feedback form.
+
+
+
+
+
+
+
diff --git a/rpg-docs/client/views/character/newUserStepper/newUserStepper.js b/rpg-docs/client/views/character/newUserStepper/newUserStepper.js
new file mode 100644
index 00000000..05e9b49d
--- /dev/null
+++ b/rpg-docs/client/views/character/newUserStepper/newUserStepper.js
@@ -0,0 +1,41 @@
+Template.newUserStepper.onRendered(function(){
+ let stepper = this.find("paper-stepper");
+ this.autorun((c) => {
+ var step = Session.get("newUserExperienceStep");
+ var hasFeatures = Features.find({charId: this.data._id}).count() > 1
+ if (step === 0 && hasFeatures){
+ stepper.continue();
+ c.stop();
+ }
+ });
+ this.autorun((c) => {
+ var step = Session.get("newUserExperienceStep");
+ var hasEffect = !!Effects.find({
+ charId: this.data._id,
+ stat: "speed",
+ }).count();
+ if (step === 1 && hasEffect){
+ stepper.continue();
+ c.stop();
+ }
+ });
+ this.autorun((c) => {
+ var step = Session.get("newUserExperienceStep");
+ if (step === 2 && Session.get("viewedSpeed")){
+ stepper.continue();
+ c.stop();
+ }
+ });
+});
+
+Template.newUserStepper.events({
+ "paper-stepper-progressed paper-stepper": function(event, template){
+ const step = template.find("paper-stepper").selected;
+ Session.set("newUserExperienceStep", step);
+ },
+ "paper-stepper-completed paper-stepper": function(event, template){
+ Session.set("newUserExperienceStep", undefined);
+ Session.set("showNewUserExperience", undefined);
+ Characters.update(this._id, {$unset: {"settings.newUserExperience": 1}});
+ },
+});
diff --git a/rpg-docs/client/views/paperTemplates/infoBox/infoBox.css b/rpg-docs/client/views/paperTemplates/infoBox/infoBox.css
new file mode 100644
index 00000000..933dc37c
--- /dev/null
+++ b/rpg-docs/client/views/paperTemplates/infoBox/infoBox.css
@@ -0,0 +1,15 @@
+.infoBox iron-icon {
+ color: #747474;
+ color: rgba(0,0,0,0.54);
+ height: 32px;
+ width: 32px;
+ margin-right: 12px;
+}
+
+.infoBox > div > p {
+ margin: 0;
+}
+
+.infoBox > div > p + p {
+ margin-top: 10px;
+}
diff --git a/rpg-docs/client/views/paperTemplates/infoBox/infoBox.html b/rpg-docs/client/views/paperTemplates/infoBox/infoBox.html
new file mode 100644
index 00000000..bc86be2d
--- /dev/null
+++ b/rpg-docs/client/views/paperTemplates/infoBox/infoBox.html
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+ {{> Template.contentBlock}}
+
+
+
diff --git a/rpg-docs/config.vulcanize b/rpg-docs/config.vulcanize
index 0e27de89..fbdd8a9c 100644
--- a/rpg-docs/config.vulcanize
+++ b/rpg-docs/config.vulcanize
@@ -49,6 +49,7 @@
"/custom_components/dicecloud-wrapper/dicecloud-wrapper.html",
"/custom_components/paper-checkbox/paper-checkbox.html",
"/custom_components/paper-diff-slider/paper-diff-slider.html",
+ "/custom_components/paper-stepper/paper-stepper.html",
"/custom_components/app-theme.html"
]
}
diff --git a/rpg-docs/lib/constants/useraccountsConfig.js b/rpg-docs/lib/constants/useraccountsConfig.js
index 297ede35..6d4879bc 100644
--- a/rpg-docs/lib/constants/useraccountsConfig.js
+++ b/rpg-docs/lib/constants/useraccountsConfig.js
@@ -2,7 +2,7 @@ AccountsTemplates.configure({
//behaviour
confirmPassword: true,
enablePasswordChange: true,
- enforceEmailVerification: true,
+ enforceEmailVerification: false,
overrideLoginErrors: false,
sendVerificationEmail: true,
lowercaseUsername: true,
@@ -21,35 +21,35 @@ AccountsTemplates.configure({
AccountsTemplates.configureRoute("changePwd", {
template: "titledAtForm",
- layoutTemplate: 'layout',
+ layoutTemplate: "layout",
});
AccountsTemplates.configureRoute("enrollAccount", {
template: "titledAtForm",
- layoutTemplate: 'layout',
+ layoutTemplate: "layout",
});
AccountsTemplates.configureRoute("forgotPwd", {
template: "titledAtForm",
- layoutTemplate: 'layout',
+ layoutTemplate: "layout",
});
AccountsTemplates.configureRoute("resetPwd", {
template: "titledAtForm",
- layoutTemplate: 'layout',
+ layoutTemplate: "layout",
});
AccountsTemplates.configureRoute("signIn", {
template: "titledAtForm",
- layoutTemplate: 'layout',
+ layoutTemplate: "layout",
});
AccountsTemplates.configureRoute("signUp", {
template: "titledAtForm",
- layoutTemplate: 'layout',
+ layoutTemplate: "layout",
});
AccountsTemplates.configureRoute("verifyEmail", {
template: "titledAtForm",
- layoutTemplate: 'layout',
+ layoutTemplate: "layout",
});
AccountsTemplates.configureRoute("resendVerificationEmail", {
template: "titledAtForm",
- layoutTemplate: 'layout',
+ layoutTemplate: "layout",
});
if (Meteor.isServer){
diff --git a/rpg-docs/public/custom_components/paper-stepper/animations/fade-in-slide-from-left-animation.html b/rpg-docs/public/custom_components/paper-stepper/animations/fade-in-slide-from-left-animation.html
new file mode 100644
index 00000000..860a4381
--- /dev/null
+++ b/rpg-docs/public/custom_components/paper-stepper/animations/fade-in-slide-from-left-animation.html
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
diff --git a/rpg-docs/public/custom_components/paper-stepper/animations/fade-in-slide-from-right-animation.html b/rpg-docs/public/custom_components/paper-stepper/animations/fade-in-slide-from-right-animation.html
new file mode 100644
index 00000000..03998381
--- /dev/null
+++ b/rpg-docs/public/custom_components/paper-stepper/animations/fade-in-slide-from-right-animation.html
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
diff --git a/rpg-docs/public/custom_components/paper-stepper/animations/fade-out-slide-left-animation.html b/rpg-docs/public/custom_components/paper-stepper/animations/fade-out-slide-left-animation.html
new file mode 100644
index 00000000..48f48ea5
--- /dev/null
+++ b/rpg-docs/public/custom_components/paper-stepper/animations/fade-out-slide-left-animation.html
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
diff --git a/rpg-docs/public/custom_components/paper-stepper/animations/fade-out-slide-right-animation.html b/rpg-docs/public/custom_components/paper-stepper/animations/fade-out-slide-right-animation.html
new file mode 100644
index 00000000..90ffd990
--- /dev/null
+++ b/rpg-docs/public/custom_components/paper-stepper/animations/fade-out-slide-right-animation.html
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
diff --git a/rpg-docs/public/custom_components/paper-stepper/bower.json b/rpg-docs/public/custom_components/paper-stepper/bower.json
new file mode 100644
index 00000000..1b410d4e
--- /dev/null
+++ b/rpg-docs/public/custom_components/paper-stepper/bower.json
@@ -0,0 +1,48 @@
+{
+ "name": "paper-stepper",
+ "version": "2.0-beta.5",
+ "authors": [
+ "Zecat
"
+ ],
+ "description": "Material paper-stepper element.",
+ "keywords": [
+ "web-component",
+ "polymer",
+ "seed"
+ ],
+ "main": "paper-stepper.html",
+ "license": "http://polymer.github.io/LICENSE.txt",
+ "homepage": "https://github.com/zecat/paper-stepper/",
+ "ignore": [
+ "/.*",
+ "/test/"
+ ],
+ "dependencies": {
+ "polymer": "Polymer/polymer#^1.2.0",
+ "paper-button": "PolymerElements/paper-button#^1.0.11",
+ "iron-icons": "PolymerElements/iron-icons#^1.1.3",
+ "paper-styles": "PolymerElements/paper-styles#^1.1.4",
+ "paper-ripple": "PolymerElements/paper-ripple#^1.0.5",
+ "iron-selector": "PolymerElements/iron-selector#^1.3.0",
+ "iron-icon": "PolymerElements/iron-icon#^1.0.8",
+ "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.3.1",
+ "neon-animation": "PolymerElements/neon-animation#^1.1.1",
+ "iron-validatable-behavior": "PolymerElements/iron-validatable-behavior#^1.0.5",
+ "iron-collapse": "PolymerElements/iron-collapse#^1.2.0"
+ },
+ "devDependencies": {
+ "paper-input": "PolymerElements/paper-input#^1.1.10",
+ "paper-material": "PolymerElements/paper-material#^1.0.6",
+ "iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
+ "web-component-tester": "*",
+ "iron-form": "PolymerElements/iron-form#^1.0.16",
+ "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.2.2",
+ "paper-toggle-button": "PolymerElements/paper-toggle-button#^1.2.0",
+ "app-layout": "PolymerElements/app-layout#^0.10.2",
+ "paper-menu": "PolymerElements/paper-menu#^1.2.2",
+ "iron-scroll-spy": "Zecat/iron-scroll-spy#^2.1.0",
+ "paper-item": "PolymerElements/paper-item#^1.2.1",
+ "paper-toast": "PolymerElements/paper-toast#^1.3.0",
+ "paper-checkbox": "PolymerElements/paper-checkbox#^1.4.0"
+ }
+}
diff --git a/rpg-docs/public/custom_components/paper-stepper/hero.svg b/rpg-docs/public/custom_components/paper-stepper/hero.svg
new file mode 100644
index 00000000..3e1081d1
--- /dev/null
+++ b/rpg-docs/public/custom_components/paper-stepper/hero.svg
@@ -0,0 +1,27 @@
+
+
+
+
diff --git a/rpg-docs/public/custom_components/paper-stepper/paper-step.html b/rpg-docs/public/custom_components/paper-stepper/paper-step.html
new file mode 100644
index 00000000..9cdcf904
--- /dev/null
+++ b/rpg-docs/public/custom_components/paper-stepper/paper-step.html
@@ -0,0 +1,424 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/rpg-docs/public/custom_components/paper-stepper/paper-stepper.html b/rpg-docs/public/custom_components/paper-stepper/paper-stepper.html
new file mode 100644
index 00000000..889c07b8
--- /dev/null
+++ b/rpg-docs/public/custom_components/paper-stepper/paper-stepper.html
@@ -0,0 +1,735 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/rpg-docs/public/custom_components/paper-stepper/step-horizontal-label.html b/rpg-docs/public/custom_components/paper-stepper/step-horizontal-label.html
new file mode 100644
index 00000000..04907f41
--- /dev/null
+++ b/rpg-docs/public/custom_components/paper-stepper/step-horizontal-label.html
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [[label]]
+
+ [[stepperData.optionalText]]
+
+
+
+
+
+
diff --git a/rpg-docs/public/custom_components/paper-stepper/step-label-behavior.html b/rpg-docs/public/custom_components/paper-stepper/step-label-behavior.html
new file mode 100644
index 00000000..ed995ee7
--- /dev/null
+++ b/rpg-docs/public/custom_components/paper-stepper/step-label-behavior.html
@@ -0,0 +1,58 @@
+
+
+
diff --git a/rpg-docs/public/custom_components/paper-stepper/step-label-shared-styles.html b/rpg-docs/public/custom_components/paper-stepper/step-label-shared-styles.html
new file mode 100644
index 00000000..4a1e1d60
--- /dev/null
+++ b/rpg-docs/public/custom_components/paper-stepper/step-label-shared-styles.html
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/rpg-docs/public/custom_components/paper-stepper/step-vertical.html b/rpg-docs/public/custom_components/paper-stepper/step-vertical.html
new file mode 100644
index 00000000..9eb8530b
--- /dev/null
+++ b/rpg-docs/public/custom_components/paper-stepper/step-vertical.html
@@ -0,0 +1,177 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [[label]]
+
+ [[stepperData.optionalText]]
+
+
+
+
+
+
+
+
+
+