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 { App } = require('@slack/bolt'); | |
| const app = new App({ | |
| token: process.env.SLACK_BOT_TOKEN, | |
| signingSecret: process.env.SLACK_SIGNING_SECRET | |
| }); | |
| function actionMW({ payload, context, say, next, ack }) { | |
| // This middleware is invoked with type: 'block_actions' | |
| console.log('MW ------->', payload); |
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
| module.exports = angular.module('ngReactExample.comment', [ | |
| ]).component('comment', { | |
| bindings: { | |
| comment: '<', | |
| }, | |
| template: '{{ $ctrl.comment.text }}', | |
| controller: function() { | |
| } | |
| }); |
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 React from 'react'; | |
| class InfiniteScroll extends React.Component { | |
| displayName: 'InfiniteScroll'; | |
| renderLoadMore() { | |
| return <button | |
| className='button' | |
| onClick={ this.onloadMore.bind(this) }> | |
| Load more |
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 Relay from 'generic-relay'; | |
| import { connectRelay } from 'angular2-relay'; | |
| import { Component, View, NgZone } from 'angular2/core'; | |
| const UserAccountContainer = Relay.createGenericContainer('User', { | |
| fragments: { | |
| user: () => Relay.QL` | |
| fragment on User { | |
| firstName, | |
| lastName, |
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 ConferenceDetailsContainer = | |
| Relay.createGenericContainer('ConferenceDetails', { | |
| fragments: { | |
| conference: () => Relay.QL` | |
| fragment on Conference { | |
| date, | |
| description, | |
| attendance, | |
| location, | |
| rating, |
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 Relay from 'generic-relay'; | |
| export default class AttendConferenceMutation extends Relay.Mutation { | |
| /* ... */ | |
| getFatQuery() { | |
| return Relay.QL` | |
| fragment on AttendConferencePayload { | |
| conference { |
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
| angular.module('app', ['ngRoute']) | |
| .config(function ($routeProvider) { | |
| $routeProvider | |
| .when('/route', { | |
| templateUrl: 'my-tpl.html', | |
| controller: 'MyCtrl', | |
| resolve: { /*resolve*/ } | |
| }); | |
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
| { | |
| "bitwise": true, | |
| "curly": true, | |
| "eqeqeq": true, | |
| "es3": true, | |
| "forin": true, | |
| "immed": true, | |
| "newcap": true, | |
| "noarg": true, | |
| "noempty": true, |
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
| // TimeTracker Service | |
| angular.module('siApp.services.timeTracker', []) | |
| .service('TimeTracker', ['$log', function ($log) { | |
| var reviewListLoaded = null; | |
| this.reviewListLoaded = function () { | |
| return reviewListLoaded; | |
| }; | |
| this.setReviewListLoaded = function (date) { |