This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Address to follow Polymer 2.0

  • Loading branch information...
KitaitiMakoto committed Dec 4, 2016
1 parent 29d7a48 commit 8bd0c722cdeea984948ee4ebc89f5a3dfd5c74ca
Showing with 216 additions and 169 deletions.
  1. +7 −2 bower.json
  2. +36 −1 config.rb
  3. +2 −1 source/components/elements.html
  4. +3 −3 source/layouts/blog.erb
  5. +4 −4 source/layouts/layout.erb
  6. +164 −158 source/stylesheets/theme.html
@@ -18,7 +18,12 @@
],
"dependencies": {
"polymer": "Polymer/polymer#2.0-preview",
"iron-elements": "PolymerElements/iron-elements#~1.0.4",
"paper-elements": "PolymerElements/paper-elements#~1.0.5"
"paper-button": "2.0-preview",
"paper-ripple": "PolymerElements/paper-ripple#2.0-preview",
"iron-ajax": "2.0-preview",
"paper-header-panel": "2.0-preview",
"paper-toolbar": "2.0-preview",
"paper-card": "PolymerElements/paper-card#2.0-preview",
"paper-input": "2.0-preview"
}
}
@@ -50,7 +50,42 @@ def encode_url_path_segments(path)

used_bower_components = %w[
promise-polyfill/Promise.js
webcomponentsjs/webcomponents.min.js
webcomponentsjs/webcomponents-lite.js
webcomponentsjs/src/URL/URL.js
webcomponentsjs/src/WeakMap/WeakMap.js
webcomponentsjs/src/Template/Template.js
webcomponentsjs/src/HTMLImports/HTMLImports.js
webcomponentsjs/src/WebComponents/Promise.js
webcomponentsjs/src/WebComponents/pre-polyfill.js
webcomponentsjs/src/WebComponents/post-polyfill.js
webcomponentsjs/src/WebComponents/lang.js
webcomponentsjs/src/WebComponents/dom.js
webcomponentsjs/src/WebComponents/unresolved.js
webcomponentsjs/src/MutationObserver/MutationObserver.js
webcomponentsjs/src/HTMLImports/base.js
webcomponentsjs/src/HTMLImports/module.js
webcomponentsjs/src/HTMLImports/path.js
webcomponentsjs/src/HTMLImports/xhr.js
webcomponentsjs/src/HTMLImports/Loader.js
webcomponentsjs/src/HTMLImports/Observer.js
webcomponentsjs/src/HTMLImports/parser.js
webcomponentsjs/src/HTMLImports/importer.js
webcomponentsjs/src/HTMLImports/dynamic.js
webcomponentsjs/src/HTMLImports/boot.js
webcomponentsjs/src/MutationObserver/MutationObserver.js
webcomponentsjs/src/HTMLImports/base.js
webcomponentsjs/src/HTMLImports/module.js
webcomponentsjs/src/HTMLImports/path.js
webcomponentsjs/src/HTMLImports/xhr.js
webcomponentsjs/src/HTMLImports/Loader.js
webcomponentsjs/src/HTMLImports/Observer.js
webcomponentsjs/src/HTMLImports/parser.js
webcomponentsjs/src/HTMLImports/importer.js
webcomponentsjs/src/HTMLImports/dynamic.js
webcomponentsjs/src/HTMLImports/boot.js
custom-elements/custom-elements.min.js
shadydom/shadydom.min.js
shadycss/shadycss.min.js
]

ignore do |path|
@@ -1,3 +1,4 @@
<link href=../bower_components/polymer/polymer-element.html rel=import>
<link href=../bower_components/polymer/polymer.html rel=import>
<link href=../bower_components/iron-ajax/iron-ajax.html rel=import>
<link href=../bower_components/paper-ripple/paper-ripple.html rel=import>
@@ -8,7 +9,7 @@
<link href=../bower_components/paper-input/paper-input.html rel=import>
<link href=../stylesheets/theme.html rel=import>

<dom-module is=blog-search>
<dom-module is=blog-search id=blog-search>
<template>
<style>
:host {
@@ -9,7 +9,7 @@
<title><%= current_page.data.title || data.site.title %></title>

<%= partial 'android_firefox' %>
<%= javascript_include_tag '../bower_components/webcomponentsjs/webcomponents.min.js' %>
<%= javascript_include_tag '../bower_components/webcomponentsjs/webcomponents-lite.js' %>
<%= component_import_tag :elements %>

<link href='//fonts.googleapis.com/css?family=Lato:300,400' rel='stylesheet' type='text/css'>
@@ -32,15 +32,15 @@

<body class="<%= page_classes %>" unresolved>
<paper-header-panel>
<paper-toolbar>
<paper-toolbar slot=header>
<h2 class="site-title">
<% link_to '/index.html' do %>
<%=h data.site.title %>
<paper-ripple></paper-ripple>
<% end %>
</h2>
</paper-toolbar>
<article>
<article slot=content>
<header>
<paper-card>
<h1><%= current_page.data.title %></h1>
@@ -10,7 +10,7 @@
<title><%= current_page.data.title || data.site.title %></title>

<%= partial 'android_firefox' %>
<script src="<%= url_for('/bower_components/webcomponentsjs/webcomponents.min.js') %>"></script>
<script src="<%= url_for('/bower_components/webcomponentsjs/webcomponents-lite.js') %>"></script>
<%= component_import_tag :elements %>

<link href='//fonts.googleapis.com/css?family=Lato:300,400' rel='stylesheet' type='text/css'>
@@ -32,13 +32,13 @@

<body class="<%= page_classes %>" unresolved>
<paper-header-panel mode=waterfall-tall>
<paper-toolbar>
<paper-toolbar slot=header>
<h1 class=site-title><%= link_to data.site.title, '/index.html' %></h1>
</paper-toolbar>
<main>
<main slot=content>
<%= yield %>
</main>
<footer>
<footer slot=content>
<%= partial 'adjacent', :locals => {
:next_page_info => {:page => prev_page, :label => "#{per_page}日分"},
:previous_page_info => {:page => next_page, :label => "#{per_page}日分"}
Oops, something went wrong.

0 comments on commit 8bd0c72

Please sign in to comment.