From 37268495ae336bb5934006c1be5dab992963bd26 Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Thu, 22 Dec 2016 11:15:30 +0200 Subject: [PATCH] Got some Polymer 1.0 elements working with 1.4 Character sheets now visible, but vulcanize broke, using raw head imports instead --- rpg-docs/.meteor/packages | 1 - rpg-docs/.meteor/versions | 1 - rpg-docs/Routes/Routes.js | 8 + rpg-docs/bower.json | 11 +- rpg-docs/client/views/layout/layout.html | 73 ++-- rpg-docs/client/views/layout/layout.js | 18 +- .../client/views/layout/polymer.imports.html | 43 -- .../client/views/layout/polymerImports.html | 36 ++ rpg-docs/client/views/layout/testLayout.html | 11 + .../views/private/GeneralCSS/globalDetail.css | 4 +- .../private/character/characterSheet.css | 6 +- .../private/character/characterSheet.html | 96 ++--- .../views/private/character/characterSheet.js | 9 +- .../private/character/features/features.css | 2 +- .../private/character/features/features.html | 16 +- .../character/inventory/inventory.html | 24 +- .../moveItemDialog/moveItemDialog.html | 4 +- .../private/character/journal/journal.html | 12 +- .../private/character/persona/persona.html | 12 +- .../proficiencyListItem.html | 4 +- .../proficiencyView/proficiencyView.html | 2 +- .../views/private/character/spells/spells.css | 4 +- .../private/character/spells/spells.html | 12 +- .../stats/abilityCards/abilityCards.html | 4 +- .../stats/healthCard/healthCard.html | 4 +- .../character/stats/hitDice/hitDice.html | 4 +- .../stats/skillDialog/skillDialog.html | 2 +- .../character/stats/skillRow/skillRow.html | 2 +- .../views/private/character/stats/stats.css | 2 +- .../views/private/character/stats/stats.html | 12 +- .../private/characterList/characterList.html | 6 +- .../characterList/characterSideList.css | 2 +- .../characterList/characterSideList.html | 2 +- .../client/views/private/guide/guide.html | 10 +- rpg-docs/client/views/private/home/home.html | 8 +- .../views/private/home/intro/intro.html | 8 +- .../client/views/private/loading/loading.html | 6 +- .../private/meta/changeLog/changeLog.html | 10 +- .../views/private/notFound/notFound.html | 6 +- .../paperTemplates/fabMenu/fabMenu.scss | 4 +- .../client/views/private/testContent.html | 3 + .../views/private/user/profile/profile.html | 6 +- .../user/titledAtForm/titledAtForm.html | 10 +- rpg-docs/config.vulcanize | 58 +-- rpg-docs/package.json | 2 + .../vulcanize-new-1rnrsz4/npm-shrinkwrap.json | 89 ++++ .../plugin/vulcanize-new-1rnrsz4/package.json | 1 + .../.npm/plugin/vulcanize/npm-shrinkwrap.json | 387 +++++++++++++++++- rpg-docs/public/_imports.html | 1 + .../public/custom_components/app-theme.html | 6 + 50 files changed, 749 insertions(+), 315 deletions(-) delete mode 100644 rpg-docs/client/views/layout/polymer.imports.html create mode 100644 rpg-docs/client/views/layout/polymerImports.html create mode 100644 rpg-docs/client/views/layout/testLayout.html create mode 100644 rpg-docs/client/views/private/testContent.html create mode 100644 rpg-docs/packages/meteor-vulcanize/.npm/plugin/vulcanize-new-1rnrsz4/npm-shrinkwrap.json create mode 100644 rpg-docs/packages/meteor-vulcanize/.npm/plugin/vulcanize-new-1rnrsz4/package.json create mode 100644 rpg-docs/public/_imports.html create mode 100644 rpg-docs/public/custom_components/app-theme.html diff --git a/rpg-docs/.meteor/packages b/rpg-docs/.meteor/packages index b23d4b1f..c2305b10 100644 --- a/rpg-docs/.meteor/packages +++ b/rpg-docs/.meteor/packages @@ -3,7 +3,6 @@ # 'meteor add' and 'meteor remove' will edit this file for you, # but you can also edit it by hand. -thaum:vulcanize iron:router accounts-password@1.3.3 accounts-ui@1.1.9 diff --git a/rpg-docs/.meteor/versions b/rpg-docs/.meteor/versions index 1598e049..7bdf3093 100644 --- a/rpg-docs/.meteor/versions +++ b/rpg-docs/.meteor/versions @@ -110,7 +110,6 @@ spacebars@1.0.13 spacebars-compiler@1.0.13 splendido:accounts-emails-field@1.2.0 splendido:accounts-meld@1.3.1 -thaum:vulcanize@2.2.0 srp@1.0.10 standard-minifier-js@1.2.1 templating@1.2.15 diff --git a/rpg-docs/Routes/Routes.js b/rpg-docs/Routes/Routes.js index f3fe9fdd..14f64014 100644 --- a/rpg-docs/Routes/Routes.js +++ b/rpg-docs/Routes/Routes.js @@ -21,6 +21,14 @@ Router.map(function() { }, }); + this.route("testContent", { + path: "/test", + onAfterAction: function() { + document.title = appName; + }, + layoutTemplate: "testLayout", + }); + this.route("characterList", { path: "/characterList", waitOn: function(){ diff --git a/rpg-docs/bower.json b/rpg-docs/bower.json index 73e21394..fa6aa300 100644 --- a/rpg-docs/bower.json +++ b/rpg-docs/bower.json @@ -15,10 +15,13 @@ "tests" ], "dependencies": { - "paper-elements": "PolymerElements/paper-elements#~1.0.7", - "iron-elements": "PolymerElements/iron-elements#~1.0.10", - "marked-element": "PolymerElements/marked-element#~1.2.0", - "app-layout": "PolymerElements/app-layout#~0.10.4" + "polymer": "Polymer/polymer#^1.0.0", + "iron-elements": "PolymerElements/iron-elements#^1.0.0", + "platinum-elements": "PolymerElements/platinum-elements#^1.0.1", + "neon-elements": "PolymerElements/neon-elements#^1.0.0", + "paper-elements": "PolymerElements/paper-elements#^1.0.7", + "app-elements": "PolymerElements/app-elements#^0.10.1", + "marked-element": "PolymerElements/marked-element#^1.2.0" }, "resolutions": { "webcomponentsjs": "0.7.23" diff --git a/rpg-docs/client/views/layout/layout.html b/rpg-docs/client/views/layout/layout.html index d966d54a..605b107e 100644 --- a/rpg-docs/client/views/layout/layout.html +++ b/rpg-docs/client/views/layout/layout.html @@ -1,33 +1,47 @@ diff --git a/rpg-docs/client/views/private/character/proficiencies/proficiencyListItem/proficiencyListItem.html b/rpg-docs/client/views/private/character/proficiencies/proficiencyListItem/proficiencyListItem.html index 944e9eb4..5aa48af0 100644 --- a/rpg-docs/client/views/private/character/proficiencies/proficiencyListItem/proficiencyListItem.html +++ b/rpg-docs/client/views/private/character/proficiencies/proficiencyListItem/proficiencyListItem.html @@ -3,8 +3,8 @@
- +
{{getName}}
diff --git a/rpg-docs/client/views/private/character/proficiencies/proficiencyView/proficiencyView.html b/rpg-docs/client/views/private/character/proficiencies/proficiencyView/proficiencyView.html index 5d79e37f..46020343 100644 --- a/rpg-docs/client/views/private/character/proficiencies/proficiencyView/proficiencyView.html +++ b/rpg-docs/client/views/private/character/proficiencies/proficiencyView/proficiencyView.html @@ -2,7 +2,7 @@
- +
{{getName}}
diff --git a/rpg-docs/client/views/private/character/spells/spells.css b/rpg-docs/client/views/private/character/spells/spells.css index 4b00a80c..4fe22baa 100644 --- a/rpg-docs/client/views/private/character/spells/spells.css +++ b/rpg-docs/client/views/private/character/spells/spells.css @@ -6,7 +6,7 @@ height: 56px; } -#spells .inventoryItem core-icon{ +#spells .inventoryItem iron-icon{ width: 32px; height: 32px; } @@ -18,7 +18,7 @@ cursor: pointer !important; } -#spells .inventoryItem[disabled] core-icon{ +#spells .inventoryItem[disabled] iron-icon{ color: #ccc !important; color: rgba(0,0,0,0.26) !important; } diff --git a/rpg-docs/client/views/private/character/spells/spells.html b/rpg-docs/client/views/private/character/spells/spells.html index 4dc1a671..7ea409f8 100644 --- a/rpg-docs/client/views/private/character/spells/spells.html +++ b/rpg-docs/client/views/private/character/spells/spells.html @@ -4,7 +4,7 @@
{{#if hasSlots}} -
{{/if}}{{/each}}
-
+ {{/if}} {{#each spellLists}} -
- + >
{{name}}
@@ -122,7 +122,7 @@
{{/each}}
- + {{/each}}
diff --git a/rpg-docs/client/views/private/character/stats/abilityCards/abilityCards.html b/rpg-docs/client/views/private/character/stats/abilityCards/abilityCards.html index f82ffe0c..3a05ec9e 100644 --- a/rpg-docs/client/views/private/character/stats/abilityCards/abilityCards.html +++ b/rpg-docs/client/views/private/character/stats/abilityCards/abilityCards.html @@ -1,6 +1,6 @@ diff --git a/rpg-docs/client/views/private/character/stats/healthCard/healthCard.html b/rpg-docs/client/views/private/character/stats/healthCard/healthCard.html index f9626b51..3a9ee647 100644 --- a/rpg-docs/client/views/private/character/stats/healthCard/healthCard.html +++ b/rpg-docs/client/views/private/character/stats/healthCard/healthCard.html @@ -1,5 +1,5 @@ diff --git a/rpg-docs/client/views/private/character/stats/hitDice/hitDice.html b/rpg-docs/client/views/private/character/stats/hitDice/hitDice.html index 7e41d789..8f5489f8 100644 --- a/rpg-docs/client/views/private/character/stats/hitDice/hitDice.html +++ b/rpg-docs/client/views/private/character/stats/hitDice/hitDice.html @@ -1,7 +1,7 @@ diff --git a/rpg-docs/client/views/private/character/stats/skillDialog/skillDialog.html b/rpg-docs/client/views/private/character/stats/skillDialog/skillDialog.html index 10953f17..d2ad5908 100644 --- a/rpg-docs/client/views/private/character/stats/skillDialog/skillDialog.html +++ b/rpg-docs/client/views/private/character/stats/skillDialog/skillDialog.html @@ -11,7 +11,7 @@ {{characterCalculate "skillMod" charId skillName}}
- + {{#if profSource}} {{proficiencyValue}} - {{#with profSource}}{{sourceName}}{{/with}} {{else}} diff --git a/rpg-docs/client/views/private/character/stats/skillRow/skillRow.html b/rpg-docs/client/views/private/character/stats/skillRow/skillRow.html index c40d6460..d8f7db0c 100644 --- a/rpg-docs/client/views/private/character/stats/skillRow/skillRow.html +++ b/rpg-docs/client/views/private/character/stats/skillRow/skillRow.html @@ -4,7 +4,7 @@ hero-id="main" {{detailHero skill ../_id}} layout horizontal center> - + {{#if failSkill}}
fail
{{else}} diff --git a/rpg-docs/client/views/private/character/stats/stats.css b/rpg-docs/client/views/private/character/stats/stats.css index 343afeb5..fe8f696e 100644 --- a/rpg-docs/client/views/private/character/stats/stats.css +++ b/rpg-docs/client/views/private/character/stats/stats.css @@ -46,6 +46,6 @@ background-color: rgba(0,0,0,0.6); } -section:not(.core-selected):not([animate]) paper-shadow[hero] { +section:not(.core-selected):not([animate]) paper-material[hero] { visibility: hidden; } \ No newline at end of file diff --git a/rpg-docs/client/views/private/character/stats/stats.html b/rpg-docs/client/views/private/character/stats/stats.html index 6aeff4c7..3f3df6ab 100644 --- a/rpg-docs/client/views/private/character/stats/stats.html +++ b/rpg-docs/client/views/private/character/stats/stats.html @@ -28,7 +28,7 @@ {{>hitDice name="d12HitDice" diceNum="12" char=this}}
- +
Saving Throws
@@ -40,11 +40,11 @@ {{> skillRow name="Wisdom" skill="wisdomSave"}} {{> skillRow name="Charisma" skill="charismaSave"}}
- +
- +
Skills
@@ -68,7 +68,7 @@ {{> skillRow name="Stealth" skill="stealth"}} {{> skillRow name="Survival" skill="survival"}}
- + @@ -76,7 +76,7 @@ diff --git a/rpg-docs/client/views/private/characterList/characterList.html b/rpg-docs/client/views/private/characterList/characterList.html index 66923574..1ceaa1d7 100644 --- a/rpg-docs/client/views/private/characterList/characterList.html +++ b/rpg-docs/client/views/private/characterList/characterList.html @@ -1,10 +1,10 @@ diff --git a/rpg-docs/client/views/private/home/intro/intro.html b/rpg-docs/client/views/private/home/intro/intro.html index 89b762a5..ce00f177 100644 --- a/rpg-docs/client/views/private/home/intro/intro.html +++ b/rpg-docs/client/views/private/home/intro/intro.html @@ -36,7 +36,7 @@ Check out the example characters
-
@@ -44,8 +44,8 @@
Lawful Good Human
-
- +
@@ -53,7 +53,7 @@
Chaotic Good High Elf
-
+
diff --git a/rpg-docs/client/views/private/loading/loading.html b/rpg-docs/client/views/private/loading/loading.html index cd3f21a2..7c32486a 100644 --- a/rpg-docs/client/views/private/loading/loading.html +++ b/rpg-docs/client/views/private/loading/loading.html @@ -1,7 +1,7 @@