repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
zyml/nuswhispers-vue | src/views/Confession/index.ts | <gh_stars>1-10
// Wraps the route container and other dependencies with webpack's
// require.ensure for code splitting.
export default (resolve: any) => {
require.ensure([], (require) => {
resolve(require('./Confession.vue'));
});
};
|
zyml/nuswhispers-vue | typings/filestack.d.ts | declare namespace filestack {
interface InitOptions {
policy?: string;
signature?: string;
}
interface PickOptions {
accept?: string | string[];
maxSize?: number;
}
interface UploadResults {
filesUploaded: UploadedFile[];
filesFailed: UploadedFile[];
}
interface UploadedFile {
... |
zyml/nuswhispers-vue | src/components/Box/__tests__/index-test.ts | import Vue from 'vue';
import { createRenderer } from 'vue-server-renderer';
import Box from '../index.vue';
describe('Box', () => {
const renderer = createRenderer();
it('renders correctly', () => {
const vm = new Vue({
render: (h) => h(Box, 'hello'),
});
renderer.renderToString(vm, (err: Error... |
zyml/nuswhispers-vue | src/components/MainNav/NavIcon.ts | import Vue from 'vue';
import Component from 'vue-class-component';
@Component({
props: {
external: Boolean,
icon: String,
to: String,
},
})
export default class NavIcon extends Vue {
}
|
zyml/nuswhispers-vue | typings/vue.d.ts | import Vue from 'vue';
interface Dictionary<T> { [key: string]: T; }
interface SSRContext {
title?: string;
meta?: string;
}
declare module 'vue/types/vue' {
interface Vue {
$ssrContext: SSRContext;
}
}
declare module 'vue/types/options' {
interface ComponentOptions<V extends Vue> {
title?: string... |
zyml/nuswhispers-vue | src/components/Icon/index.ts | <filename>src/components/Icon/index.ts<gh_stars>1-10
import Vue from 'vue';
import Component from 'vue-class-component';
@Component({
name: 'icon',
props: {
id: String,
},
})
export default class Icon extends Vue {
}
|
zyml/nuswhispers-vue | src/components/ASyncComponent.ts | <filename>src/components/ASyncComponent.ts
import Vue, { ComponentOptions } from 'vue';
import Component from 'vue-class-component';
import { Route } from 'vue-router';
import { Store } from '../store';
type VueClass = { new(): Vue } & typeof Vue;
Component.registerHooks([
'beforeRouteEnter',
'beforeRouteUpdate',... |
zyml/nuswhispers-vue | src/utils/escape-html.ts | <filename>src/utils/escape-html.ts
export default function escapeHtml(str: string): string {
if (!str) {
return '';
}
return typeof window !== 'undefined' ?
String(str)
.replace(/&/g, '&')
.replace(/</g, '<')
.replace(/>/g, '>')
.replace(/"/g, '"') :
String(str)... |
zyml/nuswhispers-vue | src/store/index.ts | import Vue from 'vue';
import Vuex, { Module, Plugin } from 'vuex';
import actions from './actions';
import getters from './getters';
import mutations from './mutations';
import State from './state';
Vue.use(Vuex);
// Export Store type to avoid generics when needed.
export type Store = Vuex.Store<State>;
export def... |
zyml/nuswhispers-vue | src/components/MainNav/index.ts | import Vue from 'vue';
import Component from 'vue-class-component';
import { mapGetters } from 'vuex';
import Logo from './Logo.vue';
import NavIcon from './NavIcon.vue';
import WriteBtn from './WriteBtn.vue';
@Component({
components: {
Logo,
NavIcon,
WriteBtn,
},
computed: {
...mapGetters({
... |
zyml/nuswhispers-vue | src/views/Confession/Confession.ts | <reponame>zyml/nuswhispers-vue<filename>src/views/Confession/Confession.ts
import truncate from 'lodash/truncate';
import Vue from 'vue';
import { Route } from 'vue-router';
import ASyncComponent, { InitialDataProps } from '../../components/ASyncComponent';
import Confession from '../../components/Confession/index.vue'... |
zyml/nuswhispers-vue | src/views/Popular/Popular.ts | import createStaticListView from '../StaticListView';
export default createStaticListView('popular');
|
zyml/nuswhispers-vue | typings/vue-recaptcha.d.ts | declare module 'vue-recaptcha' {
import { Component } from 'vue';
const VueRecaptcha: Component;
export = VueRecaptcha;
}
|
zyml/nuswhispers-vue | typings/window.d.ts | import State from '../src/store/state';
declare global {
interface Window {
__INITIAL_STATE__: State;
}
}
|
zyml/nuswhispers-vue | src/mixins/meta.ts | import map from 'lodash/map';
import Vue, { ComponentOptions } from 'vue';
import escapeHtml from '../utils/escape-html';
import * as meta from '../utils/meta';
import { getTitle } from './title';
// Attribute name for monitoring tags generated by this mixin.
const mixinAttribute = 'data-vue-meta';
const defaultMeta ... |
zyml/nuswhispers-vue | src/views/DynamicListView.ts | <reponame>zyml/nuswhispers-vue
import Vue, { Component } from 'vue';
import { Route } from 'vue-router';
import ASyncComponent, { InitialDataProps } from '../components/ASyncComponent';
import List from '../components/List/index.vue';
import meta from '../mixins/meta';
import title from '../mixins/title';
import { Conf... |
zyml/nuswhispers-vue | src/components/Sidebar/index.ts | import Vue from 'vue';
import Component from 'vue-class-component';
import TagCloud from './TagCloud.vue';
@Component({
components: {
TagCloud,
},
})
export default class Sidebar extends Vue {
}
|
zyml/nuswhispers-vue | typings/vue-infinite-scroll.d.ts | <reponame>zyml/nuswhispers-vue
declare module 'vue-infinite-scroll' {
import { VNodeDirective, VNode } from 'vue';
export function bind(
el: HTMLElement,
binding: VNodeDirective,
vnode: VNode,
oldVnode: VNode
): void;
export function unbind(
el: HTMLElement,
binding: VNodeDirective,
... |
zyml/nuswhispers-vue | src/views/Submit/SubmitButton.ts | import Vue from 'vue';
import Component from 'vue-class-component';
@Component({
props: {
disabled: Boolean,
loading: Boolean,
},
})
export default class SubmitButton extends Vue {
public loading: boolean = false;
get submitLabel(): string {
return this.loading ? 'Loading...' : 'Submit';
}
}
|
zyml/nuswhispers-vue | src/entry-server.ts | import Vue from 'vue';
import createApp from './app';
import { ASyncComponent } from './components/ASyncComponent';
export default (context: any) => {
return new Promise((resolve, reject) => {
const { app, router, store } = createApp();
router.push(context.url);
router.onReady(() => {
const match... |
zyml/nuswhispers-vue | src/router.ts | import Vue from 'vue';
import Router, { Route, RouteConfig } from 'vue-router';
import { Store } from './store';
import Category from './views/Category';
import Confession from './views/Confession';
import Featured from './views/Featured';
import Latest from './views/Latest';
import NotFound from './views/NotFound';
i... |
zyml/nuswhispers-vue | src/components/MainNav/__tests__/NavIcon-test.ts | import Vue from 'vue';
import { createRenderer } from 'vue-server-renderer';
import NavIcon from '../NavIcon.vue';
describe('NavIcon', () => {
const renderer = createRenderer();
it('renders correctly', () => {
const vm = new Vue({
propsData: {
icon: 'zoom-outline',
to: '/search',
}... |
zyml/nuswhispers-vue | typings/camelcase-keys-recursive.d.ts | <reponame>zyml/nuswhispers-vue
declare module 'camelcase-keys-recursive' {
function camelCaseRecursive(obj: any): any;
export = camelCaseRecursive;
}
|
zyml/nuswhispers-vue | typings/process.d.ts | declare var process: {
env: {
NODE_ENV: string;
NUSWHISPERS_API_ROOT: string;
NUSWHISPERS_RECAPTCHA_KEY: string;
NUSWHISPERS_FILESTACK_KEY: string;
NUSWHISPERS_CONFESSION_LIMIT: string;
VUE_ENV: string;
},
};
|
zyml/nuswhispers-vue | src/views/Submit/ImageUpload.ts | import get from 'lodash/get';
import Vue from 'vue';
import { Component, Prop } from 'vue-property-decorator';
@Component
export default class ImageUpload extends Vue {
@Prop()
public value: string;
public hasErrors: boolean = false;
private client: filestack.FileStack;
get uploaded(): boolean {
return... |
zyml/nuswhispers-vue | src/components/List/index.ts | import Vue from 'vue';
import Component from 'vue-class-component';
import { Watch } from 'vue-property-decorator';
import Confession from '../../components/Confession/index.vue';
import infiniteScroll from '../../directives/infinite-scroll';
import { Confession as ConfessionState } from '../../store/state';
@Componen... |
zyml/nuswhispers-vue | src/components/Confession/CategoryList.ts | import Vue from 'vue';
import Component from 'vue-class-component';
import { Category } from '../../store/state';
@Component({
props: {
ids: Array,
},
})
export default class CategoryList extends Vue {
public ids: string[];
get categories(): Category[] {
return this.$store.getters.categoriesByIds(this... |
zyml/nuswhispers-vue | src/app.ts | import Vue from 'vue';
import Router from 'vue-router';
import App from './components/App/index.vue';
import createRouter from './router';
import createStore, { Store } from './store';
import './components';
export interface Application {
app: Vue;
router: Router;
store: Store;
}
export default function creat... |
zyml/nuswhispers-vue | src/api/confessions.ts | import get from 'lodash/get';
import { normalize } from 'normalizr';
import client from './client';
import { confession, confessionList } from './schema';
const apiRoot: string = process.env.NUSWHISPERS_API_ROOT;
async function fetch(endpoint: string, count: number = 10, offset: number = 0) {
const response = awai... |
niieani/browser-sdk | test/e2e/lib/framework/pageSetups.ts | <gh_stars>0
import { LogsUserConfiguration } from '@datadog/browser-logs'
import { RumUserConfiguration } from '@datadog/browser-rum-core'
export interface SetupOptions {
rum?: RumUserConfiguration
rumRecorder?: RumUserConfiguration
logs?: LogsUserConfiguration
rumInit: (configuration: RumUserConfiguration) =>... |
niieani/browser-sdk | packages/core/src/domain/configuration.ts | import { BuildEnv } from '../boot/init'
import { CookieOptions, getCurrentSite } from '../browser/cookie'
import { catchUserErrors } from '../tools/catchUserErrors'
import { includes, ONE_KILO_BYTE, ONE_SECOND } from '../tools/utils'
import { computeTransportConfiguration, Datacenter } from './transportConfiguration'
... |
niieani/browser-sdk | test/e2e/scenario/rum/init.scenario.ts | import { createTest, EventRegistry } from '../../lib/framework'
import { flushEvents } from '../../lib/helpers/sdk'
describe('API calls and events around init', () => {
createTest('should be associated to corresponding views when views are automatically tracked')
.withRum({ enableExperimentalFeatures: ['view-ren... |
niieani/browser-sdk | packages/rum-recorder/src/boot/recorder.entry.ts | <filename>packages/rum-recorder/src/boot/recorder.entry.ts
import { defineGlobal, getGlobalObject } from '@datadog/browser-core'
import { startRum } from '@datadog/browser-rum-core'
import { startRecording } from './startRecording'
import { RumRecorderPublicApi, makeRumRecorderPublicApi } from './rumRecorderPublicApi'... |
niieani/browser-sdk | packages/rum-recorder/src/boot/rumRecorderPublicApi.ts | import { Configuration, monitor, noop, runOnReadyState, InternalMonitoring } from '@datadog/browser-core'
import {
LifeCycleEventType,
makeRumPublicApi,
RumUserConfiguration,
StartRum,
CommonContext,
} from '@datadog/browser-rum-core'
import { startRecording } from './startRecording'
export type StartRecord... |
niieani/browser-sdk | packages/core/src/domain/configuration.spec.ts | <filename>packages/core/src/domain/configuration.spec.ts
import { RumEvent } from '../../../rum/src'
import { BuildEnv, BuildMode } from '../boot/init'
import { display } from '../tools/display'
import { buildConfiguration } from './configuration'
import { Datacenter } from './transportConfiguration'
describe('configu... |
niieani/browser-sdk | packages/logs/src/index.ts | <reponame>niieani/browser-sdk
export { Logger, LogsMessage, StatusType, HandlerType } from './domain/logger'
export { LoggerConfiguration, LogsPublicApi as LogsGlobal, datadogLogs } from './boot/logs.entry'
export { LogsUserConfiguration } from './boot/startLogs'
export { LogsEvent } from './logsEvent.types'
|
niieani/browser-sdk | packages/rum-recorder/src/boot/rumRecorderPublicApi.spec.ts | <filename>packages/rum-recorder/src/boot/rumRecorderPublicApi.spec.ts
import { Configuration, includes } from '@datadog/browser-core'
import { StartRum } from '@datadog/browser-rum-core'
import { createNewEvent } from '../../../core/test/specHelper'
import { makeRumRecorderPublicApi, RumRecorderPublicApi, StartRecordin... |
niieani/browser-sdk | test/app/app.ts | import { datadogLogs, LogsUserConfiguration } from '@datadog/browser-logs'
import { datadogRum } from '@datadog/browser-rum-recorder'
declare global {
interface Window {
LOGS_CONFIG?: LogsUserConfiguration
RUM_INIT?: () => void
}
}
if (typeof window !== 'undefined') {
if (window.LOGS_CONFIG) {
datad... |
niieani/browser-sdk | packages/rum-core/src/boot/rumPublicApi.spec.ts | <gh_stars>0
import { ErrorSource, ONE_SECOND, RelativeTime, getTimeStamp, display, TimeStamp } from '@datadog/browser-core'
import { setup, TestSetupBuilder } from '../../test/specHelper'
import { ActionType } from '../rawRumEvent.types'
import { makeRumPublicApi, RumPublicApi, RumUserConfiguration, StartRum } from './... |
gr4vy/gr4vy-node | sdk/index.ts | <reponame>gr4vy/gr4vy-node
export { default as Client, JWTScope } from './client'
export * from '../model/models'
|
gr4vy/gr4vy-node | sdk/client.ts | import {
BuyersApi,
PaymentMethodsApi,
PaymentOptionsApi,
PaymentServicesApi,
TransactionsApi,
} from '../api/apis'
import { PaymentServiceDefinitionsApi } from '../api/paymentServiceDefinitionsApi'
import Authentication, {
JWTScope,
JWTScopes,
EmbedParams,
} from './authentication'
class Client {
ba... |
gr4vy/gr4vy-node | model/paymentMethodRequest.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/paymentServiceDefinitionSupportedFeatures.ts | <reponame>gr4vy/gr4vy-node
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-ge... |
gr4vy/gr4vy-node | model/error403Forbidden.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | sdk/transactions.test.ts | import fs from 'fs'
import path from 'path'
import { TransactionCaptureRequest } from '../model/transactionCaptureRequest'
import { TransactionPaymentMethodRequest } from '../model/transactionPaymentMethodRequest'
import { TransactionRefundRequest } from '../model/transactionRefundRequest'
import { TransactionRequest }... |
gr4vy/gr4vy-node | api/paymentMethodsApi.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | sdk/paymentServiceDefinitions.test.ts | import fs from 'fs'
import path from 'path'
import Client from './client'
let key
if (process.env.PRIVATE_KEY) {
key = process.env.PRIVATE_KEY
} else {
const my_path = path.resolve(__dirname, './private_key.pem')
key = String(fs.readFileSync(my_path))
}
const client = new Client({
gr4vyId: 'spider',
environ... |
gr4vy/gr4vy-node | model/paymentServiceRequest.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/tokenizedRequest.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/threeDSecureDataV1AllOf.ts | <gh_stars>1-10
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech... |
gr4vy/gr4vy-node | sdk/client.test.ts | import jwt from 'jsonwebtoken'
import snakecaseKeys from 'snakecase-keys'
import Client from './client'
const privateKey = `-----<KEY>
-----END PRIVATE KEY-----`
const thumbprint = '<KEY>'
const embedParams = {
amount: 9000,
currency: 'USD',
buyerExternalIdentifier: 'user-123',
}
describe('#constructor', () =... |
gr4vy/gr4vy-node | api/paymentOptionsApi.ts | <reponame>gr4vy/gr4vy-node
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-ge... |
gr4vy/gr4vy-node | model/transactionRefundRequest.ts | <gh_stars>1-10
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech... |
gr4vy/gr4vy-node | model/buyerUpdate.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/cardRequest.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/applePaySessionRequest.ts | <filename>model/applePaySessionRequest.ts<gh_stars>1-10
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI ... |
gr4vy/gr4vy-node | api/paymentServicesApi.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/buyer.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/digitalWallet.ts | <filename>model/digitalWallet.ts
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://open... |
gr4vy/gr4vy-node | model/paymentOptionContext.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/errorGeneric.ts | <filename>model/errorGeneric.ts
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://opena... |
gr4vy/gr4vy-node | api/buyersApi.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/transactionsBatchCaptureRequest.ts | <gh_stars>1-10
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech... |
gr4vy/gr4vy-node | model/paymentMethodTokens.ts | <gh_stars>1-10
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech... |
gr4vy/gr4vy-node | model/paymentMethod.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/paymentMethodToken.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/applePayRequest.ts | <reponame>gr4vy/gr4vy-node
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-ge... |
gr4vy/gr4vy-node | sdk/paymentMethods.test.ts | <filename>sdk/paymentMethods.test.ts
import fs from 'fs'
import path from 'path'
import { PaymentMethodRequest } from '../model/paymentMethodRequest'
import Client from './client'
let key
if (process.env.PRIVATE_KEY) {
key = process.env.PRIVATE_KEY
} else {
const my_path = path.resolve(__dirname, './private_key.pe... |
gr4vy/gr4vy-node | model/paymentService.ts | <gh_stars>1-10
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech... |
gr4vy/gr4vy-node | model/paymentServiceSnapshot.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/paymentMethodSnapshot.ts | <reponame>gr4vy/gr4vy-node<filename>model/paymentMethodSnapshot.ts
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated ... |
gr4vy/gr4vy-node | model/transactions.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/digitalWalletRequest.ts | <gh_stars>1-10
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech... |
gr4vy/gr4vy-node | sdk/authentication.ts | import keyto from '@trust/keyto'
import jwt from 'jsonwebtoken'
import { jwkThumbprintByEncoding } from 'jwk-thumbprint'
import snakeCaseKeys from 'snakecase-keys'
import { v4 as uuid } from 'uuid'
import { version } from '../package.json'
const issuer = `Gr4vy SDK ${version} - Node ${process.version}`
class Authenti... |
gr4vy/gr4vy-node | model/taxId.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/transactionRequest.ts | <filename>model/transactionRequest.ts
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https:/... |
gr4vy/gr4vy-node | sdk/paymentServices.test.ts | <reponame>gr4vy/gr4vy-node<filename>sdk/paymentServices.test.ts
import fs from 'fs'
import path from 'path'
import { PaymentServiceRequest } from '../model/paymentServiceRequest'
import { PaymentServiceUpdate } from '../model/paymentServiceUpdate'
import Client from './client'
let key
if (process.env.PRIVATE_KEY) {
... |
gr4vy/gr4vy-node | model/transactionSummary.ts | <gh_stars>1-10
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech... |
gr4vy/gr4vy-node | model/billingDetails.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/transaction.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | api/transactionsApi.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/models.ts | <gh_stars>1-10
import localVarRequest from 'request';
export * from './address';
export * from './addressUpdate';
export * from './applePayRequest';
export * from './applePaySessionRequest';
export * from './billingDetails';
export * from './billingDetailsUpdateRequest';
export * from './buyer';
export * from './buyer... |
gr4vy/gr4vy-node | model/redirectRequest.ts | <filename>model/redirectRequest.ts
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://op... |
gr4vy/gr4vy-node | model/setPasswordRequest.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | sdk/authentication.test.ts | <gh_stars>1-10
import jwt from 'jsonwebtoken'
import snakecaseKeys from 'snakecase-keys'
import { version } from '../package.json'
import Authentication, { JWTScope } from './authentication'
const privateKey = `-----<KEY>
-----END PRIVATE KEY-----`
const thumbprint = 'va-SLs5AxJNfqKXD8LI5Y38BflpNvjZjY4RSWz66U1w'
con... |
gr4vy/gr4vy-node | model/paymentOption.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/paymentServiceDefinition.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/userRequest.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/digitalWalletUpdate.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/address.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/error401Unauthorized.ts | <filename>model/error401Unauthorized.ts
/**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https... |
gr4vy/gr4vy-node | sdk/paymentOptions.test.ts | <gh_stars>1-10
import fs from 'fs'
import path from 'path'
import Client from './client'
let key
if (process.env.PRIVATE_KEY) {
key = process.env.PRIVATE_KEY
} else {
const my_path = path.resolve(__dirname, './private_key.pem')
key = String(fs.readFileSync(my_path))
}
const client = new Client({
gr4vyId: 'spi... |
gr4vy/gr4vy-node | model/transactionCaptureRequest.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | sdk/buyers.test.ts | <gh_stars>1-10
import fs from 'fs'
import path from 'path'
import { BuyerRequest } from '../model/buyerRequest'
import { BuyerUpdate } from '../model/buyerUpdate'
import Client from './client'
let key
if (process.env.PRIVATE_KEY) {
key = process.env.PRIVATE_KEY
} else {
const my_path = path.resolve(__dirname, './p... |
gr4vy/gr4vy-node | model/paymentMethodTokenized.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | model/error404NotFound.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
gr4vy/gr4vy-node | api/apis.ts | export * from './buyersApi';
import { BuyersApi } from './buyersApi';
export * from './digitalWalletsApi';
import { DigitalWalletsApi } from './digitalWalletsApi';
export * from './paymentMethodTokensApi';
import { PaymentMethodTokensApi } from './paymentMethodTokensApi';
export * from './paymentMethodsApi';
import { P... |
gr4vy/gr4vy-node | model/paymentServiceDefinitionFields.ts | /**
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://o... |
EliasRut/Game-Dev-2020-10-0304 | src/scripts/helpers/constants.ts | <filename>src/scripts/helpers/constants.ts
export const enum Facings {
SOUTH,
SOUTH_EAST,
EAST,
NORTH_EAST,
NORTH,
NORTH_WEST,
WEST,
SOUTH_WEST,
}
export const spriteDirectionList = ['s', 'se', 'e', 'ne', 'n', 'nw', 'w', 'sw'];
export const facingToSpriteNameMap = {
[Facings.SOUTH]: 's',
[Facings.SOUTH_EAST... |
EliasRut/Game-Dev-2020-10-0304 | src/scripts/screens/SettingsScreen.ts | import { Scene } from 'phaser';
import { isJSON } from 'validator';
import { UiDepths, UI_SCALE } from '../helpers/constants';
import MainScene from '../scenes/MainScene';
import RoomPreloaderScene from '../scenes/RoomPreloaderScene';
import globalState, { WorldState } from '../worldstate';
import PlayerCharacter from ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.