This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="pug"> | |
.simple-paginator | |
ul.paginator | |
li.item(@click="$dispatch('click-page', 1)" v-show="existPrevPage") | |
i.fa.fa-angle-double-left | |
li.item(@click="$dispatch('click-page', currentPage-1)" v-show="existPrevPage") | |
i.fa.fa-angle-left | |
li.item(@click="$dispatch('click-page', currentPage-window-1)" v-show="existBeforePages") | |
i.fa.fa-ellipsis-h | |
li.item( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="pug"> | |
.simple-modal | |
.outer(@click="hide", :style="active ? { opacity: 1, visibility: 'visible'} : { opacity: 0, visibility: 'hidden' }") | |
.inner(:class="{'-medium': size == 'medium', '-large': size == 'large'}" @click.stop="") | |
.header(v-if="header") | |
slot(name="header") | |
.content | |
slot | |
.footer(v-if="footer") | |
slot(name="footer") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="pug"> | |
.image-preview-form | |
img.image(:src="previewImageUrl") | |
label.inputwrap(for="input") | |
span.button(v-text="buttonText") | |
input#input.input(type="file" @change="imageInputChange") | |
</template> | |
<script lang="coffee"> | |
URL = window.URL || window.webkitURL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="pug"> | |
.flexible-image(:style="{width: width + unit, height: height + unit}") | |
img.image(:src="imageUrl" :style="{width: fixedWidth + unit, height: fixedHidth + unit}") | |
</template> | |
<script lang="coffee"> | |
export default | |
props: | |
imageUrl: | |
type: String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Settings | |
// | |
Vue.config.debug = process.env.NODE_ENV == 'development'; | |
Vue.config.devtools = process.env.NODE_ENV == 'development'; | |
Vue.config.productionTip = process.env.NODE_ENV == 'development'; | |
Vue.config.silent = process.env.NODE_ENV != 'development'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@require '../styles/_variables.styl' | |
@require './_shadow' | |
card(depth = 1) | |
shadow(depth) | |
padding: base-spacing | |
border-radius: base-border-radius | |
&:hover | |
shadow(depth + 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def send_or_call(duck, object) | |
if duck.respond_to?(:call) | |
duck.call(object) | |
elsif object.respond_to? duck.to_sym | |
object.send(duck) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="pug"> | |
.smart-calendar | |
.buttons | |
button.prev(@click="subtractMonth") ◀ | |
button.next(@click="addMonth") ▶ | |
p.title {{currentYear}}年 {{currentMonth}}月 | |
table.table | |
thead.head | |
tr.row | |
td.col(v-for="dayOfWeek in weekIndexes", :class="headClass(dayOfWeek)") {{$_calendarable_weekNames[dayOfWeek]}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :seed_fu_gen do | |
desc 'generate seed-fu file for line.' | |
task dump: :environment do |_t| | |
j = ActiveSupport::JSON | |
%w( | |
Affiliation | |
AimCategory | |
AimScale |