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 |
|---|---|---|---|---|---|---|---|---|
micahrye/react-native-animated-sprite | https://github.com/micahrye/react-native-animated-sprite/blob/f0322103e6038e221713729d82c729ae73e4e898/index.js | index.js | import AnimatedSprite from './src/components/AnimatedSprite';
export default AnimatedSprite;
| javascript | MIT | f0322103e6038e221713729d82c729ae73e4e898 | 2026-01-05T03:42:30.948592Z | false |
micahrye/react-native-animated-sprite | https://github.com/micahrye/react-native-animated-sprite/blob/f0322103e6038e221713729d82c729ae73e4e898/src/Tweens/Tweens.js | src/Tweens/Tweens.js | /*
Nice cheat sheet of easing functions http://easings.net/
*/
import {
Animated,
Easing,
} from 'react-native';
/*
NOTE: may want to consider refactor that passes back Animated objects that
get their "start()" called directly by callee. This would allow for the
callee to chain animations together in a way t... | javascript | MIT | f0322103e6038e221713729d82c729ae73e4e898 | 2026-01-05T03:42:30.948592Z | false |
micahrye/react-native-animated-sprite | https://github.com/micahrye/react-native-animated-sprite/blob/f0322103e6038e221713729d82c729ae73e4e898/src/components/AnimatedSprite.js | src/components/AnimatedSprite.js | "use strict";
import React from 'react';
import {
Animated,
PanResponder,
TouchableOpacity,
Image,
} from 'react-native';
import PropTypes from 'prop-types';
import shallowCompare from 'react-addons-shallow-compare';
import _ from 'lodash';
import randomstring from 'random-string';
import Tweens from "../Tw... | javascript | MIT | f0322103e6038e221713729d82c729ae73e4e898 | 2026-01-05T03:42:30.948592Z | false |
micahrye/react-native-animated-sprite | https://github.com/micahrye/react-native-animated-sprite/blob/f0322103e6038e221713729d82c729ae73e4e898/example/app/index.android.js | example/app/index.android.js | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Button,
} from 'react-native';
import sample from 'lodash.sample';
import AnimatedSprite from 'react-native-animated-sprite';
import... | javascript | MIT | f0322103e6038e221713729d82c729ae73e4e898 | 2026-01-05T03:42:30.948592Z | false |
micahrye/react-native-animated-sprite | https://github.com/micahrye/react-native-animated-sprite/blob/f0322103e6038e221713729d82c729ae73e4e898/example/app/index.ios.js | example/app/index.ios.js | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class AnimatedSpriteExample extends Component {
render() {
return (
<View style={styl... | javascript | MIT | f0322103e6038e221713729d82c729ae73e4e898 | 2026-01-05T03:42:30.948592Z | false |
micahrye/react-native-animated-sprite | https://github.com/micahrye/react-native-animated-sprite/blob/f0322103e6038e221713729d82c729ae73e4e898/example/app/sprites/monster/monsterSprite.js | example/app/sprites/monster/monsterSprite.js |
const monsterSprite = {
name:"monster",
size: {width: 220, height: 220},
animationTypes: ['IDLE', 'WALK', 'EAT', 'CELEBRATE', 'DISGUST', 'ALL'],
frames: [
require('./monster_idle.png'),
require('./monster_walk01.png'),
require('./monster_walk02.png'),
require('./monster_walk03.png'),
requir... | javascript | MIT | f0322103e6038e221713729d82c729ae73e4e898 | 2026-01-05T03:42:30.948592Z | false |
micahrye/react-native-animated-sprite | https://github.com/micahrye/react-native-animated-sprite/blob/f0322103e6038e221713729d82c729ae73e4e898/example/app/__tests__/index.android.js | example/app/__tests__/index.android.js | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
| javascript | MIT | f0322103e6038e221713729d82c729ae73e4e898 | 2026-01-05T03:42:30.948592Z | false |
micahrye/react-native-animated-sprite | https://github.com/micahrye/react-native-animated-sprite/blob/f0322103e6038e221713729d82c729ae73e4e898/example/app/__tests__/index.ios.js | example/app/__tests__/index.ios.js | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
| javascript | MIT | f0322103e6038e221713729d82c729ae73e4e898 | 2026-01-05T03:42:30.948592Z | false |
micahrye/react-native-animated-sprite | https://github.com/micahrye/react-native-animated-sprite/blob/f0322103e6038e221713729d82c729ae73e4e898/example/sprites/monster/monsterSprite.js | example/sprites/monster/monsterSprite.js |
const monsterSprite = {
name:"monster",
size: {width: 220, height: 220},
animationTypes: ['IDLE', 'WALK', 'EAT', 'CELEBRATE', 'DISGUST', 'ALL'],
frames: [
require('./monster_idle.png'),
require('./monster_walk01.png'),
require('./monster_walk02.png'),
require('./monster_walk03.png'),
requir... | javascript | MIT | f0322103e6038e221713729d82c729ae73e4e898 | 2026-01-05T03:42:30.948592Z | false |
micahrye/react-native-animated-sprite | https://github.com/micahrye/react-native-animated-sprite/blob/f0322103e6038e221713729d82c729ae73e4e898/example/rnas/index.android.js | example/rnas/index.android.js | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Button,
} from 'react-native';
import sample from 'lodash.sample';
import AnimatedSprite from 'react-native-animated-sprite';
import... | javascript | MIT | f0322103e6038e221713729d82c729ae73e4e898 | 2026-01-05T03:42:30.948592Z | false |
micahrye/react-native-animated-sprite | https://github.com/micahrye/react-native-animated-sprite/blob/f0322103e6038e221713729d82c729ae73e4e898/example/rnas/index.ios.js | example/rnas/index.ios.js | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class rnas extends Component {
render() {
return (
<View style={styles.container}>
... | javascript | MIT | f0322103e6038e221713729d82c729ae73e4e898 | 2026-01-05T03:42:30.948592Z | false |
micahrye/react-native-animated-sprite | https://github.com/micahrye/react-native-animated-sprite/blob/f0322103e6038e221713729d82c729ae73e4e898/example/rnas/sprites/monster/monsterSprite.js | example/rnas/sprites/monster/monsterSprite.js |
const monsterSprite = {
name:"monster",
size: {width: 220, height: 220},
animationTypes: ['IDLE', 'WALK', 'EAT', 'CELEBRATE', 'DISGUST', 'ALL'],
frames: [
require('./monster_idle.png'),
require('./monster_walk01.png'),
require('./monster_walk02.png'),
require('./monster_walk03.png'),
requir... | javascript | MIT | f0322103e6038e221713729d82c729ae73e4e898 | 2026-01-05T03:42:30.948592Z | false |
micahrye/react-native-animated-sprite | https://github.com/micahrye/react-native-animated-sprite/blob/f0322103e6038e221713729d82c729ae73e4e898/example/rnas/__tests__/index.android.js | example/rnas/__tests__/index.android.js | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
| javascript | MIT | f0322103e6038e221713729d82c729ae73e4e898 | 2026-01-05T03:42:30.948592Z | false |
micahrye/react-native-animated-sprite | https://github.com/micahrye/react-native-animated-sprite/blob/f0322103e6038e221713729d82c729ae73e4e898/example/rnas/__tests__/index.ios.js | example/rnas/__tests__/index.ios.js | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
| javascript | MIT | f0322103e6038e221713729d82c729ae73e4e898 | 2026-01-05T03:42:30.948592Z | false |
OraOpenSource/apex-nitro | https://github.com/OraOpenSource/apex-nitro/blob/48c322b25c8602ffbdc6e4b1cf5118e69b9f529c/bin/apex-nitro.js | bin/apex-nitro.js | #!/usr/bin/env node
const chalk = require('chalk');
const commander = require('commander');
const update = require('update-notifier');
const pkg = require('../package.json');
const apexnitro = require('../lib');
// Close the pool cleanly if Node.js is interrupted
process
.once('SIGTERM', () => {
process.exit();
... | javascript | MIT | 48c322b25c8602ffbdc6e4b1cf5118e69b9f529c | 2026-01-05T03:40:54.173066Z | false |
OraOpenSource/apex-nitro | https://github.com/OraOpenSource/apex-nitro/blob/48c322b25c8602ffbdc6e4b1cf5118e69b9f529c/lib/index.js | lib/index.js | module.exports = {
init: require('./commands/init'),
launch: require('./commands/launch'),
upload: require('./commands/upload')
};
| javascript | MIT | 48c322b25c8602ffbdc6e4b1cf5118e69b9f529c | 2026-01-05T03:40:54.173066Z | false |
OraOpenSource/apex-nitro | https://github.com/OraOpenSource/apex-nitro/blob/48c322b25c8602ffbdc6e4b1cf5118e69b9f529c/lib/services/nitro-service.js | lib/services/nitro-service.js | const inquirer = require('inquirer');
const chalk = require('chalk');
const path = require('path');
const npmService = require('./npm-service');
const initApex = async () => {
const apexQuestions = getApexQuestions();
// Get browsersync config
const apexConfig = await inquirer.prompt(apexQuestions);
return apexC... | javascript | MIT | 48c322b25c8602ffbdc6e4b1cf5118e69b9f529c | 2026-01-05T03:40:54.173066Z | false |
OraOpenSource/apex-nitro | https://github.com/OraOpenSource/apex-nitro/blob/48c322b25c8602ffbdc6e4b1cf5118e69b9f529c/lib/services/template-service.js | lib/services/template-service.js | const path = require('path');
const initTemplate = async (initFilePath, appDetails) => {
const init = require(path.resolve(initFilePath));
const initResult = await init(appDetails);
return initResult;
};
const getTemplateNameFromGitUrl = gitUrl => {
return gitUrl.split('/').pop().split('.')[0];
};
const getNpmIn... | javascript | MIT | 48c322b25c8602ffbdc6e4b1cf5118e69b9f529c | 2026-01-05T03:40:54.173066Z | false |
OraOpenSource/apex-nitro | https://github.com/OraOpenSource/apex-nitro/blob/48c322b25c8602ffbdc6e4b1cf5118e69b9f529c/lib/services/npm-service.js | lib/services/npm-service.js | const fs = require('fs-extra');
const {spawn} = require('child_process');
const ora = require('ora');
const installPackage = async (packageName, packagePath = './') => {
const spinner = ora(`Installing ${packageName}`).start();
await fs.ensureDir(packagePath);
return new Promise((resolve, reject) => {
const com... | javascript | MIT | 48c322b25c8602ffbdc6e4b1cf5118e69b9f529c | 2026-01-05T03:40:54.173066Z | false |
OraOpenSource/apex-nitro | https://github.com/OraOpenSource/apex-nitro/blob/48c322b25c8602ffbdc6e4b1cf5118e69b9f529c/lib/util/notify.js | lib/util/notify.js | const path = require('path');
const notifier = require('node-notifier');
module.exports = {
launch() {
notifier.notify({
title: 'APEX Nitro',
message: 'is now running.',
icon: path.join(__dirname, '../../docs/img/apex-nitro-icon.png'),
timeout: 3
});
},
changeDetected() {
notifier.notify({
tit... | javascript | MIT | 48c322b25c8602ffbdc6e4b1cf5118e69b9f529c | 2026-01-05T03:40:54.173066Z | false |
OraOpenSource/apex-nitro | https://github.com/OraOpenSource/apex-nitro/blob/48c322b25c8602ffbdc6e4b1cf5118e69b9f529c/lib/util/validations.js | lib/util/validations.js | const fs = require('fs');
const path = require('path');
module.exports = {
// Validates if there is any file to process in the source folder
isSrcFolderValid(config) {
// Returns all files within a single dir
const walkSync = (dir, filelist = []) => {
fs.readdirSync(dir).forEach(file => {
filelist = fs.st... | javascript | MIT | 48c322b25c8602ffbdc6e4b1cf5118e69b9f529c | 2026-01-05T03:40:54.173066Z | false |
OraOpenSource/apex-nitro | https://github.com/OraOpenSource/apex-nitro/blob/48c322b25c8602ffbdc6e4b1cf5118e69b9f529c/lib/util/util.js | lib/util/util.js | /* eslint no-unused-vars: ["error", { "caughtErrors": "none" }] */
const path = require('path');
const fs = require('fs-extra');
const chalk = require('chalk');
module.exports = {
getConfig() {
let config;
let cred;
try {
config = require(path.resolve(process.cwd(), 'apexnitro.config.json'));
} catch {
... | javascript | MIT | 48c322b25c8602ffbdc6e4b1cf5118e69b9f529c | 2026-01-05T03:40:54.173066Z | false |
OraOpenSource/apex-nitro | https://github.com/OraOpenSource/apex-nitro/blob/48c322b25c8602ffbdc6e4b1cf5118e69b9f529c/lib/commands/upload.js | lib/commands/upload.js | /* eslint prefer-destructuring: ["error", {AssignmentExpression: {array: true}}] */
const fs = require('fs');
const path = require('path');
const inquirer = require('inquirer');
const chalk = require('chalk');
const uploader = require('apex-publish-static-files');
const util = require('../util/util');
const validation... | javascript | MIT | 48c322b25c8602ffbdc6e4b1cf5118e69b9f529c | 2026-01-05T03:40:54.173066Z | false |
OraOpenSource/apex-nitro | https://github.com/OraOpenSource/apex-nitro/blob/48c322b25c8602ffbdc6e4b1cf5118e69b9f529c/lib/commands/launch.js | lib/commands/launch.js | /* eslint prefer-destructuring: ["error", {AssignmentExpression: {array: true}}] */
const path = require('path');
const fs = require('fs-extra');
const browsersync = require('browser-sync').create();
const del = require('del');
const chalk = require('chalk');
const open = require('open');
const validations = require(... | javascript | MIT | 48c322b25c8602ffbdc6e4b1cf5118e69b9f529c | 2026-01-05T03:40:54.173066Z | false |
OraOpenSource/apex-nitro | https://github.com/OraOpenSource/apex-nitro/blob/48c322b25c8602ffbdc6e4b1cf5118e69b9f529c/lib/commands/init.js | lib/commands/init.js | const path = require('path');
const chalk = require('chalk');
const fs = require('fs-extra');
const inquirer = require('inquirer');
const BasicModeInitializer = require('../modes/basic');
const ProModeInitializer = require('../modes/pro');
module.exports = function () {
/* eslint no-unused-vars: ["error", { "caughtEr... | javascript | MIT | 48c322b25c8602ffbdc6e4b1cf5118e69b9f529c | 2026-01-05T03:40:54.173066Z | false |
OraOpenSource/apex-nitro | https://github.com/OraOpenSource/apex-nitro/blob/48c322b25c8602ffbdc6e4b1cf5118e69b9f529c/lib/modes/basic.js | lib/modes/basic.js | const path = require('path');
const inquirer = require('inquirer');
module.exports = class BasicModeInitializer {
async init(config) {
// Ask the questions for basic mode
const basicModeQuestions = this.getQuestions();
const basicModeConfig = await inquirer.prompt(basicModeQuestions);
basicModeConfig.srcFolde... | javascript | MIT | 48c322b25c8602ffbdc6e4b1cf5118e69b9f529c | 2026-01-05T03:40:54.173066Z | false |
OraOpenSource/apex-nitro | https://github.com/OraOpenSource/apex-nitro/blob/48c322b25c8602ffbdc6e4b1cf5118e69b9f529c/lib/modes/pro.js | lib/modes/pro.js | const path = require('path');
const fs = require('fs-extra');
const chalk = require('chalk');
const templateService = require('../services/template-service');
const nitroService = require('../services/nitro-service');
const npmService = require('../services/npm-service');
module.exports = class ProModeInitializer {
c... | javascript | MIT | 48c322b25c8602ffbdc6e4b1cf5118e69b9f529c | 2026-01-05T03:40:54.173066Z | false |
rtivital/react-pages-boilerplate | https://github.com/rtivital/react-pages-boilerplate/blob/26354d95c8b5d0f3dafd844cc0b5b912124e35eb/enzyme.setup.js | enzyme.setup.js | const Enzyme = require('enzyme');
const Adapter = require('@wojtekmaj/enzyme-adapter-react-17');
const React = require('react');
// Fix broken layout effects on testing environments
React.useLayoutEffect = React.useEffect;
Enzyme.configure({ adapter: new Adapter() });
| javascript | MIT | 26354d95c8b5d0f3dafd844cc0b5b912124e35eb | 2026-01-05T03:42:32.965721Z | false |
rtivital/react-pages-boilerplate | https://github.com/rtivital/react-pages-boilerplate/blob/26354d95c8b5d0f3dafd844cc0b5b912124e35eb/.prettierrc.js | .prettierrc.js | module.exports = require('@mantine/eslint-config/prettier.config');
| javascript | MIT | 26354d95c8b5d0f3dafd844cc0b5b912124e35eb | 2026-01-05T03:42:32.965721Z | false |
rtivital/react-pages-boilerplate | https://github.com/rtivital/react-pages-boilerplate/blob/26354d95c8b5d0f3dafd844cc0b5b912124e35eb/webpack.config.js | webpack.config.js | const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const TerserJSPlugin = require('terser-webpack-plugin');
const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
const CnameWebpackPlugin = require('cname-webpack-plugin');
const setting... | javascript | MIT | 26354d95c8b5d0f3dafd844cc0b5b912124e35eb | 2026-01-05T03:42:32.965721Z | false |
rtivital/react-pages-boilerplate | https://github.com/rtivital/react-pages-boilerplate/blob/26354d95c8b5d0f3dafd844cc0b5b912124e35eb/settings.js | settings.js | module.exports = {
// Base application title used in document.title
title: 'React pages boilerplate',
// use cname option to add CNAME file to webpack build
// CNAME file allows to use custom domain names with gh-pages, example:
// cname: 'omatsuri.app'
cname: null,
// add repo path for username.github.... | javascript | MIT | 26354d95c8b5d0f3dafd844cc0b5b912124e35eb | 2026-01-05T03:42:32.965721Z | false |
rtivital/react-pages-boilerplate | https://github.com/rtivital/react-pages-boilerplate/blob/26354d95c8b5d0f3dafd844cc0b5b912124e35eb/jest.config.js | jest.config.js | module.exports = {
verbose: true,
setupFilesAfterEnv: ['<rootDir>/enzyme.setup.js'],
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx'],
moduleNameMapper: { '\\.(css|less)$': 'identity-obj-proxy' },
snapshotSerializers: ['enzyme-to-json/serializer'],
transform: {
'\\.(ts|tsx)$': '<rootDir>/node_mo... | javascript | MIT | 26354d95c8b5d0f3dafd844cc0b5b912124e35eb | 2026-01-05T03:42:32.965721Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/.eslintrc.js | .eslintrc.js | const eslintrc = {
extends: ['airbnb', 'prettier'],
env: {
browser: true,
node: true,
jasmine: true,
jest: true,
es6: true,
},
parser: 'babel-eslint',
plugins: ['markdown', 'react', 'babel'],
rules: {
'react/jsx-one-expression-per-line': 0,
'react/prop-types': 0,
'react/no-ty... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/babel.config.js | babel.config.js | module.exports = {
presets: [
'@babel/preset-env',
'@babel/preset-react',
],
plugins: [
'transform-class-properties',
'@babel/plugin-transform-modules-commonjs',
'@babel/plugin-transform-object-assign',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spre... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/webpack.config.js | webpack.config.js | /* eslint-disable */
'use strict';
const path = require('path');
const webpack = require('webpack');
const PnpWebpackPlugin = require('pnp-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
const TerserPlugin = re... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/jest.config.js | jest.config.js | /**
* Jest 配置文件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019/3/17 00:40
*/
const alias = require('./config/alias');
const paths = require('./config/paths');
module.exports = {
verbose: true,
setupFiles: ['./tests/setup.js'],
moduleFileExtensions: ['js', 'jsx', 'json', 'node', 'ts', 'tsx', 'scss', 'cs... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/scripts/start.js | scripts/start.js | /* eslint-disable */
// Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'development';
process.env.NODE_ENV = 'development';
// Makes the script crash on unhandled rejections instead of silently
// ignoring them. In the future, promise rejections that are not handled... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/scripts/test-all.js | scripts/test-all.js | /* eslint-disable */
/**
* 全量测试流程
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-17 01:02
*/
const boxen = require('boxen');
const compareVersions = require('compare-versions');
const latestVersion = require('latest-version');
const pkg = require('../package');
const ora = require('ora');
const chalk = req... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/scripts/build.js | scripts/build.js | /* eslint-disable */
process.env.BABEL_ENV = 'production';
process.env.NODE_ENV = 'production';
process.on('unhandledRejection', err => {
throw err;
});
require('../config/env');
const path = require('path');
const chalk = require('chalk');
const fs = require('fs-extra');
const webpack = require('webpack');
const... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/index.js | src/index.js | import {Col as ColComponent, Row as RowComponent} from './components/Grid';
import {Bar as BarComponent, Progress as ProgressComponent} from './components/ProgressBar';
import './styles/style.scss';
/** 栅格行 */
export const Row = RowComponent;
/** 栅格列 */
export const Col = ColComponent;
/** 进度条容器 */
export const Progre... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/_variables.js | src/_variables.js | module.exports = {
/** 自定义 className 修饰符前缀 */
classPrefix: 'shine',
/* 默认字体集 */
fontFamily: '"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif',
/* 主色调与状态颜色 */
colors: {
brand: {
base: '#716ACA',
inverse: '#FFFFFF',
},
gra... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/validations.js | src/validations.js | /**
* 表单校验规则、错误提示
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-05-04 21:31
*/
import _ from 'lodash';
const getByteLen = value => {
let len = 0;
// eslint-disable-next-line no-plusplus
for (let i = 0; i < value.length; i++) {
if (value.charCodeAt(i) > 127 || value.charCodeAt(i) === 94) {
len... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Modal/index.js | src/components/Modal/index.js | /**
* @Component Modal
* @Type 模态框
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-06-05 18:01
*/
import React, {Fragment, PureComponent} from 'react';
import _ from 'lodash';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import jQuery from 'jquery';
import Button from '../Butto... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Modal/demo/index.js | src/components/Modal/demo/index.js | /**
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-24 12:28
*/
import {Button, Modal} from 'shineDev';
import basic from '!!raw-loader!./Basic';
import size from '!!raw-loader!./Size';
import center from '!!raw-loader!./Center';
const components = {Modal, Button};
export default {
basic: {
compone... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Modal/demo/Center.js | src/components/Modal/demo/Center.js | import React, {Component} from 'react';
import {Button, Modal} from "shineDev";
class Centered extends Component {
state = {isOpen: false};
onOpenModal = () => this.setState({isOpen: true});
render() {
return (
<div className="shine-modal-helper">
<Button bgColor="primary" className="shine-bt... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Modal/demo/Size.js | src/components/Modal/demo/Size.js | import React, {Component} from 'react';
import {Button, Modal} from "shineDev";
class Size extends Component {
state = {isOpen: false};
onOpenModal = () => this.setState({isOpen: true});
render() {
const {size} = this.props;
return (
<div className="shine-modal-helper">
<Button
... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Modal/demo/Basic.js | src/components/Modal/demo/Basic.js | import React, {Component} from 'react';
import {Button, Modal} from "shineDev";
class Basic extends Component {
state = {isOpen: false};
onOpenModal = () => this.setState({isOpen: true});
render() {
return (
<div className="shine-modal-helper">
<Button bgColor="primary" className="shine-btn-d... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Switch/index.js | src/components/Switch/index.js | /**
* @Component Switch
* @Type 开关组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-08-20 20:50
*/
import _ from 'lodash';
import React, {PureComponent} from 'react';
import classNames from 'classnames';
import * as PropTypes from 'prop-types';
import {classPrefix} from 'variables';
import {buildDefaultRules,... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Switch/demo/index.js | src/components/Switch/demo/index.js | /**
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-05-02 22:08
*/
import {Col, Form, Row, Switch} from "shineDev";
const components = {Switch, Form, Row, Col};
export default {
basic: {
components,
jsx:
`<div className="shine-switch-helper">
<Form>
<Row>
<Col col={8}>
<F... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/ProgressBar/index.js | src/components/ProgressBar/index.js | /**
* @Component ProgressBar
* @Type 进度条组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-25 18:50
*/
/** 进度条容器 */
export {default as Progress} from './Progress';
/** 进度条项 */
export {default as Bar} from './Bar';
| javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/ProgressBar/__test__/index.test.js | src/components/ProgressBar/__test__/index.test.js | import React from 'react';
import {mount} from 'enzyme';
import _ from 'lodash';
import Mock from 'mockjs';
import {classPrefix} from 'variables';
import {Bar, Progress} from 'shineDev';
describe('Progress', () => {
it('快照测试', () => {
const wrapper = mount(<Progress><Bar /></Progress>);
expect(wrapper).toMa... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/ProgressBar/Bar/index.js | src/components/ProgressBar/Bar/index.js | /**
* @Component Bar
* @Type 进度条组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-25 20:17
*/
import React, {PureComponent} from 'react';
import _ from 'lodash';
import classNames from 'classnames';
import * as PropTypes from 'prop-types';
class Bar extends PureComponent {
render() {
const {percent,... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/ProgressBar/Progress/index.js | src/components/ProgressBar/Progress/index.js | /**
* @Component Progress
* @Type 进度条组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-25 18:50
*/
import React, {PureComponent} from 'react';
import _ from 'lodash';
import classNames from 'classnames';
import * as PropTypes from 'prop-types';
class Progress extends PureComponent {
render() {
cons... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/ProgressBar/demo/index.js | src/components/ProgressBar/demo/index.js | /**
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-24 12:28
*/
import { Progress, Bar } from "shineDev";
const components = { Progress, Bar };
export default {
basic: {
components,
jsx:
`<Progress className="shine-progress-helper">
<Bar percent={0} />
</Progress>
<Progress className="shine-p... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/ProgressBar/demo/Scroll.js | src/components/ProgressBar/demo/Scroll.js | /**
* 滚动进度条示例
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-26 08:33
*/
import React, { Component } from "react";
import { Progress, Bar } from "shineDev";
/* eslint-disable react/no-unused-state */
class Scroll extends Component {
state = {
percent: 0,
isIncrease: true,
};
componentDidMou... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Select/index.js | src/components/Select/index.js | /**
* @Component Select
* @Type 下拉选择组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-06-05 18:45
*/
import React, {PureComponent} from 'react';
import _ from 'lodash';
import classNames from 'classnames';
import jQuery from 'jquery';
import 'bootstrap-select';
import * as PropTypes from 'prop-types';
import ... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Select/Option.js | src/components/Select/Option.js | /**
* Select.Options
* 选择框选项
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2020-03-30 22:53
*/
import React, {PureComponent} from 'react';
import _ from 'lodash';
import * as PropTypes from 'prop-types';
class Option extends PureComponent {
render() {
const {keywords, title, value, label, content, subtex... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Select/demo/index.js | src/components/Select/demo/index.js | /**
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-24 12:28
*/
import {Form, Select} from 'shineDev';
const components = {Select, Form};
export default {
basic: {
components,
jsx:
`<div className="shine-select-helper">
<Form>
<Form.Item label="基础选择框" isInline>
<Select
... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/TextArea/index.js | src/components/TextArea/index.js | /**
* @Component TextArea
* @Type 文本域组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-05-02 21:55
*/
import _ from 'lodash';
import React, {PureComponent} from 'react';
import classNames from 'classnames';
import * as PropTypes from 'prop-types';
import {classPrefix} from 'variables';
class TextArea extends... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/TextArea/demo/index.js | src/components/TextArea/demo/index.js | /**
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-05-02 22:08
*/
import {TextArea} from "shineDev";
const components = {TextArea};
export default {
basic: {
components,
jsx:
`<div className="shine-input-helper">
<TextArea placeholder="请输入多行文本" />
</div>`,
},
state: {
components,
... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Grid/index.js | src/components/Grid/index.js | /**
* @Component Row / Col
* @Type 布局组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-24 16:26
*/
/** 布局行组件 */
export {default as Row} from './Row';
/** 布局列组件 */
export {default as Col} from './Col'
| javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Grid/__test__/index.test.js | src/components/Grid/__test__/index.test.js | import React from 'react';
import {mount} from 'enzyme';
import _ from 'lodash';
import Mock from 'mockjs';
import {classPrefix} from 'variables';
import {Col, Row} from 'shineDev';
describe('Progress', () => {
it('快照测试', () => {
const wrapper = mount(<Row><Col /></Row>);
expect(wrapper).toMatchSnapshot();
... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Grid/Row/index.js | src/components/Grid/Row/index.js | /**
* @Component Row
* @Type 布局组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-16 02:02
*/
import React, {PureComponent} from 'react';
import _ from 'lodash';
import classNames from 'classnames';
import * as PropTypes from 'prop-types';
import {classPrefix} from 'variables';
/** 支持布局类型 */
const TYPES = ... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Grid/Col/index.js | src/components/Grid/Col/index.js | /**
* @Component Col
* @Type 布局组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-24 12:43
*/
import React, {PureComponent} from 'react';
import _ from 'lodash';
import classNames from 'classnames';
import * as PropTypes from 'prop-types';
import {classPrefix} from 'variables';
class Col extends PureCompon... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Grid/demo/index.js | src/components/Grid/demo/index.js | /**
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-24 12:28
*/
import {Col, Row} from 'shineDev';
const components = {Row, Col};
export default {
basic: {
components,
jsx: `
<Row className="shine-grid-helper">
<Col col={24}>col-24</Col>
</Row>
<Row className="shine-g... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Form/index.js | src/components/Form/index.js | /**
* @Component Form
* @Type 表单项组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-05-03 18:00
*/
import _ from 'lodash';
import React, {PureComponent} from 'react';
import classNames from 'classnames';
import * as PropTypes from 'prop-types';
import {classPrefix} from 'variables';
import Item from './Item';
... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Form/Verifier/index.js | src/components/Form/Verifier/index.js | /**
* @Component Form.Verifier
* @Type 表单项组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-05-04 18:03
*/
import _ from 'lodash';
import React, {PureComponent} from 'react';
import classNames from 'classnames';
import * as PropTypes from 'prop-types';
import {classPrefix} from 'variables';
const REFS = [];
... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Form/Verifier/__test__/index.test.js | src/components/Form/Verifier/__test__/index.test.js | import React from 'react';
import {mount} from 'enzyme';
import {classPrefix} from 'variables';
import {Form} from 'shineDev';
const {Verifier} = Form;
describe('Verifier', () => {
it('快照测试', () => {
const wrapper = mount(<Verifier />);
expect(wrapper).toMatchSnapshot();
});
it('渲染组件', () => {
con... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Form/Verifier/demo/index.js | src/components/Form/Verifier/demo/index.js | /**
* 示例文档 - 表单校验
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2020-03-21 22:21
*/
import {CheckboxGroup, Form, Input, Select} from 'shineDev';
const components = {Form, Input, CheckboxGroup, Select};
export default {
custom: {
components,
jsx: `
<Form>
<Form.Verifier isHighlight >
<For... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Form/Item/index.js | src/components/Form/Item/index.js | /**
* @Component Form.Item
* @Type 表单项组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-05-03 17:12
*/
import _ from 'lodash';
import React, {Fragment, PureComponent} from 'react';
import classNames from 'classnames';
import * as PropTypes from 'prop-types';
import {classPrefix} from 'variables';
import uuid ... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Form/Item/demo/index.js | src/components/Form/Item/demo/index.js | /**
* 示例文档 - 表单项
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2020-03-21 22:21
*/
import {Form, Input, CheckboxGroup, Select} from "shineDev";
const components = {Form, Input, CheckboxGroup, Select};
export default {
label: {
components,
jsx: `
<div className="shine-form-helper">
<Form>
... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Form/demo/CustomVerifier.js | src/components/Form/demo/CustomVerifier.js | /**
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-05-09 13:28
*/
import React, {Component} from 'react';
import {Form, Input} from "shineDev";
class CustomVerifierDemo extends Component {
render() {
return (
<Form>
<Form.Verifier isHighlight={true}>
<Form.Item label="普通文本">
... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Form/demo/index.js | src/components/Form/demo/index.js | /**
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-04-29 09:28
*/
import {Form, Input} from "shineDev";
const {Item} = Form;
const components = {Form, Item, Input};
export default {
form: {
components,
jsx: `
<div className="shine-form-helper">
<Form>
<Form.Item label="普通文本" helper="W... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Form/demo/Verifier.js | src/components/Form/demo/Verifier.js | /**
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-05-09 13:28
*/
import React, {Component} from 'react';
import {Form, Input} from "shineDev";
class VerifierDemo extends Component {
render() {
return (
<Form>
<Form.Verifier isHighlight={true}>
<Form.Item label="普通文本">
... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Collapse/index.js | src/components/Collapse/index.js | /**
* @Component Collapse
* @Type 折叠面板
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2020-04-05 17:18
*/
import _ from 'lodash';
import React, {PureComponent} from 'react';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import Panel from './Item';
class Collapse extends PureCompone... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Collapse/Item.js | src/components/Collapse/Item.js | /**
* @Component Panel
* @Type 面板容器
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2020-04-05 17:18
*/
import _ from 'lodash';
import React, {PureComponent} from 'react';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from '../Icon';
class Panel extends PureComponent {
... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Collapse/demo/index.js | src/components/Collapse/demo/index.js | /**
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-04-05 12:28
*/
import {Collapse} from 'shineDev';
const components = {Collapse};
export default {
basic: {
components,
jsx:
`
<Collapse>
<Collapse.Panel title="第一个折叠面板">
孤独这两个字拆开来看,有孩童,有瓜果,有小犬,有蝴蝶,
足以撑起一个盛夏傍晚间的巷... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Icon/index.js | src/components/Icon/index.js | /**
* @Component Icon
* @Type 图标组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-08-19 17:42
*/
import _ from 'lodash';
import React, {PureComponent} from 'react';
import classNames from 'classnames';
import {classPrefix} from 'variables';
import * as PropTypes from "prop-types";
class Icon extends PureComp... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Icon/demo/index.js | src/components/Icon/demo/index.js | /**
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-04-29 09:28
*/
import {Icon} from "shineDev";
const components = {Icon};
export default {
basic: {
components,
jsx: `<div className="shine-icon-helper">
<Icon iconName="automobile" />
<Icon iconName="balance-scale" />
<Icon iconName="batter... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Icon/demo/List/index.js | src/components/Icon/demo/List/index.js | /**
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-08-19 19:35
*/
import _ from 'lodash';
import React, {Component} from 'react';
import {Icon} from 'shineDev';
import dictionary from '!!raw-loader!../../../../styles/theme/icon/dictionary.scss';
import './style.scss';
// 图标字典
const DICTIONARY_LIST = _.map(d... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Alert/index.js | src/components/Alert/index.js | /**
* @Component Alert
* @Type 警告提示
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-26 22:11
*/
import _ from 'lodash';
import React, {Fragment, PureComponent} from 'react';
import classNames from 'classnames';
import * as PropTypes from 'prop-types';
import {classPrefix} from 'variables';
import Icon from ... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Alert/demo/index.js | src/components/Alert/demo/index.js | /**
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-24 12:28
*/
import {Alert,Divider} from 'shineDev';
const components = {Alert,Divider};
export default {
basic: {
components,
jsx:
`<Divider message="基础类型" /><br />
<div className="shine-alert-helper">
<Alert bgColor="success" isOpen... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Pagination/index.js | src/components/Pagination/index.js | /**
* Pagination
* 分页
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2020-03-31 11:48
*/
import _ from 'lodash';
import React, {Component} from 'react';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import {classPrefix} from 'variables';
import Icon from '../Icon';
class Pagination... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Pagination/demo/index.js | src/components/Pagination/demo/index.js | /**
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-24 12:28
*/
import {Divider, Pagination} from 'shineDev';
const components = {Pagination, Divider};
export default {
basic: {
components,
jsx:
`<div className="shine-pagination-helper">
<Divider message="基础页码" />
<Pagination total... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Portlet/index.js | src/components/Portlet/index.js | /**
* @Component Portlet
* @Type 容器
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2020-04-07 13:46
*/
import _ from 'lodash';
import React, {PureComponent} from 'react';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import {classPrefix} from 'variables';
import Header from './Heade... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Portlet/Footer.js | src/components/Portlet/Footer.js | /**
* @Component Portlet.Footer
* @Type 容器
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2020-04-07 13:46
*/
import _ from 'lodash';
import React, {PureComponent} from 'react';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import {classPrefix} from 'variables';
import Button from '... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Portlet/Header.js | src/components/Portlet/Header.js | /**
* @Component Portlet.Header
* @Type 容器
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2020-04-07 13:46
*/
import _ from 'lodash';
import React, {Fragment, PureComponent} from 'react';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import {classPrefix} from 'variables';
import Ico... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Portlet/demo/index.js | src/components/Portlet/demo/index.js | /**
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-24 12:28
*/
import {Divider, Icon, Portlet, Tabs} from 'shineDev';
const components = {Portlet, Icon, Divider, Tabs};
export default {
basic: {
components,
jsx:
`<div className="shine-portlet-helper">
<Portlet>
孤独这两个字拆开来看,有孩童,... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Option/OptionsGroup.js | src/components/Option/OptionsGroup.js | /**
* OptionsGroup
* 选项组
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2020-03-29 20:33
*/
import _ from 'lodash';
import React, {PureComponent} from 'react';
import classNames from 'classnames';
import * as PropTypes from 'prop-types';
import {classPrefix} from 'variables';
import {buildDefaultRules, runRegExp,... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Option/Options.js | src/components/Option/Options.js | /**
* @Component Options
* @Type 选框组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2020-03-22 11:47
*/
import _ from 'lodash';
import React, {PureComponent} from 'react';
import classNames from 'classnames';
import * as PropTypes from 'prop-types';
import {classPrefix} from 'variables';
class Options extends Pu... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Radio/index.js | src/components/Radio/index.js | /**
* @Component Radio
* @Type 单选框组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2020-03-22 11:47
*/
import React, {PureComponent} from 'react';
import Options from "../Option/Options";
class Radio extends PureComponent {
render() {
return <Options {...this.props} type="radio" />
}
}
export default R... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Radio/Group/index.js | src/components/Radio/Group/index.js | /**
* @Component Radio.Group
* @Type 单选组组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2020-03-29 15:33
*/
import React, {PureComponent} from 'react';
import * as PropTypes from 'prop-types';
import OptionsGroup from '../../Option/OptionsGroup';
class RadioGroup extends PureComponent {
render() {
return... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Radio/demo/index.js | src/components/Radio/demo/index.js | /**
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-04-29 09:28
*/
import {Radio, Divider, RadioGroup} from "shineDev";
const components = {Radio, Divider, RadioGroup};
export default {
basic: {
components,
jsx: `
<div className="shine-checkbox-helper">
<Radio label="默认状态" />
<Radio label="禁用状态" ... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Dropdown/index.js | src/components/Dropdown/index.js | /**
* Dropdown
* 下拉菜单
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2020-03-30 11:58
*/
import _ from 'lodash';
import React, {PureComponent, Fragment} from 'react';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import uuid from 'uuid/v1';
import {classPrefix} from 'variables';
imp... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Dropdown/Options.js | src/components/Dropdown/Options.js | /**
* Dropdown.Options
* 下拉菜单 - 选项
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2020-03-30 16:59
*/
import React, {PureComponent} from 'react';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from '../Icon';
class Options extends PureComponent {
render() {
const ... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Dropdown/demo/index.js | src/components/Dropdown/demo/index.js | /**
*
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-24 12:28
*/
import {Col, Dropdown, Row} from 'shineDev';
const components = {Dropdown, Row, Col};
export default {
basic: {
components,
jsx:
`<div className="shine-dropdown-helper">
<Dropdown
title="下拉菜单"
options={[
... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Input/index.js | src/components/Input/index.js | /**
* @Component Input
* @Type 输入框组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-04-27 13:25
*/
import _ from 'lodash';
import React, {PureComponent} from 'react';
import classNames from 'classnames';
import * as PropTypes from 'prop-types';
import reactComposition from 'react-composition';
import {classPr... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Input/__test__/index.test.js | src/components/Input/__test__/index.test.js | import _ from 'lodash';
import React from 'react';
import {mount} from 'enzyme';
import {classPrefix} from 'variables';
import {Input} from 'shineDev';
import Mock from 'mockjs';
const checkProps = (propName, enumList) => {
const propsValue = enumList || Mock.mock('@string("lower")');
const props = {[propName]: pr... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Input/demo/index.js | src/components/Input/demo/index.js | /**
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-04-29 09:28
*/
import {Input} from "shineDev";
const components = {Input};
export default {
basic: {
components,
jsx: `
<div className="shine-input-helper">
<Input placeholder="请输入文本" />
</div>
`,
},
size: {
components,
jsx: `
<div c... | javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
shine-design/shine-design | https://github.com/shine-design/shine-design/blob/143dcc08650d764f180f8f2e86662a37836c2d04/src/components/Typography/index.js | src/components/Typography/index.js | /**
* @Component Typography
* @Type 排版组件
* @Author 瞿龙俊 - qulongjun@shine.design
* @Date 2019-03-24 23:20
*/
| javascript | MIT | 143dcc08650d764f180f8f2e86662a37836c2d04 | 2026-01-05T03:42:19.517716Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.