This file contains hidden or 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
import createAuth0Client, { | |
Auth0Client, | |
Auth0ClientOptions, | |
GetIdTokenClaimsOptions, | |
GetTokenSilentlyOptions, | |
GetTokenWithPopupOptions, | |
IdToken, | |
LogoutOptions, | |
PopupConfigOptions, | |
PopupLoginOptions, |
This file contains hidden or 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
version: 2.1 | |
executors: | |
default: | |
working_directory: ~/repo | |
docker: | |
- image: circleci/ruby:2.5.1-node-browsers | |
environment: | |
RACK_ENV: test | |
RAILS_ENV: test |
This file contains hidden or 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> | |
<div> | |
<div class="row"> | |
<div class="col s12 offset-m3 m6"> | |
<div class="card"> | |
<div class="card-content"> | |
<span class="card-title">Sign in</span> | |
<p> | |
<div class="row"> | |
<div class="col s12"> |
This file contains hidden or 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> | |
<a class="google-signin" @click="signInWithGoogleRedirect"></a> | |
</template> | |
<script lang="ts"> | |
import { | |
Component, | |
Vue | |
} from "nuxt-property-decorator" | |
import firebase, { googleProvider } from "~/plugins/firebase" |
This file contains hidden or 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> | |
<div> | |
<div class="row"> | |
<div class="col s12"> | |
<input type="text" placeholder="E-mail" v-model="email"> | |
<input type="password" placeholder="Password" v-model="password"> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col s12"> |
This file contains hidden or 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 parseArgs = require("minimist") | |
const argv = parseArgs(process.argv.slice(2), { | |
alias: { | |
H: "hostname", | |
p: "port" | |
}, | |
string: ["H"], | |
unknown: parameter => false | |
}) |
This file contains hidden or 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
import firebase from "~/plugins/firebase" | |
export default ({ app, redirect, store }) => { | |
app.router.afterEach((to, from) => { | |
firebase.auth().onAuthStateChanged((user) => { | |
store.commit("user/setUser", user) | |
if (user) { | |
if (to.name === "signin") { | |
redirect("/") |
This file contains hidden or 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
export const strict = false |
This file contains hidden or 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> | |
<div> | |
<div class="row"> | |
<div class="col s12"> | |
<input type="text" placeholder="E-mail" v-model="email"> | |
<input type="password" placeholder="Password" v-model="password"> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col s12"> |
This file contains hidden or 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
- attached { fixture_file_upload Rails.root.join('spec', 'fixtures', 'files', 'test.jpg'), 'image/jpg' } | |
+ | |
+ after(:build) do |hoge| | |
+ hoge.attached = fixture_file_upload(Rails.root.join('spec', 'fixtures', 'files', 'test.jpg'), 'image/jpg') | |
+ end |
NewerOlder