repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/wallet.js | src/wallet.js | import Web3 from "web3";
import Web3Modal, { injected } from "web3modal";
import WalletConnectProvider from "@walletconnect/web3-provider";
import CoinbaseWalletSDK from '@coinbase/wallet-sdk';
import { NETWORKS } from "./constants.js";
import { isMobile, objectMap } from "./utils.js";
import { setContracts } from "./... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/web3.js | src/web3.js | import Web3 from "web3";
import { NETWORKS } from "./constants";
export const getConfigChainID = () => {
// Default to Ethereum
const networkID = window.NETWORK_ID ?? 1;
return window.IS_TESTNET ? NETWORKS[networkID].testnetID : networkID;
}
const initReadOnlyWeb3 = () => {
const configChainID = getCo... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/index.js | src/index.js | import React from 'react';
import amplitude from 'amplitude-js';
import { render } from "react-dom";
import { App } from "./components/App.js";
import "./styles/index.css";
import { showAlert } from "./components/AutoHideAlert.js";
import { showMintModal } from "./components/MintModal.js";
import { init } from "./mint"... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/contract.js | src/contract.js | import { getCurrentNetwork, isWeb3Initialized, switchNetwork, web3 } from './wallet.js';
import { NETWORKS } from "./constants.js";
import { getConfigChainID, readOnlyWeb3 } from "./web3";
export let NFTContract;
const abiMemoryCache = {};
export const initContract = async (_web3, contract, shouldSwitchNetwork=true)... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/constants.js | src/constants.js | export const NETWORKS = {
1: {
name: "Ethereum",
chain: "ethereum",
rpcURL: "https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161",
currency: {
name: "Ether",
symbol: "ETH",
decimals: 18
},
testnetID: 5,
blockExplor... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/tx.js | src/tx.js | import { formatValue, parseTxError } from "./utils";
import { getCurrentNetwork, web3 } from "./wallet";
import { showAlert } from "./components/AutoHideAlert";
import { isEthereum } from "./contract";
export const buildTx = async (tx, txData, defaultGasLimit, gasLimitSlippage = 5000) => {
const estimatedGas = awa... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/utils.js | src/utils.js | export const isMobile = () => /Mobi/i.test(window.navigator.userAgent)
|| /iPhone|iPod|iPad/i.test(navigator.userAgent);
export const objectMap = (object, mapFn) => {
return Object.keys(object).reduce((result, key) => {
result[key] = mapFn(object[key]);
return result
}, {})
}
export const ... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/mint/web3.js | src/mint/web3.js | import { getWalletAddressOrConnect, web3 } from "../wallet.js";
import { formatValue} from "../utils.js";
import { NFTContract } from "../contract.js"
import { buildTx } from "../tx";
import { readOnlyWeb3 } from "../web3";
const findMethodByName = (methodName) =>
Object.keys(NFTContract.methods)
.find(key... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/mint/index.js | src/mint/index.js | import { updateMintButton, updateMintedCounter } from "./ui.js";
import { updateConnectButton, updateWalletStatus } from "../wallet.js";
import { setContracts } from "../contract.js";
import { blacklist } from "./blacklist";
export const init = async () => {
if (blacklist.includes(window.location.host.replace('www... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/mint/blacklist.js | src/mint/blacklist.js | // TODO: migrate this to a public backend
export const blacklist = [
"memelandnft.club",
"thememeland.xyz",
] | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/mint/ui.js | src/mint/ui.js | import { getMaxSupply, getMintedNumber} from "./web3.js";
import { showMintModal } from "../components/MintModal";
export const updateMintButton = () => {
const mintButtons = [
...document.querySelectorAll('#mint-button'),
...document.querySelectorAll("a[href*='#mint-button']")
]
if (mintB... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/services/API.js | src/services/API.js | class _API {
API_URL = "https://metadata.buildship.xyz/api"
_get = async (url) => {
return fetch(`${this.API_URL}/${url}`, {
method: 'GET',
}).then(async r => {
const resp = await r.json()
if (r.status !== 200) {
throw new Error(resp.message)
... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/styles/theme.js | src/styles/theme.js | import { createTheme } from "@mui/material";
const defaultStyles = {
backgroundColor: "#ffffff",
primaryColor: "#2986CC",
primaryTextColor: "#1f1f1f",
secondaryTextColor: "#9e9e9e",
hintBackgroundColor: "#9e9e9e",
buttonTextColor: "#ffffff",
theme: "light",
corners: "rounded"
}
const d... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/hooks/useEmbed.js | src/hooks/useEmbed.js | import { useEffect, useState } from "react";
import API from "../services/API";
export const useEmbed = () => {
const [embed, setEmbed] = useState()
const id = window.EMBED_ID
useEffect(() => {
if (id) {
API.getEmbedInfo(id).then(({ data, error }) => {
if (error) {
... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/components/Attribution.js | src/components/Attribution.js | import { Box, Link, } from '@mui/material';
import { getBaseURL } from '../constants';
import { useEffect, useState } from 'react';
import { NFTContract } from '../contract';
import { useEmbed } from "../hooks/useEmbed";
export const Attribution = (props) => {
const [attributionText, setAttributionText] = useState... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/components/AutoHideAlert.js | src/components/AutoHideAlert.js | import React, {useImperativeHandle, useState} from "react";
import {Alert, Snackbar} from "@mui/material";
const AutoHideAlert = (props, ref) => {
const [isOpen, setIsOpen] = useState(false);
const [text, setText] = useState("");
const [type, setType] = useState("success");
useImperativeHandle(ref, (... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/components/QuantityModalStep.js | src/components/QuantityModalStep.js | import React, { useEffect, useState } from 'react';
import { Box, Button, Skeleton, Slider } from '@mui/material';
import {
getMaxSupply,
getMaxTokensPerMint,
getMintedNumber,
getMintPrice,
mint
} from '../mint/web3';
import { showAlert } from './AutoHideAlert';
import { parseTxError, roundToDecimal... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/components/MintModal.js | src/components/MintModal.js | import React, { useImperativeHandle, useState } from "react";
import { Box, CircularProgress, Dialog, DialogContent, DialogTitle, IconButton, Typography } from "@mui/material";
import CloseIcon from '@mui/icons-material/Close';
import { QuantityModalStep } from './QuantityModalStep';
import { isMobile } from "../utils"... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
artgenexyz/webflow-nft-components | https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/src/components/App.js | src/components/App.js | import React from "react";
import AutoHideAlert, {alertRef} from "./AutoHideAlert.js";
import MintModal, {modalRef} from "./MintModal.js";
import {ThemeProvider} from "@mui/material";
import {theme} from "../styles/theme.js";
export const App = () => {
return <ThemeProvider theme={theme}>
<div>
... | javascript | MIT | 68e9c8f3f94085337b4df953627324f2e10f8745 | 2026-01-05T03:41:12.582672Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/ember-cli-build.js | ember-cli-build.js | 'use strict';
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function(defaults) {
let app = new EmberAddon(defaults, {
// Add options here
'ember-cli-babel': {
throwUnlessParallelizable: true
}
});
/*
This build file specifies the options for the dummy ... | javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/.eslintrc.js | .eslintrc.js | module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true
}
},
plugins: [
'ember'
],
extends: [
'eslint:recommended',
'plugin:ember/recommended'
],
env: {
browser: true
... | javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/index.js | index.js | 'use strict';
/* eslint-env node */
const VersionChecker = require('ember-cli-version-checker');
const TemplateLinter = require('./broccoli-template-linter');
const PrintFailing = require('./lib/commands/print-failing');
module.exports = {
name: require('./package').name,
included: function (app) {
this._su... | javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/.template-lintrc.js | .template-lintrc.js | 'use strict';
module.exports = {
extends: 'octane',
pending: [
'dummy/templates/components/foo-bar'
]
};
| javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/broccoli-template-linter.js | broccoli-template-linter.js | 'use strict';
/* eslint-env node */
const Filter = require('broccoli-persistent-filter');
const md5Hex = require('md5-hex');
const stringify = require('json-stable-stringify');
const chalk = require('chalk');
const Linter = require('ember-template-lint');
const debug = require('debug')('template-lint:broccoli');
cons... | javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/testem.js | testem.js | module.exports = {
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
launch_in_ci: [
'Chrome'
],
launch_in_dev: [
'Chrome'
],
browser_args: {
Chrome: {
ci: [
// --no-sandbox is needed when running Chrome inside a container
process.env.CI ? '--no-sandbox' :... | javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/tests/test-helper.js | tests/test-helper.js | import Application from '../app';
import config from '../config/environment';
import { setApplication } from '@ember/test-helpers';
import { start } from 'ember-qunit';
setApplication(Application.create(config.APP));
start();
| javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/tests/acceptance/index-test.js | tests/acceptance/index-test.js | import { visit } from '@ember/test-helpers';
import { module, test } from 'qunit';
import { setupApplicationTest } from 'ember-qunit';
module('Acceptance | Homepage', function(hooks) {
setupApplicationTest(hooks);
test('the configuration html comment should be removed', async function(assert) {
await visit('/... | javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/tests/dummy/app/router.js | tests/dummy/app/router.js | import EmberRouter from '@ember/routing/router';
import config from './config/environment';
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}
Router.map(function() {
});
| javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/tests/dummy/app/app.js | tests/dummy/app/app.js | import Application from '@ember/application';
import Resolver from 'ember-resolver';
import loadInitializers from 'ember-load-initializers';
import config from './config/environment';
export default class App extends Application {
modulePrefix = config.modulePrefix;
podModulePrefix = config.podModulePrefix;
Reso... | javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/tests/dummy/config/environment.js | tests/dummy/config/environment.js | 'use strict';
module.exports = function(environment) {
let ENV = {
modulePrefix: 'dummy',
environment,
rootURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. EMBER_NATIVE_DECORATOR_SUPPORT: tr... | javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/tests/dummy/config/targets.js | tests/dummy/config/targets.js | 'use strict';
const browsers = [
'last 1 Chrome versions',
'last 1 Firefox versions',
'last 1 Safari versions'
];
const isCI = !!process.env.CI;
const isProduction = process.env.EMBER_ENV === 'production';
if (isCI || isProduction) {
browsers.push('ie 11');
}
module.exports = {
browsers
};
| javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/blueprints/ember-cli-template-lint/index.js | blueprints/ember-cli-template-lint/index.js | 'use strict';
/*eslint-env node */
const path = require('path');
const projectLocalizationFramework = require('../../lib/utils/project-localization-framework');
module.exports = {
description: 'Generate default configuration for ember-cli-template-lint.',
normalizeEntityName() {
// this prevents an error whe... | javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/blueprints/ember-cli-template-lint/recommended-files/.template-lintrc.js | blueprints/ember-cli-template-lint/recommended-files/.template-lintrc.js | 'use strict';
module.exports = {
extends: 'octane'
};
| javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/blueprints/ember-cli-template-lint/recommended-with-bare-strings-files/.template-lintrc.js | blueprints/ember-cli-template-lint/recommended-with-bare-strings-files/.template-lintrc.js | 'use strict';
module.exports = {
extends: 'octane',
rules: {
'no-bare-strings': true
}
};
| javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/node-tests/.eslintrc.js | node-tests/.eslintrc.js | 'use strict';
module.exports = {
env: {
browser: false,
node: true,
mocha: true
},
rules: {
// disabled because of Chai.js
'no-unused-expressions': 'off',
},
};
| javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/node-tests/fixtures/with-errors/.template-lintrc.js | node-tests/fixtures/with-errors/.template-lintrc.js | module.exports = {
extends: 'recommended'
};
| javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/node-tests/fixtures/no-bare-strings/.template-lintrc.js | node-tests/fixtures/no-bare-strings/.template-lintrc.js | module.exports = {
extends: 'recommended'
};
| javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/node-tests/fixtures/with-bare-strings/.template-lintrc.js | node-tests/fixtures/with-bare-strings/.template-lintrc.js | module.exports = {
extends: 'recommended',
rules: {
'no-bare-strings': true
}
};
| javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/node-tests/fixtures/handlebars-extension/.template-lintrc.js | node-tests/fixtures/handlebars-extension/.template-lintrc.js | module.exports = {
extends: 'recommended'
};
| javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/node-tests/blueprints/ember-cli-template-lint-test.js | node-tests/blueprints/ember-cli-template-lint-test.js | 'use strict';
const co = require('co');
const blueprintHelpers = require('ember-cli-blueprint-test-helpers/helpers');
const setupTestHooks = blueprintHelpers.setupTestHooks;
const emberNew = blueprintHelpers.emberNew;
const emberGenerate = require('ember-cli-blueprint-test-helpers/lib/ember-generate');
const chai = r... | javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/node-tests/acceptance/broccoli-test.js | node-tests/acceptance/broccoli-test.js | 'use strict';
const co = require('co');
const expect = require('chai').expect;
const broccoliTestHelper = require('broccoli-test-helper');
const createBuilder = broccoliTestHelper.createBuilder;
const createTempDir = broccoliTestHelper.createTempDir;
const TemplateLinter = require('../../broccoli-template-linter');
c... | javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/node-tests/unit/project-localization-framework-test.js | node-tests/unit/project-localization-framework-test.js | 'use strict';
const expect = require('chai').expect;
const projectLocalizationFramework = require('../../lib/utils/project-localization-framework');
describe('project-localization-framework', function() {
function Project(addons) { this.addons = addons; }
it('returns falsey when no addons have the `isLocalizatio... | javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/node-tests/unit/eslint-test.js | node-tests/unit/eslint-test.js | 'use strict';
const lint = require('mocha-eslint');
const paths = [
'ext/**/*.js',
'node-tests/**/*.js',
'broccoli-template-linter.js',
'index.js'
];
lint(paths);
| javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/lib/commands/print-failing.js | lib/commands/print-failing.js | 'use strict';
const path = require('path');
const fs = require('fs');
const Linter = require('ember-template-lint');
const walkSync = require('walk-sync');
module.exports = {
name: 'template-lint:print-failing',
description: 'Get current list of all failing templates. This can be used to update the `pending` list... | javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/lib/utils/project-localization-framework.js | lib/utils/project-localization-framework.js | 'use strict';
const debug = require('debug')('ember-cli-template-lint:localization-framework');
module.exports = function(project) {
if (!project || !project.addons) {
return undefined;
}
let localizationAddon;
debug('Addons found in project: %s', project.addons.map(addon => addon.name));
for (let i ... | javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/lib/plugins/remove-configuration-html-comments.js | lib/plugins/remove-configuration-html-comments.js | 'use strict';
// this Babel plugin removes configuration comments such as:
// <!-- template-lint triple-curlies=false -->
// <!-- template-lint enabled=false -->
const AstNodeInfo = require('ember-template-lint/lib/helpers/ast-node-info');
module.exports = function() {
function RemoveConfigurationHtmlCommentsP... | javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/config/environment.js | config/environment.js | 'use strict';
module.exports = function(/* environment, appConfig */) {
return { };
};
| javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/config/release.js | config/release.js | 'use strict';
/* eslint-env node */
module.exports = {
publish: true
};
| javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
ember-template-lint/ember-cli-template-lint | https://github.com/ember-template-lint/ember-cli-template-lint/blob/fdc0fb4013ae0427f1382abf833254e034577095/config/ember-try.js | config/ember-try.js | 'use strict';
const getChannelURL = require('ember-source-channel-url');
module.exports = async function() {
return {
useYarn: true,
scenarios: [
{
name: 'ember-lts-2.12',
npm: {
devDependencies: {
'ember-source': '~2.12.0'
}
}
},
{
... | javascript | MIT | fdc0fb4013ae0427f1382abf833254e034577095 | 2026-01-05T03:41:12.287450Z | false |
progers/base64 | https://github.com/progers/base64/blob/a453bcf9d939ea9c7114c5d212b87a0aa4527f73/base64.js | base64.js | 'use strict';
// Async base64 encoding and decoding
// Bundles TextEncoderLite and b64.js for utf8 and typed array support.
// See: https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding
function asyncToBase64(value, encoding, onSuccess, onError) {
try {
switch (enco... | javascript | Apache-2.0 | a453bcf9d939ea9c7114c5d212b87a0aa4527f73 | 2026-01-05T03:41:13.069708Z | false |
progers/base64 | https://github.com/progers/base64/blob/a453bcf9d939ea9c7114c5d212b87a0aa4527f73/simple-offline-service-worker.js | simple-offline-service-worker.js | 'use strict';
// Simple offline service worker.
//
// On the main page include:
// if ('serviceWorker' in navigator)
// navigator.serviceWorker.register('simple-offline-service-worker.js');
//
// This cache always requests from the network to keep the cache fresh. There is a tradeoff here
// because it'll w... | javascript | Apache-2.0 | a453bcf9d939ea9c7114c5d212b87a0aa4527f73 | 2026-01-05T03:41:13.069708Z | false |
progers/base64 | https://github.com/progers/base64/blob/a453bcf9d939ea9c7114c5d212b87a0aa4527f73/index.js | index.js | 'use strict';
// Business logic for base64 encoder (index.html).
// Requires asyncToBase64 and asyncFromBase64 from base64.js
// Initialization of these conversion type constants and locals is done in DOMContentLoaded.
var LeftConversionTypes, RightConversionTypes;
// These state variables are for the selected conver... | javascript | Apache-2.0 | a453bcf9d939ea9c7114c5d212b87a0aa4527f73 | 2026-01-05T03:41:13.069708Z | false |
progers/base64 | https://github.com/progers/base64/blob/a453bcf9d939ea9c7114c5d212b87a0aa4527f73/gulpfile.js | gulpfile.js | // Build step, just type:
// gulp
//
// Prereqs:
// 1) Install Node and NPM from https://nodejs.org
// Known to work with Node 4.2.6 and NPM 2.14.12
// 2) Install dependencies from package.json
// npm install
//
// The purpose of this build step is just to crush the output filesize. Everything should wo... | javascript | Apache-2.0 | a453bcf9d939ea9c7114c5d212b87a0aa4527f73 | 2026-01-05T03:41:13.069708Z | false |
progers/base64 | https://github.com/progers/base64/blob/a453bcf9d939ea9c7114c5d212b87a0aa4527f73/test/tests.js | test/tests.js |
var allEncodings = ['utf8', 'ascii'];
function asyncToBase64InAllEncodings(value, onSuccess, onFailure) {
for (var encoding in allEncodings)
asyncToBase64(value, allEncodings[encoding], onSuccess, onFailure);
}
function asyncFromBase64InAllEncodings(value, onSuccess, onFailure) {
for (var encoding in... | javascript | Apache-2.0 | a453bcf9d939ea9c7114c5d212b87a0aa4527f73 | 2026-01-05T03:41:13.069708Z | false |
progers/base64 | https://github.com/progers/base64/blob/a453bcf9d939ea9c7114c5d212b87a0aa4527f73/test/qunit-1.20.0.js | test/qunit-1.20.0.js | /*!
* QUnit 1.20.0
* http://qunitjs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-10-27T17:53Z
*/
(function( global ) {
var QUnit = {};
var Date = global.Date;
var now = Date.now || function() {
return new Date().g... | javascript | Apache-2.0 | a453bcf9d939ea9c7114c5d212b87a0aa4527f73 | 2026-01-05T03:41:13.069708Z | true |
lukechilds/coinflict-of-interest | https://github.com/lukechilds/coinflict-of-interest/blob/cbe67448d7f482d281540f664aed22043c022a4b/webpack.config.js | webpack.config.js | const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = () => ({
entry: {
content: './src/content',
background: './src/background'
},
output: {
path: path.join(__dirname, 'dist'),
filename: '[name].js'
},
devtool: 'sourcemap',
plugins: [
new CopyWebpackP... | javascript | MIT | cbe67448d7f482d281540f664aed22043c022a4b | 2026-01-05T03:41:15.632760Z | false |
lukechilds/coinflict-of-interest | https://github.com/lukechilds/coinflict-of-interest/blob/cbe67448d7f482d281540f664aed22043c022a4b/src/background.js | src/background.js | import webextensionFetch from './lib/webextension-fetch';
webextensionFetch.listen();
| javascript | MIT | cbe67448d7f482d281540f664aed22043c022a4b | 2026-01-05T03:41:15.632760Z | false |
lukechilds/coinflict-of-interest | https://github.com/lukechilds/coinflict-of-interest/blob/cbe67448d7f482d281540f664aed22043c022a4b/src/content.js | src/content.js | import preloadData from './lib/preload-data';
import injectChartProfilePage from './lib/inject-chart-profile-page';
import injectChartProfileHover from './lib/inject-chart-profile-hover';
const injectData = () => {
injectChartProfilePage();
injectChartProfileHover();
preloadData();
};
injectData();
const observer... | javascript | MIT | cbe67448d7f482d281540f664aed22043c022a4b | 2026-01-05T03:41:15.632760Z | false |
lukechilds/coinflict-of-interest | https://github.com/lukechilds/coinflict-of-interest/blob/cbe67448d7f482d281540f664aed22043c022a4b/src/lib/get-data.js | src/lib/get-data.js | import fetch from './webextension-fetch';
const dataCache = new Map();
const getAvailableUsers = fetch('https://hive.one/api/influencers/scores/people/available/').then(async res => {
const body = await res.json();
return body.data.available;
});
const getData = async userId => {
const availableUsers = await get... | javascript | MIT | cbe67448d7f482d281540f664aed22043c022a4b | 2026-01-05T03:41:15.632760Z | false |
lukechilds/coinflict-of-interest | https://github.com/lukechilds/coinflict-of-interest/blob/cbe67448d7f482d281540f664aed22043c022a4b/src/lib/build-bias-element.js | src/lib/build-bias-element.js | import escapeHtml from 'escape-html';
import getData from './get-data';
import calculateBias from './calculate-bias';
const buildBiasElement = async userId => {
const data = await getData(userId);
const container = document.createElement('div');
container.innerHTML = `
<div class="ProfileCardBias ProfileCardStats... | javascript | MIT | cbe67448d7f482d281540f664aed22043c022a4b | 2026-01-05T03:41:15.632760Z | false |
lukechilds/coinflict-of-interest | https://github.com/lukechilds/coinflict-of-interest/blob/cbe67448d7f482d281540f664aed22043c022a4b/src/lib/webextension-fetch.js | src/lib/webextension-fetch.js | import browser from 'webextension-polyfill';
const serializeResponse = async response => {
const {status, statusText, headers} = response;
const serializedResponse = {status, statusText, headers: {}};
for (const [header, value] of headers.entries()) {
serializedResponse.headers[header] = value;
}
serializedR... | javascript | MIT | cbe67448d7f482d281540f664aed22043c022a4b | 2026-01-05T03:41:15.632760Z | false |
lukechilds/coinflict-of-interest | https://github.com/lukechilds/coinflict-of-interest/blob/cbe67448d7f482d281540f664aed22043c022a4b/src/lib/preload-data.js | src/lib/preload-data.js | import camelcase from 'camelcase';
import getData from './get-data';
const scrapeDataAttribute = dataAttribute => {
return [...document.querySelectorAll(`[data-${dataAttribute}]`)].map(el => {
return el.dataset[camelcase(dataAttribute)];
});
};
const preloadData = () => {
new Set([
...scrapeDataAttribute('user... | javascript | MIT | cbe67448d7f482d281540f664aed22043c022a4b | 2026-01-05T03:41:15.632760Z | false |
lukechilds/coinflict-of-interest | https://github.com/lukechilds/coinflict-of-interest/blob/cbe67448d7f482d281540f664aed22043c022a4b/src/lib/inject-chart-profile-page.js | src/lib/inject-chart-profile-page.js | import buildBiasElement from './build-bias-element';
const injectChartProfilePage = async () => {
const profileHeaderCard = document.querySelector('.ProfileHeaderCard');
if (!(profileHeaderCard && !profileHeaderCard.dataset.coinflict)) {
return;
}
profileHeaderCard.dataset.coinflict = true;
const {userId} = ... | javascript | MIT | cbe67448d7f482d281540f664aed22043c022a4b | 2026-01-05T03:41:15.632760Z | false |
lukechilds/coinflict-of-interest | https://github.com/lukechilds/coinflict-of-interest/blob/cbe67448d7f482d281540f664aed22043c022a4b/src/lib/inject-chart-profile-hover.js | src/lib/inject-chart-profile-hover.js | import buildBiasElement from './build-bias-element';
const injectChartProfileHover = async () => {
const profileHoverContainer = document.querySelector('#profile-hover-container');
const profileCard = profileHoverContainer ? profileHoverContainer.querySelector('.profile-card') : false;
if (!(profileCard && !profil... | javascript | MIT | cbe67448d7f482d281540f664aed22043c022a4b | 2026-01-05T03:41:15.632760Z | false |
lukechilds/coinflict-of-interest | https://github.com/lukechilds/coinflict-of-interest/blob/cbe67448d7f482d281540f664aed22043c022a4b/src/lib/calculate-bias.js | src/lib/calculate-bias.js | // EXPONENT_MULITIPLIER is used to tweak how heavily the difference between the
// influence affects the bias result.
// Setting EXPONENT_MULITIPLIER to 0 will mean all biases are equal.
// Setting EXPONENT_MULITIPLIER to a large enough number will mean the bias will sway
// 100% towards the currency with the most infl... | javascript | MIT | cbe67448d7f482d281540f664aed22043c022a4b | 2026-01-05T03:41:15.632760Z | false |
julianocomg/react-native-form | https://github.com/julianocomg/react-native-form/blob/ea0844c232dbd83dec4220a3fd6067ba8545c9bd/form.js | form.js | /**
* @author Juliano Castilho <julianocomg@gmail.com>
*/
import React from 'react'
import {View} from 'react-native'
import serialize from './serialize'
class Form extends React.Component {
/**
* @param {Object} props
*/
constructor(props) {
super(props)
this.fields = {}
this.formFields = {};... | javascript | MIT | ea0844c232dbd83dec4220a3fd6067ba8545c9bd | 2026-01-05T03:41:18.992122Z | false |
julianocomg/react-native-form | https://github.com/julianocomg/react-native-form/blob/ea0844c232dbd83dec4220a3fd6067ba8545c9bd/serialize.js | serialize.js | /*
The MIT License (MIT)
Copyright (c) 2013 Roman Shtylman
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, m... | javascript | MIT | ea0844c232dbd83dec4220a3fd6067ba8545c9bd | 2026-01-05T03:41:18.992122Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/webpack.dev.config.js | webpack.dev.config.js | const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const {PORT, HOST} = require('./server.dev');
module.exports =... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/webpack.demo-build.config.js | webpack.demo-build.config.js | const path = require('path');
const fs = require('fs');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CompressionPlugin = require('compression-webpack-plugin');
const CleanWebpackPlugin = require('cle... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/server.pd.js | server.pd.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 16/12/29
*/
import React from 'react';
import {renderToString} from 'react-dom/server';
import {StaticRouter} from 'react-router-dom';
import multer from 'multer';
import express from 'express';
import path from 'path';
im... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/webpack.demo-server.config.js | webpack.demo-server.config.js | const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
// remove webpack-loader confused warning: https://github.com/webpack/loader-utils/issues/56
process.noDeprecation = true;
module.exports = {
entry: './server.pd.js',
output: {
... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/server.dev.js | server.dev.js | const PORT = 8000;
const HOST = '0.0.0.0';
const multer = require('multer');
const Express = require('express');
const storage = multer.memoryStorage();
const upload = multer({storage});
const app = new Express();
app.post('/upload', upload.any(), (req, res) => {
if (!req.files) {
return res.status(400).send('... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/index.js | src/index.js | // Seeds
export {default as Switch} from './seeds/Switch';
export {default as Text} from './seeds/Text';
export {Button, ButtonGroup} from './seeds/Button';
export {default as Title} from './seeds/Title';
export {Checkbox, CheckboxGroup} from './seeds/Checkbox';
export {default as Icon} from './seeds/Icon';
export {Rad... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Popover/index.js | src/seeds/Popover/index.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/2/20
*/
import './popover.scss';
export {default} from './Popover';
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Popover/Popover.js | src/seeds/Popover/Popover.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/2/20
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import {getRestProps} from '../../utils';
import Tooltip from '../Tooltip';
import IconButton from '../.... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Modal/Modal.js | src/seeds/Modal/Modal.js | import React from 'react';
import {findDOMNode} from 'react-dom';
import PropTypes from 'prop-types';
import {TransitionGroup, CSSTransition} from 'react-transition-group';
import cx from 'classnames';
import Divider from '../Divider';
import {Button} from '../Button';
import Icon from '../Icon';
import RenderToNode f... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Modal/index.js | src/seeds/Modal/index.js | import Modal from './Modal';
import './modal.scss';
export default Modal;
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Switch/Switch.js | src/seeds/Switch/Switch.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import getRestProps from '../../utils/getRestProps';
/**
* TODO svg icon improve
*/
const noop = () => {};
export default class Switch extends Component {
static propTypes = {
/**
* @en
* wheth... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Switch/index.js | src/seeds/Switch/index.js | import Switch from './Switch';
import './switch.scss';
export default Switch;
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Link/index.js | src/seeds/Link/index.js | /**
* Copyright(c) dtysky<dtysky@outlook.com>
* Created: 3 Feb 2018
* Description:
*/
import Link from './Link';
import './link.scss';
export default Link;
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Link/Link.js | src/seeds/Link/Link.js | /**
* Copyright(c) dtysky<dtysky@outlook.com>
* Created: 3 Feb 2018
* Description:
*/
import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import getRestProps from '../../utils/getRestProps';
import Icon from '../Icon';
const Link = (props) => (
<a
className={cx(
... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Title/index.js | src/seeds/Title/index.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import './title.scss';
class Title extends Component {
static propTypes = {
/**
* @en
* Custom component style
*
* @cn
* 自定义组件样式
*/
style: PropTypes.object,
/**
* @en
* Show component sub t... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Notification/index.js | src/seeds/Notification/index.js | import Notification from './Notification';
import Notifications from './Notifications';
import './notification.scss';
export {
Notification,
Notifications
};
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Notification/Notifications.js | src/seeds/Notification/Notifications.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import update from 'immutability-helper';
import {TransitionGroup, CSSTransition} from 'react-transition-group';
import Notification from './Notification';
class Notifications extends Component {
static propTypes = {
/**
* @en
... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Notification/Notification.js | src/seeds/Notification/Notification.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import Icon from '../Icon';
class Notification extends Component {
static propTypes = {
/**
* @en
* Custom component style
*
* @cn
* 自定义组件样式
*/
style: PropTypes.object,
... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Table/index.js | src/seeds/Table/index.js | import Table from './Table';
import './table.scss';
export default Table;
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Table/Table.js | src/seeds/Table/Table.js | import React, {Component, isValidElement} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import isEqual from 'lodash/isEqual';
import isFunction from 'lodash/isFunction';
import isArray from 'lodash/isArray';
import range from 'lodash/range';
import xor from 'lodash/xor';
import {Checkbo... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Tag/index.js | src/seeds/Tag/index.js | import Tag from './Tag';
import './tag.scss';
export default Tag;
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Tag/Tag.js | src/seeds/Tag/Tag.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import Icon from '../Icon';
import getRestProps from '../../utils/getRestProps';
const noop = () => {};
export default class Tag extends Component {
static propTypes = {
/**
* @en
* the tag's labe... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Select/Select.js | src/seeds/Select/Select.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import cx from 'classnames';
import remove from 'lodash/remove';
import find from 'lodash/find';
import isArray from 'lodash/isArray';
import {TransitionGroup, CSSTransition} from 'react-transition-group';
imp... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Select/index.js | src/seeds/Select/index.js | import Select from './Select';
import Option from './Option';
import './select.scss';
export {
Select,
Option
};
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/Select/Option.js | src/seeds/Select/Option.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import getRestProps from '../../utils/getRestProps';
const noop = () => {};
export default class Option extends Component {
static propTypes = {
/**
* @en
* the label of option
*
* @cn
... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/TimePicker/Select.js | src/seeds/TimePicker/Select.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/23
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import {TransitionGroup, CSSTransition} from 'react-transition-group';
import cx from 'classnames';
... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/TimePicker/index.js | src/seeds/TimePicker/index.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/23
*/
import './time-picker.scss';
export {default} from './TimePicker';
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/TimePicker/Container.js | src/seeds/TimePicker/Container.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/23
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import {TransitionGroup, CSSTransition} from 'react-transition-group';
import {Button} from '../Button';
... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/TimePicker/TimePicker.js | src/seeds/TimePicker/TimePicker.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/23
*/
import React, {Component, cloneElement} from 'react';
import PropTypes from 'prop-types';
import ReactDom from 'react-dom';
import cx from 'classnames';
import {getRestProps, MissingPropertyError} from '../../ut... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/TimePicker/utils.js | src/seeds/TimePicker/utils.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/23
*/
export const containerWidth = 420;
export const containerHeight = 120;
export const enterTime = 500;
export const leaveTime = 300;
export {dateOrStringOrNull} from '../../utils';
export const nop = () => {};
... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/TextArea/Hint.js | src/seeds/TextArea/Hint.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/2/7
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
export default class Hint extends Component {
static propTypes = {
/** Mode of hint. */
mode: ... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/TextArea/TextArea.js | src/seeds/TextArea/TextArea.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/2/7
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {findDOMNode} from 'react-dom';
import cx from 'classnames';
import {getRestProps} from '../../utils';
import Hint from './Hint... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/TextArea/index.js | src/seeds/TextArea/index.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/2/7
*/
import './text-area.scss';
export {default} from './TextArea';
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.