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
class ViewController: UIViewController { | |
@IBOutlet var usernameLabel: UILabel! | |
var provider: Provider? | |
@IBAction func systemButtonPressed(_ sender: Any) { | |
provider = FacebookSystemProvider() | |
authorizeMe() | |
} |
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
<key>appId</key> | |
<string>App ID</string> | |
<key>redirectUri</key> | |
<string>Valid OAuth redirect URI</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
// actions.js | |
export const addUser = ({ dispatch }, user) => { | |
dispatch('ADD_USER', user) | |
} |
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
import Vue from 'vue' | |
import Vuex from 'vuex' | |
Vue.use(Vuex) | |
export default new Vuex.Store({ | |
state: { | |
users: [] | |
}, | |
mutations: { | |
ADD_USER (state) { |
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 HomeScreen = resolve => require(['@/components/HomeScreen'], resolve) |
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
<Lazy module={{ SomeHandler: () => importLazyModule(import('./components/SomeHandler')), }}> |
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
import Vue from 'vue' | |
import Router from 'vue-router' | |
const HomeScreen = resolve => require(['@/components/HomeScreen'], resolve) | |
const AboutUs = resolve => require(['@/components/AboutUs'], resolve) | |
const ContactUs = resolve => require(['@/components/ContactUs'], resolve) | |
const Dashboard = resolve => require(['@/components/Dashboard'], resolve) | |
const User = resolve => require(['@/components/User'], resolve) | |
Vue.use(Router) |
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> | |
<div class="root"> | |
<div> | |
<input id="input" v-model="text" type="text" /> | |
<p> | |
Two-way bound value is {{ text }} | |
</p> | |
</div> | |
<some-component></some-component> | |
</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
import React from 'react'; | |
import UserComponent from './components/UserComponent.js'; | |
export default class LayoutComponent extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
title: "A User Component" | |
}; | |
} |