- Password
- Touch ID
- Dock
- keyborad
- 装飾キー
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
type: | |
type: enum | |
required: true | |
description: 'commit type' | |
values: | |
- | |
name: feat | |
description: 'when implementing function' | |
- | |
name: fix |
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
# spec/support/session_helper.rb | |
module SessionHelper | |
def login(user, with_capybara: false) | |
if with_capybara | |
page.driver.remove_cookie('user_credentials') | |
page.driver.set_cookie('user_credentials', "#{user.persistence_token}::#{user.id}") | |
else | |
cookies['user_credentials'] = "#{user.persistence_token}::#{user.id}" | |
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
{ | |
"disallowBlockExpansion": null, | |
"disallowClassAttributeWithStaticValue": true, | |
"disallowClassLiterals": null, | |
"disallowClassLiteralsBeforeAttributes": null, | |
"disallowClassLiteralsBeforeIdLiterals": true, | |
"disallowDuplicateAttributes": true, | |
"disallowHtmlText": true, | |
"disallowIdAttributeWithStaticValue": true, | |
"disallowIdLiterals": null, |
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"> | |
.vertical-timeline | |
.date( | |
v-for="(pair, index) in AdjacentPairs" , | |
v-bind:style="{ 'grid-row': index+1 + ' / span 1', 'grid-column': '1 / span 1'}" | |
) | |
slot(name="date", :from="pair[0]", :to="pair[1]") | |
.item( | |
v-for="(item, index) in items" | |
v-bind:style="{ 'grid-row': gridRow(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
const path = require('path'); | |
const webpack = require('webpack'); | |
const merge = require('webpack-merge'); | |
const AssetsPlugin = require('assets-webpack-plugin'); | |
const baseConfig = require('./webpack.config.base.js'); | |
var config = merge(baseConfig, { | |
entry: { | |
'build-admin': './app/frontend/javascripts/application-admin.js', |
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: $@store | |
# require: @path | |
# require: @resourceId | |
# option: @goToPath | |
export default | |
computed: | |
postData: -> | |
formObj = new FormData() | |
_.forEach @$store.state.form, (value, key) => | |
@_postData(formObj, _.snakeCase(key), value) |
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"> | |
form.smart-link(method="post", :action="href") | |
input(type="hidden" name="_method" :value="method.toUpperCase()") | |
input(type="hidden" name="authenticity_token" :value="token") | |
input(type="submit", :value="text") | |
</template> | |
<script lang="coffee"> | |
export default | |
props: |
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-form | |
span.hint(v-text="hint" v-if="hint") | |
input.input(:type="type" :name="attr" :placeholder="placeholder" v-model="value" v-bind:class="{ '-error': error }" v-if="isInputTag") | |
textarea.input(:name="attr" :placeholder="placeholder" v-model="value" v-bind:class="{ '-error': error }" :rows="rows" v-if="isTextareaTag") | |
label.label(:for="attr" v-text="i18nName + (required ? requiredText : '')") | |
span.errors(v-text="errors") | |
</template> | |
<script lang="coffee"> |