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
function sendForm(e){ | |
// 件名 | |
var subject = "問い合わせが送信されました!"; | |
// 本文 | |
var body = "以下のお問合せがありましたのでご確認ください。"; | |
// メール送信先 | |
var to = "sample@example.com"; | |
var itemResponses = e.response.getItemResponses(); | |
for (var i = 0; i < itemResponses.length; i++) { |
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
function sendForm(e){ | |
// 件名 | |
var subject = "問い合わせが送信されました!"; | |
// 本文 | |
var body = "以下のお問合せがありましたのでご確認ください。"; | |
// メール送信先 | |
var to = "sample@example.com"; | |
var itemResponses = e.response.getItemResponses(); | |
for (var i = 0; i < itemResponses.length; i++) { |
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
<body> | |
<main> | |
<div> | |
<h1>問い合わせフォーム</h1> | |
<div> | |
<form id="contactForm" action=""> | |
<div> | |
<label for="name">お名前を入力してください</label> | |
<input id="name" type="text"> | |
</div> |
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
"use strict"; | |
// Firebase 初期化 | |
import * as firebase from "firebase"; | |
const config = { | |
apiKey: "api-key", | |
authDomain: "project-id.firebaseapp.com", | |
databaseURL: "https://project-id.firebaseio.com", | |
projectId: "project-id", | |
storageBucket: "project-id.appspot.com", |
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
/** | |
* 以下記事を参照 | |
* https://qiita.com/ryo2132/items/7cdd6c86dd418095f74a | |
*/ | |
const functions = require("firebase-functions"); | |
const nodemailer = require("nodemailer"); | |
const gmailEmail = functions.config().gmail.email; | |
const gmailPassword = functions.config().gmail.password; | |
const adminEmail = functions.config().admin.email; |
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
name: FTP Deploy | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
deploy: |
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
name: Firebase Deploy | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build |
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
lhci: | |
name: Lighthouse | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 10.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 10.x | |
- name: npm install, build |
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
- name: Set COMMIT_MESSAGE | |
run: echo ::set-env name=COMMIT_MESSAGE::$(echo "${{ github.event.head_commit.message }}" | tr '\n' ' ') | |
- name: Slack Notification on SUCCESS | |
if: success() | |
uses: tokorom/action-slack-incoming-webhook@master | |
env: | |
INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
with: | |
text: Successfully automated deployment. | |
attachments: | |
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
<!--Shopify_通知設定_注文の確認テンプレートに挿入 --> | |
{% if attributes["delivery_time"] or attributes["delivery_date"] %} | |
<table class="row"> | |
<tr> | |
<td class="customer-info__item"> | |
<h4>お届け日時</h4> | |
{% if attributes["delivery_date"] %} | |
{{ attributes["delivery_date"] | date: "%Y年 %m月 %d日"}} | |
{% else %} | |
指定なし |