repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
blrhc/apps
packages/app-explorer/src/Main.tsx
<filename>packages/app-explorer/src/Main.tsx // Copyright 2017-2019 @polkadot/app-explorer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { I18nProps } from '@polkadot/ui-app/types'; import React from 'reac...
blrhc/apps
packages/app-contracts/src/ABI.tsx
<gh_stars>1-10 // Copyright 2017-2019 @polkadot/app-contracts authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { I18nProps } from '@polkadot/ui-app/types'; import React from 'react'; import { InputFile } from...
blrhc/apps
packages/ui-app/src/RecentlyOffline.tsx
// Copyright 2017-2019 @polkadot/app-staking authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { AccountId } from '@polkadot/types'; import { I18nProps } from '@polkadot/ui-app/types'; import { OfflineStatus } f...
blrhc/apps
packages/app-contracts/src/Instantiate.tsx
// Copyright 2017-2019 @polkadot/app-contracts authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { SubmittableResult } from '@polkadot/api/SubmittableExtrinsic'; import { I18nProps } from '@polkadot/ui-app/type...
blrhc/apps
packages/joy-utils/src/Section.tsx
import React from 'react'; import { BareProps } from '@polkadot/ui-app/types'; type Props = BareProps & { className?: string, title?: JSX.Element | string, level?: number }; export default class Section extends React.PureComponent<Props> { render () { let { className, children } = this.props; classNa...
blrhc/apps
packages/app-js/src/Output.tsx
<reponame>blrhc/apps // Copyright 2017-2019 @polkadot/app-js authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { BareProps } from '@polkadot/ui-app/types'; import { Log } from './types'; import React from 'rea...
blrhc/apps
packages/ui-signer/src/Checks/constants.ts
<filename>packages/ui-signer/src/Checks/constants.ts // Copyright 2017-2019 @polkadot/ui-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { DerivedFees, DerivedBalances } from '@polkadot/api-derive/type...
blrhc/apps
packages/app-address-book/src/types.ts
// Copyright 2017-2019 @polkadot/app-address-book authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { AppProps } from '@polkadot/ui-app/types'; export type ComponentProps = AppProps;
blrhc/apps
packages/joy-media/src/index.tsx
import React from 'react'; import { Route, Switch } from 'react-router'; import { AppProps, I18nProps } from '@polkadot/ui-app/types'; import Tabs, { TabItem } from '@polkadot/ui-app/Tabs'; import './index.css'; import translate from './translate'; import Upload from './Upload'; import Explore from './Explore'; imp...
blrhc/apps
packages/app-contracts/src/index.tsx
// Copyright 2017-2019 @polkadot/app-contracts authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { AppProps, I18nProps } from '@polkadot/ui-app/types'; import { TabItem } from '@polkadot/ui-app/Tabs'; import { ...
blrhc/apps
packages/app-staking/src/Account/BondExtra.tsx
// Copyright 2017-2019 @polkadot/ui-staking authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { I18nProps } from '@polkadot/ui-app/types'; import BN from 'bn.js'; import React from 'react'; import { Button, In...
blrhc/apps
packages/ui-api/src/ApiContext.ts
// Copyright 2017-2019 @polkadot/ui-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { ApiProps } from './types'; import React from 'react'; const ApiContext: React.Context<ApiProps> = React.createContex...
blrhc/apps
packages/app-staking/src/Account/ValidateController.tsx
<filename>packages/app-staking/src/Account/ValidateController.tsx // Copyright 2017-2019 @polkadot/ui-staking authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { I18nProps } from '@polkadot/ui-app/types'; impo...
blrhc/apps
packages/joy-utils/src/AccountSelector.tsx
<reponame>blrhc/apps<filename>packages/joy-utils/src/AccountSelector.tsx import React from 'react'; import { Bubble, InputAddress, Labelled } from '@polkadot/ui-app/index'; import { AccountIndex, Balance, Nonce } from '@polkadot/ui-reactive/index'; type Props = { label?: string, onChange: (accountId?: string) => v...
blrhc/apps
packages/joy-utils/src/forms.tsx
<gh_stars>0 import React from 'react'; import { Field, ErrorMessage, FormikErrors, FormikTouched } from 'formik'; import { BareProps } from '@polkadot/ui-app/types'; import { nonEmptyStr } from '@polkadot/joy-utils/index'; type FormValuesType = { [s: string]: string }; type LabelledProps<FormValues = FormValuesTyp...
blrhc/apps
packages/joy-election/src/Applicant.tsx
<reponame>blrhc/apps<gh_stars>0 import React from 'react'; import { Link } from 'react-router-dom'; import { Table } from 'semantic-ui-react'; import { I18nProps } from '@polkadot/ui-app/types'; import { ApiProps } from '@polkadot/ui-api/types'; import { withCalls } from '@polkadot/ui-api/with'; import { AccountId } f...
blrhc/apps
packages/joy-utils/src/TxButton.tsx
<gh_stars>0 import { BareProps, ApiProps } from '@polkadot/ui-api/types'; import { QueueTx$ExtrinsicAdd, PartialQueueTx$Extrinsic } from '@polkadot/ui-app/Status/types'; import React from 'react'; import { Button } from '@polkadot/ui-app/index'; import { QueueConsumer } from '@polkadot/ui-app/Status/Context'; import {...
blrhc/apps
packages/ui-api/src/with/calls.ts
// Copyright 2017-2019 @polkadot/ui-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { ApiProps, Subtract } from '../types'; import { Options } from './types'; import React from 'react'; import withCall f...
blrhc/apps
packages/joy-forum/src/index.tsx
import React from 'react'; import { Route, Switch } from 'react-router'; import { AppProps, I18nProps } from '@polkadot/ui-app/types'; import Tabs, { TabItem } from '@polkadot/ui-app/Tabs'; import './index.css'; import translate from './translate'; import { ForumProvider } from './Context'; import { EditForumSudo, ...
blrhc/apps
packages/joy-proposals/src/ProposalById.tsx
import BN from 'bn.js'; import React from 'react'; import { I18nProps } from '@polkadot/ui-app/types'; import translate from './translate'; import Details from './Details'; type Props = I18nProps & { match: { params: { id: string } } }; type State = {}; export class Component extends React.PureCom...
blrhc/apps
packages/ui-app/src/types.ts
<reponame>blrhc/apps // Copyright 2017-2019 @polkadot/ui-app authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { WithTranslation } from 'react-i18next'; import { RpcRxInterface } from '@polkadot/rpc-rx/types'; ...
blrhc/apps
packages/ui-app/src/Editor/index.tsx
// Copyright 2017-2019 @polkadot/ui-app authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { BareProps } from '@polkadot/ui-app/types'; import React from 'react'; import { classes } from '@polkadot/ui-app/util'...
blrhc/apps
packages/ui-api/src/util/triggerChange.ts
<filename>packages/ui-api/src/util/triggerChange.ts // Copyright 2017-2019 @polkadot/ui-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { OnChangeCb } from '../types'; import { isFunction, isObservable }...
blrhc/apps
packages/app-transfer/src/Submit.tsx
<reponame>blrhc/apps // Copyright 2017-2019 @polkadot/app-transfer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { SubmittableExtrinsic } from '@polkadot/api/promise/types'; import { I18nProps } from '@polk...
blrhc/apps
packages/joy-help/src/Help.tsx
import React from 'react'; import { Grid } from 'semantic-ui-react'; import { I18nProps } from '@polkadot/ui-app/types'; // our app-specific styles import './index.css'; // local imports and components import translate from './translate'; import MemoView from '@polkadot/joy-utils/memo/MemoView'; import { Link } fro...
blrhc/apps
packages/joy-forum/src/calls.tsx
<reponame>blrhc/apps<filename>packages/joy-forum/src/calls.tsx<gh_stars>0 import React from 'react'; import { ApiProps, Subtract } from '@polkadot/ui-api/types'; import { Options } from '@polkadot/ui-api/with/types'; import { withApi, withCall as withSubstrateCall } from '@polkadot/ui-api'; import { Option } from '@po...
blrhc/apps
packages/joy-forum/src/EditReply.tsx
<reponame>blrhc/apps import React from 'react'; import { Button, Message } from 'semantic-ui-react'; import { Form, Field, withFormik, FormikProps } from 'formik'; import * as Yup from 'yup'; import { History } from 'history'; import TxButton from '@polkadot/joy-utils/TxButton'; import { SubmittableResult } from '@pol...
blrhc/apps
packages/app-explorer/src/BlockQuery/Logs.tsx
// Copyright 2017-2019 @polkadot/app-explorer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { I18nProps } from '@polkadot/ui-app/types'; import React from 'react'; import { DigestItem, Struct, Tuple, U8a, ...
blrhc/apps
packages/apps/src/routing/joy-members.ts
import { Routes } from '../types'; import Members from '@polkadot/joy-members/index'; export default ([ { Component: Members, display: { needsAccounts: true, needsApi: [ 'query.membership.firstMemberId' ] }, i18n: { defaultValue: 'Membership' }, icon: 'users',...
blrhc/apps
packages/joy-forum/src/ForumSudo.tsx
<gh_stars>0 import React, { useState, useContext, createContext } from 'react'; import { Button } from 'semantic-ui-react'; import { Form, Field, withFormik, FormikProps, FieldProps } from 'formik'; import * as Yup from 'yup'; import TxButton from '@polkadot/joy-utils/TxButton'; import { SubmittableResult } from '@pol...
blrhc/apps
packages/ui-app/src/util/getAddrName.ts
<gh_stars>1-10 // Copyright 2017-2019 @polkadot/ui-app authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import keyring from '@polkadot/ui-keyring'; import toShortAddress from './toShortAddress'; export default funct...
blrhc/apps
packages/joy-utils/src/memo/MemoEdit.tsx
<filename>packages/joy-utils/src/memo/MemoEdit.tsx import BN from 'bn.js'; import React from 'react'; import { withCalls } from '@polkadot/ui-api/with'; import { nonEmptyStr } from '../index'; import TextArea from '../TextArea'; import { u8aToString } from '@polkadot/util'; type Props = { accountId: string, onCh...
blrhc/apps
packages/joy-utils/src/TextArea.tsx
import React from 'react'; import { TextArea } from 'semantic-ui-react'; import { Labelled } from '@polkadot/ui-app/index'; type Props = { // TextArea as?: any, autoHeight?: boolean, rows?: number | string, style?: Object, value?: number | string, placeholder?: string, // Label onChange?: (value: st...
blrhc/apps
packages/joy-types/src/discovery.ts
<gh_stars>0 import { Struct } from '@polkadot/types/codec'; import { getTypeRegistry, BlockNumber, Text } from '@polkadot/types'; export class IPNSIdentity extends Text {} export class Url extends Text {} export class AccountInfo extends Struct { constructor (value?: any) { super({ identity: IPNSIdentity,...
blrhc/apps
packages/app-contracts/src/ValidateCode.tsx
// Copyright 2017-2019 @polkadot/app-contracts authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { I18nProps } from '@polkadot/ui-app/types'; import { ApiProps } from '@polkadot/ui-api/types'; import React fro...
blrhc/apps
packages/joy-election/src/utils.tsx
import { AccountId } from '@polkadot/types'; export type HashedVote = { applicantId: string, salt: string, hash: string }; // Keyring / identicon / address // ----------------------------------- import createItem from '@polkadot/ui-keyring/options/item'; import { findNameByAddress } from '@polkadot/joy-utils/i...
blrhc/apps
packages/app-democracy/src/VotingButtons.tsx
// Copyright 2017-2019 @polkadot/app-democracy authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { I18nProps } from '@polkadot/ui-app/types'; import { QueueTx$ExtrinsicAdd } from '@polkadot/ui-app/Status/types'...
blrhc/apps
packages/joy-roles/src/MyRequests/index.tsx
<gh_stars>0 import React from 'react'; import { Table } from 'semantic-ui-react'; import { BareProps, CallProps } from '@polkadot/ui-api/types'; import { MyAccountProps, withOnlyMembers } from '@polkadot/joy-utils/MyAccount'; import { withCalls, withMulti } from '@polkadot/ui-api/index'; import { Request, Role, RolePar...
blrhc/apps
packages/joy-media/src/Explore.tsx
import React from 'react'; import { ApiProps } from '@polkadot/ui-api/types'; import { I18nProps } from '@polkadot/ui-app/types'; import { withCalls } from '@polkadot/ui-api/with'; import { Vector } from '@polkadot/types/codec'; import translate from './translate'; import { ContentId } from '@joystream/types/media'; ...
blrhc/apps
packages/joy-proposals/src/Details.tsx
import BN from 'bn.js'; import React from 'react'; import { Table, Message } from 'semantic-ui-react'; import ReactMarkdown from 'react-markdown'; import { ApiProps } from '@polkadot/ui-api/types'; import { I18nProps } from '@polkadot/ui-app/types'; import { withCalls } from '@polkadot/ui-api/with'; import { Labelled ...
blrhc/apps
packages/joy-election/src/SealedVote.tsx
import React from 'react'; import { Link } from 'react-router-dom'; import { Table } from 'semantic-ui-react'; import { I18nProps } from '@polkadot/ui-app/types'; import { ApiProps } from '@polkadot/ui-api/types'; import { withCalls } from '@polkadot/ui-api/with'; import { Hash } from '@polkadot/types'; import { forma...
blrhc/apps
packages/ui-app/src/TxButton.tsx
<filename>packages/ui-app/src/TxButton.tsx // Copyright 2017-2019 @polkadot/app-123code authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { ApiProps } from '@polkadot/ui-api/types'; import { QueueTx$ExtrinsicAd...
blrhc/apps
packages/apps/src/routing/toolbox.ts
<reponame>blrhc/apps // Copyright 2017-2019 @polkadot/apps authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Routes } from '../types'; import Toolbox from '@polkadot/app-toolbox'; export default ([ { ...
blrhc/apps
packages/ui-api/src/with/call.tsx
// Copyright 2017-2019 @polkadot/ui-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { ApiProps, CallState, Subtract } from '../types'; import { Options } from './types'; import React from 'react'; import...
blrhc/apps
packages/joy-forum/src/CategoryList.tsx
import React, { useEffect, useState } from 'react'; import { Link } from 'react-router-dom'; import ReactMarkdown from 'react-markdown'; import { Table, Dropdown, Button, Segment, Label } from 'semantic-ui-react'; import { History } from 'history'; import orderBy from 'lodash/orderBy'; import BN from 'bn.js'; import {...
blrhc/apps
packages/ui-api/src/with/callDiv.tsx
<reponame>blrhc/apps // Copyright 2017-2019 @polkadot/ui-api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { DefaultProps, Options } from './types'; import { BaseProps } from '../types'; import React from ...
blrhc/apps
packages/joy-election/src/Council.tsx
import React from 'react'; import { ApiProps } from '@polkadot/ui-api/types'; import { I18nProps } from '@polkadot/ui-app/types'; import { withCalls } from '@polkadot/ui-api/with'; import { Table } from 'semantic-ui-react'; import { formatBalance } from '@polkadot/util'; import AddressMini from '@polkadot/ui-app/Addre...
blrhc/apps
packages/joy-forum/src/ViewThread.tsx
import React, { useState, useEffect } from 'react'; import { Link } from 'react-router-dom'; import ReactMarkdown from 'react-markdown'; import { Table, Button, Label } from 'semantic-ui-react'; import { History } from 'history'; import BN from 'bn.js'; import { Category, Thread, ThreadId, Post, PostId } from '@joystr...
blrhc/apps
packages/app-staking/src/Account/index.tsx
<gh_stars>0 // Copyright 2017-2019 @polkadot/app-staking authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { DerivedBalancesMap } from '@polkadot/api-derive/types'; import { I18nProps } from '@polkadot/ui-app/t...
blrhc/apps
packages/app-accounts/src/vanitygen/sort.ts
// Copyright 2017-2019 @polkadot/app-accounts authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Generator$Match } from './types'; function numberSort (a: number, b: number): number { if (a > b) { retur...
blrhc/apps
packages/apps/src/routing/joy-roles.ts
import { Routes } from '../types'; import Roles from '@polkadot/joy-roles/index'; export default ([ { Component: Roles, display: { needsAccounts: true, needsApi: [ 'query.actors.actorAccountIds' ] }, i18n: { defaultValue: 'Roles' }, icon: 'server', name: '...
blrhc/apps
packages/joy-settings/src/defaults.ts
// Copyright 2017-2019 @polkadot/ui-settings authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Options } from './types'; const WSS_JOYSTREAM = 'wss://testnet.joystream.org/acropolis/rpc/'; const ENDPOINTS: ...
blrhc/apps
packages/joy-election/src/Applicants.tsx
import React from 'react'; import { Table } from 'semantic-ui-react'; import BN from 'bn.js'; import { I18nProps } from '@polkadot/ui-app/types'; import { ApiProps } from '@polkadot/ui-api/types'; import { withCalls } from '@polkadot/ui-api/with'; import { AccountId } from '@polkadot/types'; import { formatNumber } fr...
blrhc/apps
packages/app-address-book/src/index.tsx
<gh_stars>0 // Copyright 2017-2019 @polkadot/app-address-book authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { AppProps, I18nProps } from '@polkadot/ui-app/types'; import { SubjectInfo } from '@polkadot/ui-k...
blrhc/apps
packages/joy-media/src/View.tsx
import React from 'react'; import { Link } from 'react-router-dom'; import ReactMarkdown from 'react-markdown'; import axios, { CancelTokenSource } from 'axios'; import DPlayer from 'react-dplayer'; import APlayer from 'react-aplayer'; import { ApiProps } from '@polkadot/ui-api/types'; import { I18nProps } from '@polk...
blrhc/apps
packages/ui-reactive/src/TimePeriod.tsx
<reponame>blrhc/apps // Copyright 2017-2019 @polkadot/ui-reactive authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { BareProps, CallProps } from '@polkadot/ui-api/types'; import React from 'react'; import { M...
blrhc/apps
packages/apps/src/routing/joy-media.ts
<reponame>blrhc/apps<gh_stars>0 import { Routes } from '../types'; import Media from '@polkadot/joy-media/index'; export default ([ { Component: Media, display: { needsApi: [] }, i18n: { defaultValue: 'Media' }, icon: 'play circle outline', name: 'media' } ] as Routes);
blrhc/apps
packages/app-staking/src/types.ts
// Copyright 2017-2019 @polkadot/app-staking authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import BN from 'bn.js'; import { DerivedBalancesMap } from '@polkadot/api-derive/types'; import { AccountId, BlockNumber }...
blrhc/apps
packages/app-contracts/src/types.ts
// Copyright 2017-2019 @polkadot/app-contracts authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { AppProps } from '@polkadot/ui-app/types'; export type LocationProps = { match: { params: { [index: strin...
blrhc/apps
packages/app-explorer/src/NodeInfo/types.ts
// Copyright 2017-2019 @polkadot/app-nodeinfo authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Health, PeerInfo, PendingExtrinsics } from '@polkadot/types'; export type Info = { health?: Health | null, ...
blrhc/apps
packages/ui-app/src/Labelled.tsx
<gh_stars>0 // Copyright 2017-2019 @polkadot/ui-app authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { BareProps } from './types'; import React from 'react'; import styled from 'styled-components'; import Ic...
blrhc/apps
packages/apps/src/TopBar.tsx
<gh_stars>0 import React from 'react'; import { Link } from 'react-router-dom'; import { I18nProps } from '@polkadot/ui-app/types'; import { useMyAccount } from '@polkadot/joy-utils/MyAccountContext'; import AddressMini from '@polkadot/ui-app/AddressMiniJoy'; import translate from './translate'; import './TopBar.css'; ...
blrhc/apps
packages/joy-media/src/DiscoveryProvider.tsx
import React from 'react'; import { Message } from 'semantic-ui-react'; import axios, { CancelToken } from 'axios'; import { AccountId } from '@polkadot/types'; import { withCalls, withMulti } from '@polkadot/ui-api/with'; import { queryToProp } from '@polkadot/joy-utils/index'; import { Url } from '@joystream/types...
blrhc/apps
packages/joy-roles/src/AvailableRoles/index.tsx
import React from 'react' import { BareProps } from '@polkadot/ui-app/types'; import { ComponentProps } from '../props'; import { Role, RoleParameters } from '@joystream/types/roles'; import { Option, AccountId } from '@polkadot/types'; import { withCalls } from '@polkadot/ui-api/index'; import { Table } from 'semanti...
blrhc/apps
packages/joy-utils/src/Sudo.tsx
<reponame>blrhc/apps import React from 'react'; import { Message } from 'semantic-ui-react'; import { AccountId } from '@polkadot/types'; import { withCalls, withMulti } from '@polkadot/ui-api/with'; import { useMyAccount } from '@polkadot/joy-utils/MyAccountContext'; type OnlySudoProps = { sudo?: AccountId }; fun...
blrhc/apps
packages/ui-reactive/src/Bonded.tsx
// Copyright 2017-2019 @polkadot/ui-reactive authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { AccountId, AccountIndex, Address, Option, StakingLedger } from '@polkadot/types'; import { BareProps, CallProps }...
blrhc/apps
packages/ui-signer/src/ApiSigner.ts
<filename>packages/ui-signer/src/ApiSigner.ts // Copyright 2017-2019 @polkadot/ui-signer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Signer } from '@polkadot/api/types'; import { SubmittableResult } fro...
blrhc/apps
packages/ui-app/src/index.tsx
// Copyright 2017-2019 @polkadot/ui-app authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. export { default as AddressMini } from './AddressMini'; export { default as AddressRow } from './AddressRow'; export { default ...
blrhc/apps
packages/apps/src/routing/joy-forum.ts
import { Routes } from '../types'; import Forum from '@polkadot/joy-forum/index'; export default ([ { Component: Forum, display: {}, i18n: { defaultValue: 'Forum' }, icon: 'comment alternate outline', name: 'forum' } ] as Routes);
blrhc/apps
packages/app-extrinsics/src/index.tsx
// Copyright 2017-2019 @polkadot/app-extrinsics authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { QueueProps } from '@polkadot/ui-app/Status/types'; import { AppProps, I18nProps } from '@polkadot/ui-app/types...
blrhc/apps
packages/joy-utils/src/MyAccount.tsx
import React from 'react'; import { Message } from 'semantic-ui-react'; import { Link } from 'react-router-dom'; import { Option } from '@polkadot/types'; import { withCalls, withMulti } from '@polkadot/ui-api/with'; import { MemberId } from '@joystream/types/members'; import { queryMembershipToProp } from '@polkadot...
blrhc/apps
packages/app-democracy/src/Proposals.tsx
// Copyright 2017-2019 @polkadot/app-democracy authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { I18nProps } from '@polkadot/ui-app/types'; import React from 'react'; import { Tuple } from '@polkadot/types';...
blrhc/apps
packages/joy-election/src/ApplyForm.tsx
<filename>packages/joy-election/src/ApplyForm.tsx<gh_stars>0 import BN from 'bn.js'; import React from 'react'; import { I18nProps } from '@polkadot/ui-app/types'; import { ApiProps } from '@polkadot/ui-api/types'; import { withCalls, withMulti } from '@polkadot/ui-api/with'; import { Labelled } from '@polkadot/ui-app...
blrhc/apps
packages/joy-roles/src/ActorsList/index.tsx
<filename>packages/joy-roles/src/ActorsList/index.tsx<gh_stars>0 import React from 'react' import { BareProps } from '@polkadot/ui-app/types'; import { ComponentProps } from '../props'; import { withCalls } from '@polkadot/ui-api/index'; import { Table } from 'semantic-ui-react'; import { Option, AccountId} from '@polk...
blrhc/apps
packages/joy-election/src/SealedVotes.tsx
import React from 'react'; import { I18nProps } from '@polkadot/ui-app/types'; import { ApiProps } from '@polkadot/ui-api/types'; import { withCalls } from '@polkadot/ui-api/with'; import { Hash } from '@polkadot/types'; import translate from './translate'; import SealedVote from './SealedVote'; import { queryToProp ...
blrhc/apps
packages/app-explorer/src/SummarySession.tsx
<reponame>blrhc/apps // Copyright 2017-2019 @polkadot/app-explorer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { I18nProps } from '@polkadot/ui-app/types'; import BN from 'bn.js'; import React from 'reac...
blrhc/apps
packages/joy-forum/src/Moderate.tsx
<filename>packages/joy-forum/src/Moderate.tsx<gh_stars>0 import React from 'react'; import { Button } from 'semantic-ui-react'; import { Form, Field, withFormik, FormikProps } from 'formik'; import * as Yup from 'yup'; import TxButton from '@polkadot/joy-utils/TxButton'; import { SubmittableResult } from '@polkadot/ap...
blrhc/apps
packages/apps/src/routing/joy-help.ts
<gh_stars>0 import { Routes } from '../types'; import Help from '@polkadot/joy-help/index'; export default ([ { Component: Help, display: { needsApi: [ 'query.memo.memo' ] }, i18n: { defaultValue: 'Help and News' }, icon: 'question circle outline', name: 'help' ...
blrhc/apps
packages/app-accounts/src/vanitygen/index.ts
// Copyright 2017-2019 @polkadot/app-accounts authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Generator$Matches, Generator$Result, Generator$Options } from './types'; import generate from './generate'; ex...
blrhc/apps
packages/joy-help/src/index.tsx
<filename>packages/joy-help/src/index.tsx import React from 'react'; import { Route, Switch } from 'react-router'; import { AppProps, I18nProps } from '@polkadot/ui-app/types'; import Tabs, { TabItem } from '@polkadot/ui-app/Tabs'; // our app-specific styles import './index.css'; // local imports and components imp...
blrhc/apps
packages/joy-types/src/media.ts
<gh_stars>0 import { Enum, Struct, Option, Vector } from '@polkadot/types/codec'; import { getTypeRegistry, u64, Bool, Text, BlockNumber, Moment, AccountId, Hash } from '@polkadot/types'; import { OptionText } from './'; import { randomAsU8a } from '@polkadot/util-crypto'; import { encodeAddress, decodeAddress } from ...
blrhc/apps
packages/joy-media/src/EditMeta.tsx
import React from 'react'; import { Button, Message } from 'semantic-ui-react'; import { Form, Field, withFormik, FormikProps } from 'formik'; import * as Yup from 'yup'; import BN from 'bn.js'; import { History } from 'history'; import TxButton from '@polkadot/joy-utils/TxButton'; import { SubmittableResult } from '@...
blrhc/apps
packages/app-staking/src/Overview/CurrentList.tsx
// Copyright 2017-2019 @polkadot/app-staking authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { DerivedBalancesMap } from '@polkadot/api-derive/types'; import { I18nProps } from '@polkadot/ui-app/types'; impor...
kintsuba/itonoko
windi.config.ts
import { defineConfig } from 'windicss/helpers' import type { Plugin } from 'windicss/types/interfaces' // colors import colors from 'windicss/colors' // plugins import TypographyPlugin from 'windicss/plugin/typography' import AspectRatioPlugin from 'windicss/plugin/aspect-ratio' import FiltersPlugin from 'windicss/p...
kintsuba/itonoko
nuxt.config.ts
import { defineNuxtConfig } from 'nuxt' import { IntlifyModuleOptions } from '@intlify/nuxt3' import UnpluginComponentsVite from 'unplugin-vue-components/vite' import IconsResolver from 'unplugin-icons/resolver' declare module '@nuxt/schema' { interface NuxtConfig { intlify?: IntlifyModuleOptions } } // https...
stropalov/f1-app
src/app/drivers/index.ts
export * from './drivers.component';
stropalov/f1-app
src/app/drivers/drivers.service.ts
<gh_stars>0 import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Rx'; @Injectable() export class DriversService { constructor ( private http: Http ) {} getStandings(year: number){ return this.http.get(`http://ergast.com/api/f1/${year}/dri...
stropalov/f1-app
src/app/constructors/constructors.component.ts
import { Component } from '@angular/core'; import { AppState } from '../app.service'; import { ConstructorsService } from './constructors.service'; @Component({ // The selector is what angular internally uses // for `document.querySelectorAll(selector)` in our index.html // where, in this case, selector is the ...
stropalov/f1-app
src/app/app.routes.ts
import { Routes, RouterModule } from '@angular/router'; import { DriversComponent } from './drivers'; import { ConstructorsComponent } from './constructors'; import { AboutComponent } from './about'; import { NoContentComponent } from './no-content'; export const ROUTES: Routes = [ { path: '', component: Driver...
stropalov/f1-app
src/app/constructors/index.ts
export * from './constructors.component';
stropalov/f1-app
src/app/drivers/drivers.component.ts
import { Component } from '@angular/core'; import { AppState } from '../app.service'; import { DriversService } from './drivers.service'; @Component({ // The selector is what angular internally uses // for `document.querySelectorAll(selector)` in our index.html // where, in this case, selector is the string 'ho...
kvandake/prisma-http-common-bug
apps/my-app/src/prisma/client/index.d.ts
/** * Client **/ import * as runtime from './runtime'; declare const prisma: unique symbol export type PrismaPromise<A> = Promise<A> & {[prisma]: true} type UnwrapPromise<P extends any> = P extends Promise<infer R> ? R : P type UnwrapTuple<Tuple extends readonly unknown[]> = { [K in keyof Tuple]: K extends `${numb...
kvandake/prisma-http-common-bug
apps/my-app/src/prisma/index.ts
<filename>apps/my-app/src/prisma/index.ts<gh_stars>0 export * from './client'; export * from './prisma.service'; export * from './prisma.module';
kvandake/prisma-http-common-bug
apps/my-app/src/prisma/prisma.service.ts
import { Injectable, OnModuleDestroy, OnModuleInit } from '@nestjs/common'; import { PrismaClient } from './client'; @Injectable() export class PrismaService extends PrismaClient implements OnModuleInit, OnModuleDestroy { async onModuleInit() { await this.$connect(); } protected execute(params: any, next: ...
jeremylimconsulting/spiceai
dashboard/src/App.tsx
import React from 'react'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import Header from './components/layout/Header'; import ContentPanel from './components/layout/ContentPanel'; import Footer from './components/layout/Footer'; import Dashboard from './pages/Dashboard'; import PodPage from './pag...
jeremylimconsulting/spiceai
dashboard/src/models/flight.ts
import { useState, useEffect } from 'react'; import useSWR from 'swr'; import { getApiPath } from '../util/api'; import { Episode, newEpisode } from './episode'; export interface Flight { start: Date; end: Date; episodes: Episode[]; } export interface FlightsResponse { data: Flight[]; isLoading: boolean; ...
jeremylimconsulting/spiceai
dashboard/src/pages/PodPage.tsx
import React from 'react'; import { useLocation } from 'react-router-dom'; import PodHeader from '../components/app/PodHeader'; import Card from '../components/layout/Card'; import { usePod } from '../models/pod'; import { useFlights } from '../models/flight'; import FlightChart from '../components/flights/FlightChart...
jeremylimconsulting/spiceai
dashboard/src/components/app/PodHeader.tsx
import React from 'react'; import { Pod } from '../../models/pod' interface PodHeaderProps { pod: Pod; } const PodHeader: React.FunctionComponent<PodHeaderProps> = (props) => ( <React.Fragment> <div className="m-4 flex gap-4"> <div> <div className="bg-red-500 rounded-full h-16 w-16 flex items-ce...
jeremylimconsulting/spiceai
dashboard/src/components/flights/FlightChart.tsx
import React, { useRef, useEffect } from 'react'; import { ChartConfiguration, ChartItem } from 'chart.js'; import Chart from 'chart.js/auto'; import { Flight } from '../../models/flight'; interface FlightChartProps { flight: Flight; } const colors = [ "#e6194B", "#f58231", "#bfef45", "#3cb44b", "#42d4f4...
jeremylimconsulting/spiceai
dashboard/src/constants.ts
export const SPICE_VERSION = 'v0.3-alpha-rc' export const SPICE_API_VERSION = 'v0.1'