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 |
|---|---|---|---|---|---|---|---|---|
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/seeds/TextArea/Icon.js | src/seeds/TextArea/Icon.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/2/7
*/
import React, {Component, cloneElement} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
export default class Icon extends Component {
static propTypes = {
/** Mode of icon.... | 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/Grid/index.js | src/seeds/Grid/index.js | import Grid from './Grid';
import Column from './Column';
import './grid.scss';
export {
Grid,
Column
};
| 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/Grid/Column.js | src/seeds/Grid/Column.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
class Column extends Component {
static propTypes = {
/**
* @en
* Setting layout take column's number
*
* @cn
* 删格所占列数
*/
col: PropTypes.oneOfType([
PropTypes.string.isRequired,
PropTypes.num... | 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/Grid/Grid.js | src/seeds/Grid/Grid.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
class Grid extends Component {
static propTypes = {
/**
* @en
* Custom component style
*
* @cn
* 自定义组件样式
*/
style: PropTypes.object,
/**
* @en
* Custom grid component children element
... | 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/Loading/index.js | src/seeds/Loading/index.js | import Loading from './Loading';
import './loading.scss';
export default Loading;
| 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/Loading/Loading.js | src/seeds/Loading/Loading.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import Icon from '../Icon';
import getRestProps from '../../utils/getRestProps';
export default class Loading extends Component {
static propTypes = {
/**
* @en
* the loading's 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/Icon/index.js | src/seeds/Icon/index.js | import Icon from './Icon';
export default Icon;
| 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/Icon/Icon.js | src/seeds/Icon/Icon.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import getRestProps from '../../utils/getRestProps';
export default class Icon extends Component {
static propTypes = {
/**
* @en
* the icon type
*
* @cn
* 图标的种类
*/
type: Pr... | 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/DatePicker/Select.js | src/seeds/DatePicker/Select.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/18
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import {CSSTransition} from 'react-transition-group';
import cx from 'classnames';
import {enterTime... | 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/DatePicker/YearMonth.js | src/seeds/DatePicker/YearMonth.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/15
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import {TransitionGroup, CSSTransition} from 'react-transition-group';
import {dateOrStringOrNull, enterT... | 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/DatePicker/index.js | src/seeds/DatePicker/index.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/15
*/
import './date-picker.scss';
export {default} from './DatePicker';
| 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/DatePicker/Display.js | src/seeds/DatePicker/Display.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/15
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import {TransitionGroup, CSSTransition} from 'react-transition-group';
import {arrayWith7Strings, arrayWi... | 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/DatePicker/Container.js | src/seeds/DatePicker/Container.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/18
*/
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/DatePicker/Day.js | src/seeds/DatePicker/Day.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/15
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import {TransitionGroup, CSSTransition} from 'react-transition-group';
import {arrayWith7Strings, dateOrS... | 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/DatePicker/DatePicker.js | src/seeds/DatePicker/DatePicker.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/15
*/
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/DatePicker/utils.js | src/seeds/DatePicker/utils.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/16
*/
export const containerWidth = 340;
export const containerHeight = 400;
export const enterTime = 500;
export const leaveTime = 300;
export {
arrayWith7Strings, arrayWith12Strings, dateOrStringOrNull
} 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/Text/Hint.js | src/seeds/Text/Hint.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 16/12/26
*/
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/Text/index.js | src/seeds/Text/index.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 16/12/26
*/
import './text.scss';
export {default} from './Text';
| 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/Text/Icon.js | src/seeds/Text/Icon.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 16/12/27
*/
import React, {Component, cloneElement} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
export default class Icon extends Component {
static propTypes = {
/** Mode of icon.... | 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/Text/Text.js | src/seeds/Text/Text.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 16/12/26
*/
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/Animation/index.js | src/seeds/Animation/index.js | import Animation from './Animation';
export default Animation;
| 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/Animation/Animation.js | src/seeds/Animation/Animation.js | import {Component} from 'react';
import PropTypes from 'prop-types';
import {interpolate} from 'd3-interpolate';
import * as ease from 'd3-ease';
import isEqual from 'lodash/isEqual';
const noop = () => {};
export default class Animation extends Component {
static propTypes = {
/**
* @en
* children
... | 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/Menu/index.js | src/seeds/Menu/index.js | import Menu from './Menu';
import SubMenu from './SubMenu';
import MenuItem from './MenuItem';
import './menu.scss';
export {
Menu,
SubMenu,
MenuItem
};
| 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/Menu/SubMenu.js | src/seeds/Menu/SubMenu.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import {TransitionGroup, CSSTransition} from 'react-transition-group';
import {Icon} from '../../index';
import {getRestProps, childrenToArray} from '../../utils';
const noop = () => {};
export default class SubM... | 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/Menu/MenuItem.js | src/seeds/Menu/MenuItem.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import {Icon} from '../../index';
import getRestProps from '../../utils/getRestProps';
export default class MenuItem extends Component {
static propTypes = {
/**
* @en
* whether it is active
*... | 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/Menu/Menu.js | src/seeds/Menu/Menu.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import {getRestProps, childrenToArray} from '../../utils';
const noop = () => {};
export default class Menu extends Component {
static propTypes = {
/**
* @en
* the current value of menu
*
... | 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/Pagination/index.js | src/seeds/Pagination/index.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/2/9
*/
import './pagination.scss';
export {default} from './Pagination';
| 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/Pagination/Pagination.js | src/seeds/Pagination/Pagination.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/2/9
*/
import React, {Component, cloneElement} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import Text from '../Text';
export default class Pagination extends Component {
static p... | 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/Slider/index.js | src/seeds/Slider/index.js | import Slider from './Slider';
import './slider.scss';
export default Slider;
| 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/Slider/Slider.js | src/seeds/Slider/Slider.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 Slider extends Component {
static propTypes = {
/**
* @en
* the defaul... | 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/Progress/index.js | src/seeds/Progress/index.js | import Progress from './Progress';
import './progress.scss';
export default Progress;
| 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/Progress/Progress.js | src/seeds/Progress/Progress.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
// import {Icon} from '../../index';
import getRestProps from '../../utils/getRestProps';
// TODO add a icon
export default class Progress extends Component {
static propTypes = {
/**
* @en
* the ... | 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/Radio/index.js | src/seeds/Radio/index.js | import Radio from './Radio';
import RadioGroup from './RadioGroup';
import './radio.scss';
export {
Radio,
RadioGroup
};
| 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/Radio/RadioGroup.js | src/seeds/Radio/RadioGroup.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {childrenToArray} from '../../utils';
export default class RadioGroup extends Component {
static propTypes = {
/**
* @en
* name
*
* @cn
* radio的name
*/
name: PropTypes.string,
/**
* @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/Radio/Radio.js | src/seeds/Radio/Radio.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 Radio extends Component {
static propTypes = {
/**
* @en
* the radio's name
*
* @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/Tooltip/Tooltip.js | src/seeds/Tooltip/Tooltip.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/4
*/
import React, {Component, cloneElement} from 'react';
import PropTypes from 'prop-types';
import {findDOMNode} from 'react-dom';
import {TransitionGroup, CSSTransition} from 'react-transition-group';
import cx fr... | 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/Tooltip/index.js | src/seeds/Tooltip/index.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/4
*/
import './tooltip.scss';
export {default} from './Tooltip';
| 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/Button/index.js | src/seeds/Button/index.js | import Button from './Button';
import ButtonGroup from './ButtonGroup';
export {
Button,
ButtonGroup
};
| 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/Button/Button.js | src/seeds/Button/Button.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import Icon from '../Icon';
import './button.scss';
class Button extends Component {
static propTypes = {
/**
* @en
* Custom component style
*
* @cn
* 自定义组件样式
*/
style: Prop... | 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/Button/ButtonGroup.js | src/seeds/Button/ButtonGroup.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
class ButtonGroup extends Component {
static propTypes = {
/**
* @en
* Custom component style
*
* @cn
* 自定义组件样式
*/
style: PropTypes.object,
/**
* @en
* Custom ... | 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/Checkbox/index.js | src/seeds/Checkbox/index.js | import Checkbox from './Checkbox';
import CheckboxGroup from './CheckboxGroup';
import './checkbox.scss';
export {
Checkbox,
CheckboxGroup
};
| 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/Checkbox/Checkbox.js | src/seeds/Checkbox/Checkbox.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 Checkbox extends Component {
static propTypes = {
/**
* @en
* checkbox's value
*
* @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/Checkbox/CheckboxGroup.js | src/seeds/Checkbox/CheckboxGroup.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import remove from 'lodash/remove';
import cx from 'classnames';
import {childrenToArray} from '../../utils';
export default class CheckboxGroup extends Component {
static propTypes = {
/**
* @en
* children
*
* @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/Postcard/Postcard.js | src/seeds/Postcard/Postcard.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import getRestProps from '../../utils/getRestProps';
export default class Postcard extends Component {
static propTypes = {
/**
* @en
* the postcard's style
*
* @cn
* 明信片的`style`
... | 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/Postcard/PostcardGroup.js | src/seeds/Postcard/PostcardGroup.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
// TODO mode --- random transform: rotate or clothesline type
export default class PostcardGroup extends Component {
static propTypes = {
/**
* @en
* children of the group
*
* @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/Postcard/index.js | src/seeds/Postcard/index.js | import Postcard from './Postcard';
import PostcardGroup from './PostcardGroup';
import './postcard.scss';
export {
Postcard,
PostcardGroup
};
| 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/Divider/index.js | src/seeds/Divider/index.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/3
*/
import './divider.scss';
export {default} from './Divider';
| 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/Divider/Divider.js | src/seeds/Divider/Divider.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/3
*/
import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import {getRestProps} from '../../utils';
const Divider = (props) => {
const {
className,
style
} = props;
... | 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/Image/Image.js | src/seeds/Image/Image.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import getRestProps from '../../utils/getRestProps';
export default class Image extends Component {
static propTypes = {
/**
* @en
* the image's src
*
* @cn
* 图片的`src`
*/
sr... | 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/Image/ImageGroup.js | src/seeds/Image/ImageGroup.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import {childrenToArray, getRestProps} from '../../utils';
export default class ImageGroup extends Component {
static propTypes = {
/**
* @en
* the ImageGroup's style
*
* @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/Image/index.js | src/seeds/Image/index.js | import Image from './Image';
import ImageGroup from './ImageGroup';
import './image.scss';
export {
Image,
ImageGroup
};
| 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/Sidebar/index.js | src/seeds/Sidebar/index.js | import Sidebar from './Sidebar';
import './sidebar.scss';
export default Sidebar;
| 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/Sidebar/Sidebar.js | src/seeds/Sidebar/Sidebar.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
// TODO:
// - outside click auto hide
class Sidebar 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/flowers/AudioPlayer/index.js | src/flowers/AudioPlayer/index.js | import './audio-player.scss';
export {default} from './AudioPlayer';
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/AudioPlayer/AudioPlayer.js | src/flowers/AudioPlayer/AudioPlayer.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {findDOMNode} from 'react-dom';
import cx from 'classnames';
import Progress from './Progress';
import {smartFormatTime} from '../../utils/timeFormat';
import {random} from '../../utils/random';
export default class AudioPlayer extends ... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/AudioPlayer/Progress.js | src/flowers/AudioPlayer/Progress.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {findDOMNode} from 'react-dom';
import cx from 'classnames';
export default class Progress extends Component {
static propTypes = {
min: PropTypes.number,
max: PropTypes.number,
value: PropTypes.number,
vertical: PropT... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/VideoPlayer/index.js | src/flowers/VideoPlayer/index.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/6/1
*/
import './video-player.scss';
export {default} from './VideoPlayer';
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/VideoPlayer/VideoPlayer.js | src/flowers/VideoPlayer/VideoPlayer.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/6/1
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {findDOMNode} from 'react-dom';
import cx from 'classnames';
import {getKeyFromCode} from '../../utils';
import Progress 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/flowers/VideoPlayer/Progress.js | src/flowers/VideoPlayer/Progress.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/6/3
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {findDOMNode} from 'react-dom';
import cx from 'classnames';
export default class Progress extends Component {
static propTy... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/ADVEngine.js | src/flowers/ADVEngine/ADVEngine.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/4
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {findDOMNode} from 'react-dom';
import {init} from './game';
// for test
import systemVariables from './systemVariables';
ex... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/index.js | src/flowers/ADVEngine/index.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/4
*/
export {default} from './ADVEngine';
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/astExample.js | src/flowers/ADVEngine/astExample.js | [
// normal ast
{
key: 'say',
props: {who: 'dty', what: 'wtf'}
},
{
key: 'scene',
props: {image: 'bgxxxx', transition: 'linear'}
},
{
key: 'show',
props: {image: 'chyyyy', transition: 'linear', transform: ''}
},
{
key: 'play',
props: {type: 'music', transition: 'fadein', ... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/config.js | src/flowers/ADVEngine/config.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/5
*/
export const defaultSysVars = {
debug: true,
screenWidth: 1920,
screenHeight: 1080,
aspect: 16 / 9,
title: 'hana',
hasSound: true,
hasMusic: true,
hasVoice: false,
textCps: 25,
fullScreen: 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/flowers/ADVEngine/exceptions.js | src/flowers/ADVEngine/exceptions.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/16
*/
/**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 17/1/16
*/
class BaseError extends Error {
constructor(name = 'BaseError', message) {
super();
this.n... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/dslExample.js | src/flowers/ADVEngine/dslExample.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/9
*/
show.image('dty').child('smile').at('center').with('linear').as('dty1');
show.text('蛤蛤').cps(20).size(16).color('#ffffff').at('center').with('linear');
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/systemVariables.js | src/flowers/ADVEngine/systemVariables.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/5
*/
import {defaultSysVars} from './config';
class SystemVariables {
_variables = {};
constructor(defaultVars) {
this.setVars(defaultVars);
}
getVar = name =>
this._variables[name];
setVar = (... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/utils.js | src/flowers/ADVEngine/utils.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/4
*/
import systemVariables from './systemVariables';
import {MissingKeyError} from './exceptions';
import {store} from './definitions';
export const checkAllNotUndefined = (reqProps, props) => {
reqProps.forEach... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/game.js | src/flowers/ADVEngine/game.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/5
*/
import ast from './ast';
import display from './display';
/* eslint-disable */
const defineAst = [
['define', {name: 'transform', type: 'add', props: {name: 't1', props: {type: 'normal', left: 0.4, right: ... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/definitions/index.js | src/flowers/ADVEngine/definitions/index.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/4
*/
import * as defClasses from './definitions';
const definitions = {};
Object.keys(defClasses).forEach(key => {
const obj = new defClasses[key]();
definitions[obj.key] = obj;
});
export default definitions... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/definitions/definitions.js | src/flowers/ADVEngine/definitions/definitions.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/4
*/
import _ from 'lodash';
import {NoKeyError, MissingKeyError, SourceLoadError} from '../exceptions';
import {
HImage, HAudio, HAnimation, HVideo, createHTransition, HShape, HText, HScreen
} from '../elements';... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/definitions/store.js | src/flowers/ADVEngine/definitions/store.js | /**
* Copyright(c) dtysky<dtysky@outlook.com>
* Created: 2017/3/28
* Description:
*/
import _ from 'lodash';
import {NoKeyError} from '../exceptions';
class Store {
_store = {};
_vars = {};
_keysNeedDeepClone = ['transform'];
has = (name, child) => {
if (!this._store[name]) {
return false;
}
... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/display/core.js | src/flowers/ADVEngine/display/core.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/16
*/ | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/display/index.js | src/flowers/ADVEngine/display/index.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/5
*/
import _ from 'lodash';
import definitions from '../definitions';
import {HScene, HVoid} from '../elements';
import Renderer from './renderer';
import Layers from './layers';
class Display {
constructor() {
... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/display/renderer.js | src/flowers/ADVEngine/display/renderer.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/16
*/
import systemVariables from '../systemVariables';
export default class Renderer {
constructor(canvas) {
this._canvas = canvas;
this._ctx = canvas.getContext('2d');
this.reset();
}
reset = (... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/display/layers.js | src/flowers/ADVEngine/display/layers.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/16
*/
import {NoKeyError} from '../exceptions';
import _ from 'lodash';
export default class Layers {
_layerNames = [];
_layers = {};
clear = () => {
this._layerNames = [];
this._layers = {};
};
... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/elements/HText.js | src/flowers/ADVEngine/elements/HText.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/21
*/
import systemVariables from '../systemVariables';
import display from '../display';
const localCtx = document.createElement('canvas').getContext('2d');
export default class HText {
constructor(text, attrs) ... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/elements/HScene.js | src/flowers/ADVEngine/elements/HScene.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/23
*/
import systemVariables from '../systemVariables';
export default class HScene {
constructor(canvas) {
this._canvas = document.createElement('canvas');
this._canvas.width = systemVariables.getVar('sc... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/elements/HTransitions.js | src/flowers/ADVEngine/elements/HTransitions.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/19
*/
import _ from 'lodash';
import * as d3Interpolate from 'd3-interpolate';
import * as d3Ease from 'd3-ease';
import systemVariables from '../systemVariables';
import {MissingKeyError, NoKeyError} from '../exce... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/elements/HVoid.js | src/flowers/ADVEngine/elements/HVoid.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/24
*/
export default class HVoid {
width = () => 0;
height = () => 0;
hide = () => {};
draw = () => {};
}
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/elements/index.js | src/flowers/ADVEngine/elements/index.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/16
*/
import {NoKeyError} from '../exceptions';
export {default as HVoid} from './HVoid';
export {default as HImage} from './HImage';
export {default as HAudio} from './HAudio';
export {default as HAnimation} 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/flowers/ADVEngine/elements/HScreen.js | src/flowers/ADVEngine/elements/HScreen.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/26
*/
import _ from 'lodash';
import definitions, {store} from '../definitions';
import {MissingKeyError, NoKeyError} from '../exceptions'
import {HShape, HText} from '../elements';
import systemVariables from '../s... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/elements/HSlider.js | src/flowers/ADVEngine/elements/HSlider.js | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false | |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/elements/HAnimation.js | src/flowers/ADVEngine/elements/HAnimation.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/19
*/
import _ from 'lodash';
import * as d3Interpolate from 'd3-interpolate';
import * as d3Ease from 'd3-ease';
export default class HAnimation {
_startTime = 0;
_duration = 0;
_attrs = {};
_currentTransf... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/elements/HVideo.js | src/flowers/ADVEngine/elements/HVideo.js | import systemVariables from '../systemVariables';
import {getVolumes} from '../media/utils';
import display from '../display';
// TODO volume control / volume
export default class HVideo {
constructor(videoElement) {
this._element = videoElement;
this._context = null;
}
get drawable() {
return true... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/elements/HAudio.js | src/flowers/ADVEngine/elements/HAudio.js | import {getVolumes} from '../media/utils';
export default class HAudio {
constructor(buffer, context) {
this._buffer = buffer;
this._context = context;
this._isPlay = false;
}
get playable() {
return true;
}
get buffer() {
return this._buffer;
}
get source() {
return this._sour... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/elements/HImage.js | src/flowers/ADVEngine/elements/HImage.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/16
*/
import systemVariables from '../systemVariables';
export default class HImage {
constructor(image) {
this._image = image;
}
get drawable() {
return true;
}
width = () => (
this._image.... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/elements/HShape.js | src/flowers/ADVEngine/elements/HShape.js | import {upperFirst} from 'lodash';
import definitions, {store} from '../definitions';
import systemVariables from '../systemVariables';
// TODO
// merge draw funcs
export default class HShape {
constructor(params) {
this._params = Object.assign({
fontSize: 40,
color: '#000',
fontFamily: 'Micr... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/event/KeyEvent.js | src/flowers/ADVEngine/event/KeyEvent.js | import {remove} from 'lodash';
export const keyCode = {
32: 'SPACE',
13: 'ENTER',
9: 'TAB',
8: 'BACKSPACE',
16: 'SHIFT',
17: 'CTRL',
18: 'ALT',
20: 'CAPS_LOCK',
144: 'NUM_LOCK',
145: 'SCROLL_LOCK',
37: 'LEFT',
38: 'UP',
39: 'RIGHT',
40: 'DOWN',
33: 'PAGE_UP',
34: 'PAGE_DOWN',
36: 'HOM... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/event/ClickEvent.js | src/flowers/ADVEngine/event/ClickEvent.js | import {remove} from 'lodash';
import display from '../display';
import systemVariables from '../systemVariables';
export default class ClickEvent {
constructor({
trigger
}) {
this._eventList = [];
this._trigger = trigger;
document.addEventListener('click', this._handle);
}
getScreenInfo = nam... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/event/index.js | src/flowers/ADVEngine/event/index.js | import ast from '../ast';
import display from '../display';
import KeyEvent from './KeyEvent';
import ClickEvent from './ClickEvent';
class HEvent {
constructor() {
// this._emitter = mitt();
this._canvas = display.canvas;
this._keyEvent = new KeyEvent({
trigger: this.trigger
});
this._clic... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/media/soundTrack.js | src/flowers/ADVEngine/media/soundTrack.js | class SoundTrack {
_track = {
music: null
// sound: null,
// voice: null
};
play = (audio, trackName, params = {}) => {
this.clear(trackName, params);
this._track[trackName] = audio;
audio.start(params);
}
stop = (trackName, params = {}) => {
const audio = this._track[trackName];... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/media/index.js | src/flowers/ADVEngine/media/index.js | export {default as audioIncubator} from './audioIncubator';
export {default as soundTrack} from './soundTrack';
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/media/audioIncubator.js | src/flowers/ADVEngine/media/audioIncubator.js | class AudioIncubator {
constructor() {
if (this.checkSupport()) {
this._context = new (window.AudioContext || window.webkitAudioContext)();
}
}
get context() {
return this._context;
}
checkSupport = () => {
if (window.AudioContext || window.webkitAudioContext) {
return true;
... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/media/utils.js | src/flowers/ADVEngine/media/utils.js | import systemVariables from '../systemVariables';
import {upperFirst} from 'lodash';
export function getVolumes(type) {
const has = systemVariables.getVar(`has${upperFirst(type)}`);
const volume = systemVariables.getVar(`${type}Volumes`);
return Boolean(has) * volume;
}
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/ast/index.js | src/flowers/ADVEngine/ast/index.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/4
*/
import * as astClasses from './ast';
const ast = {};
Object.keys(astClasses).forEach(key => {
const obj = new astClasses[key]();
ast[obj.key] = obj;
});
export default ast;
| javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/ast/ast.js | src/flowers/ADVEngine/ast/ast.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/4
*/
import {MissingKeyError, NoKeyError} from '../exceptions';
import definitions, {resourceLoader, store} from '../definitions';
import {HText, createHTransition} from '../elements';
import display from '../displa... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/parsers/index.js | src/flowers/ADVEngine/parsers/index.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/5
*/ | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/flowers/ADVEngine/parsers/parsers.js | src/flowers/ADVEngine/parsers/parsers.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/3/4
*/ | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/sprites/RenderToNode.js | src/sprites/RenderToNode.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/2/4
*/
import {Component} from 'react';
import PropTypes from 'prop-types';
import {createPortal} from 'react-dom';
export default class RenderToNode extends Component {
static propTypes = {
// show: PropTypes.... | javascript | MIT | 0cd7f345ff43074fd674291b2a65d12ccddd163f | 2026-01-05T03:41:19.084369Z | false |
hana-group/hana-ui | https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/utils/types.js | src/utils/types.js | /**
* Author: ひまわり(dtysky<dtysky@outlook.com>)
* Github: https://github.com/dtysky
* Created: 2017/2/27
*/
import {PropertyTypeError} from './exceptions';
export const arrayWithNStrings = (n, props, propName, componentName) => (
props[propName] === undefined
|| (
props[propName] instanceof Array
&& pro... | 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.