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
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/components/FooterToolbar/index.js
client/src/components/FooterToolbar/index.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './index.less'; export default class FooterToolbar extends Component { static contextTypes = { isMobile: PropTypes.bool, }; state = { width: undefined, }; componentD...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/models/user.js
client/src/models/user.js
import { query as queryUsers, queryCurrent } from '@/services/user'; export default { namespace: 'user', state: { list: [], currentUser: {}, }, effects: { *fetch(_, { call, put }) { const response = yield call(queryUsers); yield put({ type: 'save', payload: response, ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/models/global.js
client/src/models/global.js
import { queryNotices } from '@/services/api'; export default { namespace: 'global', state: { collapsed: false, notices: [], loadedAllNotices: false, }, effects: { *fetchNotices(_, { call, put, select }) { const data = yield call(queryNotices); const loadedAllNotices = data && dat...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/models/menu.js
client/src/models/menu.js
import memoizeOne from 'memoize-one'; import isEqual from 'lodash/isEqual'; import { formatMessage } from 'umi/locale'; import Authorized from '@/utils/Authorized'; import { menu } from '../defaultSettings'; const { check } = Authorized; // Conversion router to menu. function formatter(data, parentAuthority, parentNa...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/models/setting.js
client/src/models/setting.js
import { message } from 'antd'; import defaultSettings from '../defaultSettings'; let lessNodesAppended; const updateTheme = primaryColor => { // Don't compile less in production! if (APP_TYPE !== 'site') { return; } // Determine if the component is remounted if (!primaryColor) { return; } const ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/models/query.js
client/src/models/query.js
import { runDatasetQuery } from '@/services/dataset'; import convertDataset from '@/utils/dataset'; export default { namespace: 'query', state: { savedQuery: {}, currentQuery: {}, currentQueryResult: { dataSource: null, columns: null }, canSave: false, }, effects: { *fetchQuery({ payload ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/models/dataset.js
client/src/models/dataset.js
import { queryDatasets, queryDataset, deleteDataset } from '@/services/dataset'; import convertDataset from '@/utils/dataset'; export default { namespace: 'dataset', state: { list: [], // list of datasets id currentDataset: {}, // current selected dataset }, effects: { *fetch(_, { call, put }) { ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/models/login.js
client/src/models/login.js
import { routerRedux } from 'dva/router'; import { stringify } from 'qs'; import { fakeAccountLogin, getFakeCaptcha } from '@/services/api'; import { setAuthority } from '@/utils/authority'; import { getPageQuery } from '@/utils/utils'; import { reloadAuthorized } from '@/utils/Authorized'; export default { namespac...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/models/project.js
client/src/models/project.js
import { queryProjectNotice } from '@/services/api'; export default { namespace: 'project', state: { notice: [], }, effects: { *fetchNotice(_, { call, put }) { const response = yield call(queryProjectNotice); yield put({ type: 'saveNotice', payload: Array.isArray(response)...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/utils/authority.test.js
client/src/utils/authority.test.js
import { getAuthority } from './authority'; describe('getAuthority should be strong', () => { it('empty', () => { expect(getAuthority(null)).toEqual(['admin']); // default value }); it('string', () => { expect(getAuthority('admin')).toEqual(['admin']); }); it('array with double quotes', () => { e...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/utils/utils.test.js
client/src/utils/utils.test.js
import { fixedZero, isUrl } from './utils'; describe('fixedZero tests', () => { it('should not pad large numbers', () => { expect(fixedZero(10)).toEqual(10); expect(fixedZero(11)).toEqual(11); expect(fixedZero(15)).toEqual(15); expect(fixedZero(20)).toEqual(20); expect(fixedZero(100)).toEqual(100...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/utils/Authorized.js
client/src/utils/Authorized.js
import RenderAuthorized from '@/components/Authorized'; import { getAuthority } from './authority'; let Authorized = RenderAuthorized(getAuthority()); // eslint-disable-line // Reload the rights component const reloadAuthorized = () => { Authorized = RenderAuthorized(getAuthority()); }; export { reloadAuthorized }...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/utils/Yuan.js
client/src/utils/Yuan.js
import React from 'react'; import { yuan } from '@/components/Charts'; /** * 减少使用 dangerouslySetInnerHTML */ export default class Yuan extends React.PureComponent { componentDidMount() { this.rendertoHtml(); } componentDidUpdate() { this.rendertoHtml(); } rendertoHtml = () => { const { childre...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/utils/dataset.js
client/src/utils/dataset.js
export default function convertDataset(payload) { // eslint-disable-line import/prefer-default-export const convertedDataset = {}; if (payload) { let dataSource = []; let columns = []; // update source and columns based on dataset model if (payload.rows) { const { cols, rows } = payload; ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/utils/request.js
client/src/utils/request.js
import fetch from 'dva/fetch'; import { notification } from 'antd'; import router from 'umi/router'; import hash from 'hash.js'; import { isAntdPro } from './utils'; const codeMessage = { 200: '服务器成功返回请求的数据。', 201: '新建或修改数据成功。', 202: '一个请求已经进入后台排队(异步任务)。', 204: '删除数据成功。', 400: '发出的请求有错误,服务器没有进行新建或修改数据的操作。', ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/utils/authority.js
client/src/utils/authority.js
// use localStorage to store the authority info, which might be sent from server in actual project. export function getAuthority(str) { // return localStorage.getItem('antd-pro-authority') || ['admin', 'user']; const authorityString = typeof str === 'undefined' ? localStorage.getItem('antd-pro-authority') : str...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/utils/utils.js
client/src/utils/utils.js
import moment from 'moment'; import React from 'react'; import nzh from 'nzh/cn'; import { parse, stringify } from 'qs'; export function fixedZero(val) { return val * 1 < 10 ? `0${val}` : val; } export function getTimeDistance(type) { const now = new Date(); const oneDay = 1000 * 60 * 60 * 24; if (type === '...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/e2e/home.e2e.js
client/src/e2e/home.e2e.js
const BASE_URL = `http://localhost:${process.env.PORT || 8000}`; describe('Homepage', () => { beforeAll(async () => { jest.setTimeout(1000000); }); it('it should have logo text', async () => { await page.goto(BASE_URL); await page.waitForSelector('h1', { timeout: 5000, }); const text = ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/e2e/userLayout.e2e.js
client/src/e2e/userLayout.e2e.js
import RouterConfig from '../../config/router.config'; const BASE_URL = `http://localhost:${process.env.PORT || 8000}`; function formatter(data) { return data .reduce((pre, item) => { pre.push(item.path); return pre; }, []) .filter(item => item); } describe('Homepage', () => { const testP...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/e2e/login.e2e.js
client/src/e2e/login.e2e.js
const BASE_URL = `http://localhost:${process.env.PORT || 8000}`; describe('Login', () => { beforeAll(async () => { jest.setTimeout(1000000); }); beforeEach(async () => { await page.goto(`${BASE_URL}/user/login`, { waitUntil: 'networkidle2' }); await page.evaluate(() => window.localStorage.setItem('a...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/e2e/baseLayout.e2e.js
client/src/e2e/baseLayout.e2e.js
import RouterConfig from '../../config/router.config'; const BASE_URL = `http://localhost:${process.env.PORT || 8000}`; function formatter(data) { return data .reduce((pre, item) => { pre.push(item.path); return pre; }, []) .filter(item => item); } describe('Homepage', async () => { const...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/e2e/topMenu.e2e.js
client/src/e2e/topMenu.e2e.js
const BASE_URL = `http://localhost:${process.env.PORT || 8000}`; describe('Homepage', () => { beforeAll(async () => { jest.setTimeout(1000000); }); it('topmenu should have footer', async () => { const params = '/form/basic-form?navTheme=light&layout=topmenu'; await page.goto(`${BASE_URL}${params}`); ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/layouts/BasicLayout.js
client/src/layouts/BasicLayout.js
import React, { Suspense } from 'react'; import { Layout } from 'antd'; import DocumentTitle from 'react-document-title'; import isEqual from 'lodash/isEqual'; import memoizeOne from 'memoize-one'; import { connect } from 'dva'; import { ContainerQuery } from 'react-container-query'; import classNames from 'classnames'...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/layouts/UserLayout.js
client/src/layouts/UserLayout.js
import React, { Fragment } from 'react'; import { formatMessage } from 'umi/locale'; import Link from 'umi/link'; import { Icon } from 'antd'; import GlobalFooter from '@/components/GlobalFooter'; import SelectLang from '@/components/SelectLang'; import styles from './UserLayout.less'; import logo from '../assets/logo....
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/layouts/Footer.js
client/src/layouts/Footer.js
import React, { Fragment } from 'react'; import { Layout, Icon } from 'antd'; import GlobalFooter from '@/components/GlobalFooter'; const { Footer } = Layout; const FooterView = () => ( <Footer style={{ padding: 0 }}> <GlobalFooter links={[ { key: 'Dataplay3', title: 'Dataplay3'...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/layouts/Header.js
client/src/layouts/Header.js
import React, { Component } from 'react'; import { formatMessage } from 'umi/locale'; import { Layout, message } from 'antd'; import Animate from 'rc-animate'; import { connect } from 'dva'; import router from 'umi/router'; import GlobalHeader from '@/components/GlobalHeader'; import TopNavHeader from '@/components/Top...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/layouts/MenuContext.js
client/src/layouts/MenuContext.js
import { createContext } from 'react'; export default createContext();
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/layouts/BlankLayout.js
client/src/layouts/BlankLayout.js
import React from 'react'; export default props => <div {...props} />;
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/en-US.js
client/src/locales/en-US.js
import analysis from './en-US/analysis'; import exception from './en-US/exception'; import form from './en-US/form'; import globalHeader from './en-US/globalHeader'; import login from './en-US/login'; import menu from './en-US/menu'; import monitor from './en-US/monitor'; import result from './en-US/result'; import set...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/zh-CN.js
client/src/locales/zh-CN.js
import analysis from './zh-CN/analysis'; import exception from './zh-CN/exception'; import form from './zh-CN/form'; import globalHeader from './zh-CN/globalHeader'; import login from './zh-CN/login'; import menu from './zh-CN/menu'; import monitor from './zh-CN/monitor'; import result from './zh-CN/result'; import set...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/en-US/form.js
client/src/locales/en-US/form.js
export default { 'form.get-captcha': 'Get Captcha', 'form.captcha.second': 'sec', 'form.optional': ' (optional) ', 'form.submit': 'Submit', 'form.save': 'Save', 'form.email.placeholder': 'Email', 'form.password.placeholder': 'Password', 'form.confirm-password.placeholder': 'Confirm password', 'form.ph...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/en-US/result.js
client/src/locales/en-US/result.js
export default { 'app.result.error.title': 'Submission Failed', 'app.result.error.description': 'Please check and modify the following information before resubmitting.', 'app.result.error.hint-title': 'The content you submitted has the following error:', 'app.result.error.hint-text1': 'Your account has been...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/en-US/menu.js
client/src/locales/en-US/menu.js
export default { 'menu.home': 'Home', 'menu.dataset': 'Dataset', 'menu.dataset.viewDataset': 'View', 'menu.dataset.getDataIn': 'Import Data', 'menu.dataset.queryDataset': 'Query', 'menu.dataset.manageDataset': 'Manage', 'menu.visualization': 'Visualization', 'menu.visualization.gg': 'Grammar Driven', ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/en-US/component.js
client/src/locales/en-US/component.js
export default { 'component.tagSelect.expand': 'Expand', 'component.tagSelect.collapse': 'Collapse', 'component.tagSelect.all': 'All', };
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/en-US/analysis.js
client/src/locales/en-US/analysis.js
export default { 'app.analysis.test': 'Gongzhuan No.{no} shop', 'app.analysis.introduce': 'Introduce', 'app.analysis.total-sales': 'Total Sales', 'app.analysis.day-sales': 'Daily Sales', 'app.analysis.visits': 'Visits', 'app.analysis.visits-trend': 'Visits Trend', 'app.analysis.visits-ranking': 'Visits Ra...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/en-US/settingDrawer.js
client/src/locales/en-US/settingDrawer.js
export default { 'app.setting.pagestyle': 'Page style setting', 'app.setting.pagestyle.dark': 'Dark style', 'app.setting.pagestyle.light': 'Light style', 'app.setting.content-width': 'Content Width', 'app.setting.content-width.fixed': 'Fixed', 'app.setting.content-width.fluid': 'Fluid', 'app.setting.theme...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/en-US/login.js
client/src/locales/en-US/login.js
export default { 'app.login.userName': 'userName', 'app.login.password': 'password', 'app.login.message-invalid-credentials': 'Invalid username or password(admin/ant.design)', 'app.login.message-invalid-verification-code': 'Invalid verification code', 'app.login.tab-login-credentials': 'Credentials', 'app.l...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/en-US/settings.js
client/src/locales/en-US/settings.js
export default { 'app.settings.menuMap.basic': 'Basic Settings', 'app.settings.menuMap.security': 'Security Settings', 'app.settings.menuMap.binding': 'Account Binding', 'app.settings.menuMap.notification': 'New Message Notification', 'app.settings.basic.avatar': 'Avatar', 'app.settings.basic.change-avatar'...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/en-US/monitor.js
client/src/locales/en-US/monitor.js
export default { 'app.monitor.trading-activity': 'Real-Time Trading Activity', 'app.monitor.total-transactions': 'Total transactions today', 'app.monitor.sales-target': 'Sales target completion rate', 'app.monitor.remaining-time': 'Remaining time of activity', 'app.monitor.total-transactions-per-second': 'Tot...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/en-US/pwa.js
client/src/locales/en-US/pwa.js
export default { 'app.pwa.offline': 'You are offline now', 'app.pwa.serviceworker.updated': 'New content is available', 'app.pwa.serviceworker.updated.hint': 'Please press the "Refresh" button to reload current page', 'app.pwa.serviceworker.updated.ok': 'Refresh', };
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/en-US/globalHeader.js
client/src/locales/en-US/globalHeader.js
export default { 'component.globalHeader.search': 'Search', 'component.globalHeader.search.example1': 'Search example 1', 'component.globalHeader.search.example2': 'Search example 2', 'component.globalHeader.search.example3': 'Search example 3', 'component.globalHeader.help': 'Help', 'component.globalHeader...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/en-US/exception.js
client/src/locales/en-US/exception.js
export default { 'app.exception.back': 'Back to home', 'app.exception.description.403': "Sorry, you don't have access to this page", 'app.exception.description.404': 'Sorry, the page you visited does not exist', 'app.exception.description.500': 'Sorry, the server is reporting an error', };
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/zh-CN/form.js
client/src/locales/zh-CN/form.js
export default { 'form.get-captcha': '获取验证码', 'form.captcha.second': '秒', 'form.optional': '(选填)', 'form.submit': '提交', 'form.save': '保存', 'form.email.placeholder': '邮箱', 'form.password.placeholder': '至少6位密码,区分大小写', 'form.confirm-password.placeholder': '确认密码', 'form.phone-number.placeholder': '手机号', ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/zh-CN/result.js
client/src/locales/zh-CN/result.js
export default { 'app.result.error.title': '提交失败', 'app.result.error.description': '请核对并修改以下信息后,再重新提交。', 'app.result.error.hint-title': '您提交的内容有如下错误:', 'app.result.error.hint-text1': '您的账户已被冻结', 'app.result.error.hint-btn1': '立即解冻', 'app.result.error.hint-text2': '您的账户还不具备申请资格', 'app.result.error.hint-btn...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/zh-CN/menu.js
client/src/locales/zh-CN/menu.js
export default { 'menu.home': '首页', 'menu.dataset': '数据集', 'menu.dataset.viewDataset': '查看数据', 'menu.dataset.getDataIn': '导入数据', 'menu.dataset.queryDataset': '查询数据', 'menu.dataset.manageDataset': '管理数据', 'menu.visualization': '可视化分析', 'menu.visualization.gg': '语法驱动可视化', 'menu.visualization.typeDriven'...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/zh-CN/component.js
client/src/locales/zh-CN/component.js
export default { 'component.tagSelect.expand': '展开', 'component.tagSelect.collapse': '收起', 'component.tagSelect.all': '全部', };
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/zh-CN/analysis.js
client/src/locales/zh-CN/analysis.js
export default { 'app.analysis.test': '工专路 {no} 号店', 'app.analysis.introduce': '指标说明', 'app.analysis.total-sales': '总销售额', 'app.analysis.day-sales': '日销售额', 'app.analysis.visits': '访问量', 'app.analysis.visits-trend': '访问量趋势', 'app.analysis.visits-ranking': '门店访问量排名', 'app.analysis.day-visits': '日访问量', ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/zh-CN/settingDrawer.js
client/src/locales/zh-CN/settingDrawer.js
export default { 'app.setting.pagestyle': '整体风格设置', 'app.setting.pagestyle.dark': '暗色菜单风格', 'app.setting.pagestyle.light': '亮色菜单风格', 'app.setting.content-width': '内容区域宽度', 'app.setting.content-width.fixed': '定宽', 'app.setting.content-width.fluid': '流式', 'app.setting.themecolor': '主题色', 'app.setting.them...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/zh-CN/login.js
client/src/locales/zh-CN/login.js
export default { 'app.login.userName': '用户名', 'app.login.password': '密码', 'app.login.message-invalid-credentials': '账户或密码错误(admin/ant.design)', 'app.login.message-invalid-verification-code': '验证码错误', 'app.login.tab-login-credentials': '账户密码登录', 'app.login.tab-login-mobile': '手机号登录', 'app.login.remember-me...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/zh-CN/settings.js
client/src/locales/zh-CN/settings.js
export default { 'app.settings.menuMap.basic': '基本设置', 'app.settings.menuMap.security': '安全设置', 'app.settings.menuMap.binding': '账号绑定', 'app.settings.menuMap.notification': '新消息通知', 'app.settings.basic.avatar': '头像', 'app.settings.basic.change-avatar': '更换头像', 'app.settings.basic.email': '邮箱', 'app.sett...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/zh-CN/monitor.js
client/src/locales/zh-CN/monitor.js
export default { 'app.monitor.trading-activity': '活动实时交易情况', 'app.monitor.total-transactions': '今日交易总额', 'app.monitor.sales-target': '销售目标完成率', 'app.monitor.remaining-time': '活动剩余时间', 'app.monitor.total-transactions-per-second': '每秒交易总额', 'app.monitor.activity-forecast': '活动情况预测', 'app.monitor.efficiency'...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/zh-CN/pwa.js
client/src/locales/zh-CN/pwa.js
export default { 'app.pwa.offline': '当前处于离线状态', 'app.pwa.serviceworker.updated': '有新内容', 'app.pwa.serviceworker.updated.hint': '请点击“刷新”按钮或者手动刷新页面', 'app.pwa.serviceworker.updated.ok': '刷新', };
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/zh-CN/globalHeader.js
client/src/locales/zh-CN/globalHeader.js
export default { 'component.globalHeader.search': '站内搜索', 'component.globalHeader.search.example1': '搜索提示一', 'component.globalHeader.search.example2': '搜索提示二', 'component.globalHeader.search.example3': '搜索提示三', 'component.globalHeader.help': '使用文档', 'component.globalHeader.notification': '通知', 'component....
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/locales/zh-CN/exception.js
client/src/locales/zh-CN/exception.js
export default { 'app.exception.back': '返回首页', 'app.exception.description.403': '抱歉,你无权访问该页面', 'app.exception.description.404': '抱歉,你访问的页面不存在', 'app.exception.description.500': '抱歉,服务器出错了', };
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/tests/run-tests.js
client/tests/run-tests.js
/* eslint-disable no-console */ const { spawn } = require('child_process'); const { kill } = require('cross-port-killer'); const env = Object.create(process.env); env.BROWSER = 'none'; env.TEST = true; // flag to prevent multiple test let once = false; const startServer = spawn(/^win/.test(process.platform) ? 'npm.cm...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/config/plugin.config.js
client/config/plugin.config.js
// Change theme plugin import MergeLessPlugin from 'antd-pro-merge-less'; import AntDesignThemePlugin from 'antd-theme-webpack-plugin'; import path from 'path'; export default config => { // pro 和 开发环境再添加这个插件 if (process.env.APP_TYPE === 'site' || process.env.NODE_ENV !== 'production') { // 将所有 less 合并为一个供 th...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/config/router.config.js
client/config/router.config.js
export default [ // user { path: '/user', component: '../layouts/UserLayout', routes: [ { path: '/user', redirect: '/user/login', }, { path: '/user/login', component: './User/Login', }, { path: '/user/register', component: './...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/config/config.js
client/config/config.js
// https://umijs.org/config/ import os from 'os'; import pageRoutes from './router.config'; import webpackPlugin from './plugin.config'; import defaultSettings from '../src/defaultSettings'; import slash from 'slash2'; const { pwa, primaryColor } = defaultSettings; const plugins = [ [ 'umi-plugin-react', { ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/functions/index.js
client/functions/index.js
// [START functionsimport] const functions = require('firebase-functions'); const express = require('express'); const matchMock = require('./matchMock'); const app = express(); app.use(matchMock); exports.api = functions.https.onRequest(app);
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/functions/matchMock.js
client/functions/matchMock.js
const pathToRegexp = require('path-to-regexp'); const bodyParser = require('body-parser'); const mockFile = require('./mock/index'); const BODY_PARSED_METHODS = ['post', 'put', 'patch']; const debug = console.log; function parseKey(key) { let method = 'get'; let path = key; if (key.indexOf(' ') > -1) { con...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
Lallassu/vox2
https://github.com/Lallassu/vox2/blob/4280b7463082470c087a6af697fda0ab9b651fcd/js/main.js
js/main.js
//============================================================================== // Author: Nergal // Date: 2014-11-17 //============================================================================== "use strict"; function Game() { this.container; this.scene; this.camera; this.renderer; this.stats;...
javascript
MIT
4280b7463082470c087a6af697fda0ab9b651fcd
2026-01-05T03:43:40.920402Z
false
Lallassu/vox2
https://github.com/Lallassu/vox2/blob/4280b7463082470c087a6af697fda0ab9b651fcd/js/world.js
js/world.js
//============================================================================== // Author: Nergal // Date: 2015-03-11 //============================================================================== // Block: int32 // 1byte = colorMap to palette // 2byte = x world position // 3byte = y world position // 4byte = z ...
javascript
MIT
4280b7463082470c087a6af697fda0ab9b651fcd
2026-01-05T03:43:40.920402Z
false
Lallassu/vox2
https://github.com/Lallassu/vox2/blob/4280b7463082470c087a6af697fda0ab9b651fcd/libs/SimplexNoise.js
libs/SimplexNoise.js
// Ported from Stefan Gustavson's java implementation // http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf // Read Stefan's excellent paper for details on how this code works. // // Sean McCullough banksean@gmail.com // // Added 4D noise // Joshua Koo zz85nus@gmail.com /** * You can pass in a random nu...
javascript
MIT
4280b7463082470c087a6af697fda0ab9b651fcd
2026-01-05T03:43:40.920402Z
false
Lallassu/vox2
https://github.com/Lallassu/vox2/blob/4280b7463082470c087a6af697fda0ab9b651fcd/libs/perlin.js
libs/perlin.js
/* * A speed-improved perlin and simplex noise algorithms for 2D. * * Based on example code by Stefan Gustavson (stegu@itn.liu.se). * Optimisations by Peter Eastman (peastman@drizzle.stanford.edu). * Better rank ordering method by Stefan Gustavson in 2012. * Converted to Javascript by Joseph Gentle. * * Version...
javascript
MIT
4280b7463082470c087a6af697fda0ab9b651fcd
2026-01-05T03:43:40.920402Z
false
Lallassu/vox2
https://github.com/Lallassu/vox2/blob/4280b7463082470c087a6af697fda0ab9b651fcd/libs/OrbitControls.js
libs/OrbitControls.js
/** * @author qiao / https://github.com/qiao * @author mrdoob / http://mrdoob.com * @author alteredq / http://alteredqualia.com/ * @author WestLangley / http://github.com/WestLangley */ THREE.OrbitControls = function ( object, domElement ) { this.object = object; this.domElement = ( domElement !== undefined ) ...
javascript
MIT
4280b7463082470c087a6af697fda0ab9b651fcd
2026-01-05T03:43:40.920402Z
false
Lallassu/vox2
https://github.com/Lallassu/vox2/blob/4280b7463082470c087a6af697fda0ab9b651fcd/libs/Oimo.min.js
libs/Oimo.min.js
'use strict';var OIMO={REVISION:"DEV.1.1.2a",SHAPE_SPHERE:1,SHAPE_BOX:2,WORLD_SCALE:100,INV_SCALE:0.01};OIMO.TO_RAD=Math.PI/180;OIMO.TwoPI=2*Math.PI;OIMO.nextID=0;var OIMO_ARRAY_TYPE;OIMO_ARRAY_TYPE||(OIMO_ARRAY_TYPE="undefined"!==typeof Float32Array?Float32Array:Array);OIMO.World=function(a,c,b,d){this.timeStep=a||1/6...
javascript
MIT
4280b7463082470c087a6af697fda0ab9b651fcd
2026-01-05T03:43:40.920402Z
true
Lallassu/vox2
https://github.com/Lallassu/vox2/blob/4280b7463082470c087a6af697fda0ab9b651fcd/libs/simplex-noise.min.js
libs/simplex-noise.min.js
/*! simplex-noise.js: copyright 2012 Jonas Wagner, licensed under a MIT license. See https://github.com/jwagner/simplex-noise.js for details */ !function(){"use strict";function SimplexNoise(random){random||(random=Math.random),this.p=new Uint8Array(256),this.perm=new Uint8Array(512),this.permMod12=new Uint8Array(512);...
javascript
MIT
4280b7463082470c087a6af697fda0ab9b651fcd
2026-01-05T03:43:40.920402Z
false
Lallassu/vox2
https://github.com/Lallassu/vox2/blob/4280b7463082470c087a6af697fda0ab9b651fcd/libs/three.min.js
libs/three.min.js
// threejs.org/license 'use strict';var THREE={REVISION:"70"};"object"===typeof module&&(module.exports=THREE);void 0===Math.sign&&(Math.sign=function(a){return 0>a?-1:0<a?1:0});THREE.MOUSE={LEFT:0,MIDDLE:1,RIGHT:2};THREE.CullFaceNone=0;THREE.CullFaceBack=1;THREE.CullFaceFront=2;THREE.CullFaceFrontBack=3;THREE.FrontFac...
javascript
MIT
4280b7463082470c087a6af697fda0ab9b651fcd
2026-01-05T03:43:40.920402Z
true
Lallassu/vox2
https://github.com/Lallassu/vox2/blob/4280b7463082470c087a6af697fda0ab9b651fcd/libs/THREEx.KeyboardState.js
libs/THREEx.KeyboardState.js
// THREEx.KeyboardState.js keep the current state of the keyboard. // It is possible to query it at any time. No need of an event. // This is particularly convenient in loop driven case, like in // 3D demos or games. // // # Usage // // **Step 1**: Create the object // // ```var keyboard = new THREEx.KeyboardState();``...
javascript
MIT
4280b7463082470c087a6af697fda0ab9b651fcd
2026-01-05T03:43:40.920402Z
false
Lallassu/vox2
https://github.com/Lallassu/vox2/blob/4280b7463082470c087a6af697fda0ab9b651fcd/libs/jquery-1.11.1.min.js
libs/jquery-1.11.1.min.js
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
javascript
MIT
4280b7463082470c087a6af697fda0ab9b651fcd
2026-01-05T03:43:40.920402Z
true
Lallassu/vox2
https://github.com/Lallassu/vox2/blob/4280b7463082470c087a6af697fda0ab9b651fcd/libs/simplex-noise.js
libs/simplex-noise.js
/* * A fast javascript implementation of simplex noise by Jonas Wagner * * Based on a speed-improved simplex noise algorithm for 2D, 3D and 4D in Java. * Which is based on example code by Stefan Gustavson (stegu@itn.liu.se). * With Optimisations by Peter Eastman (peastman@drizzle.stanford.edu). * Better rank orde...
javascript
MIT
4280b7463082470c087a6af697fda0ab9b651fcd
2026-01-05T03:43:40.920402Z
false
Lallassu/vox2
https://github.com/Lallassu/vox2/blob/4280b7463082470c087a6af697fda0ab9b651fcd/libs/Stats.js
libs/Stats.js
// stats.js r8 - http://github.com/mrdoob/stats.js var Stats=function(){var h,a,n=0,o=0,i=Date.now(),u=i,p=i,l=0,q=1E3,r=0,e,j,f,b=[[16,16,48],[0,255,255]],m=0,s=1E3,t=0,d,k,g,c=[[16,48,16],[0,255,0]];h=document.createElement("div");h.style.cursor="pointer";h.style.width="80px";h.style.opacity="0.9";h.style.zIndex="100...
javascript
MIT
4280b7463082470c087a6af697fda0ab9b651fcd
2026-01-05T03:43:40.920402Z
false
Lallassu/vox2
https://github.com/Lallassu/vox2/blob/4280b7463082470c087a6af697fda0ab9b651fcd/libs/THREEx.WindowResize.js
libs/THREEx.WindowResize.js
// This THREEx helper makes it easy to handle window resize. // It will update renderer and camera when window is resized. // // # Usage // // **Step 1**: Start updating renderer and camera // // ```var windowResize = THREEx.WindowResize(aRenderer, aCamera)``` // // **Step 2**: Start updating renderer and camera //...
javascript
MIT
4280b7463082470c087a6af697fda0ab9b651fcd
2026-01-05T03:43:40.920402Z
false
Lallassu/vox2
https://github.com/Lallassu/vox2/blob/4280b7463082470c087a6af697fda0ab9b651fcd/libs/Oimo.js
libs/Oimo.js
/** * OimoPhysics DEV 1.1.0a * @author Saharan / http://el-ement.com/ * * Oimo.js 2014 * @author LoTh / http://3dflashlo.wordpress.com/ */ var OIMO = { REVISION: 'DEV.1.1.2a' }; OIMO.SHAPE_SPHERE = 0x1; OIMO.SHAPE_BOX = 0x2; OIMO.WORLD_SCALE = 100; OIMO.INV_SCALE = 0.01; OIMO.TO_RAD = Math.PI / 180; OIMO.Tw...
javascript
MIT
4280b7463082470c087a6af697fda0ab9b651fcd
2026-01-05T03:43:40.920402Z
true
Lallassu/vox2
https://github.com/Lallassu/vox2/blob/4280b7463082470c087a6af697fda0ab9b651fcd/libs/ImprovedNoise.js
libs/ImprovedNoise.js
// http://mrl.nyu.edu/~perlin/noise/ var ImprovedNoise = function () { var p = [151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10, 23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87, 174,20,125,136,171,168,68,175,74,165,71,...
javascript
MIT
4280b7463082470c087a6af697fda0ab9b651fcd
2026-01-05T03:43:40.920402Z
false
nielse63/jquery.resizeend
https://github.com/nielse63/jquery.resizeend/blob/d1183fb89caea580d4bc812b7f0e8b84dd7a65d2/.eslintrc.js
.eslintrc.js
// http://eslint.org/docs/user-guide/configuring module.exports = { root: true, parser: 'babel-eslint', parserOptions: { sourceType: 'module', }, env: { browser: true, node: true, es6: true, amd: true, }, extends: [ 'airbnb-base', ], rules: { 'comma-dangle': ['error', { ...
javascript
MIT
d1183fb89caea580d4bc812b7f0e8b84dd7a65d2
2026-01-05T03:43:25.857162Z
false
nielse63/jquery.resizeend
https://github.com/nielse63/jquery.resizeend/blob/d1183fb89caea580d4bc812b7f0e8b84dd7a65d2/rollup.config.js
rollup.config.js
import babel from 'rollup-plugin-babel'; const pkg = require('./package.json'); const external = Object.keys(pkg.dependencies || {}); const plugins = [ babel(), ]; export default { input: 'src/index.js', plugins, external, output: [{ file: pkg.main, format: 'umd', moduleName: pkg.name, sou...
javascript
MIT
d1183fb89caea580d4bc812b7f0e8b84dd7a65d2
2026-01-05T03:43:25.857162Z
false
nielse63/jquery.resizeend
https://github.com/nielse63/jquery.resizeend/blob/d1183fb89caea580d4bc812b7f0e8b84dd7a65d2/src/debounce.js
src/debounce.js
export default function debounce(func, wait = 100, immediate) { let timeout; let args; let context; let timestamp; let result; function later() { const last = Date.now() - timestamp; if (last < wait && last >= 0) { timeout = setTimeout(later, wait - last); } else { timeout = null;...
javascript
MIT
d1183fb89caea580d4bc812b7f0e8b84dd7a65d2
2026-01-05T03:43:25.857162Z
false
nielse63/jquery.resizeend
https://github.com/nielse63/jquery.resizeend/blob/d1183fb89caea580d4bc812b7f0e8b84dd7a65d2/src/index.js
src/index.js
import debounce from './debounce'; const $ = window.jQuery; if (!$) { throw new Error('resizeend require jQuery'); } $.event.special.resizeend = { setup() { const context = this; const $context = $(context); function callback(event) { event.type = 'resizeend'; $context.trigger('resizeend...
javascript
MIT
d1183fb89caea580d4bc812b7f0e8b84dd7a65d2
2026-01-05T03:43:25.857162Z
false
nielse63/jquery.resizeend
https://github.com/nielse63/jquery.resizeend/blob/d1183fb89caea580d4bc812b7f0e8b84dd7a65d2/test/e2e/runner.js
test/e2e/runner.js
process.env.NODE_ENV = 'test'; const spawn = require('cross-spawn'); const server = require('./server'); server.start().then(() => { let opts = process.argv.slice(2); if (opts.indexOf('--config') === -1) { opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js']); } if (opts.indexOf('--env') === -1)...
javascript
MIT
d1183fb89caea580d4bc812b7f0e8b84dd7a65d2
2026-01-05T03:43:25.857162Z
false
nielse63/jquery.resizeend
https://github.com/nielse63/jquery.resizeend/blob/d1183fb89caea580d4bc812b7f0e8b84dd7a65d2/test/e2e/nightwatch.conf.js
test/e2e/nightwatch.conf.js
/* eslint-disable global-require */ require('babel-register'); module.exports = { src_folders: ['test/e2e/specs'], output_folder: 'test/e2e/reports', custom_commands_path: [], selenium: { start_process: true, server_path: require('selenium-server').path, host: '127.0.0.1', port: 4444, log...
javascript
MIT
d1183fb89caea580d4bc812b7f0e8b84dd7a65d2
2026-01-05T03:43:25.857162Z
false
nielse63/jquery.resizeend
https://github.com/nielse63/jquery.resizeend/blob/d1183fb89caea580d4bc812b7f0e8b84dd7a65d2/test/e2e/server.js
test/e2e/server.js
/* eslint-disable no-console */ const path = require('path'); const express = require('express'); const app = express(); const port = process.env.PORT || 3001; app.use(express.static(path.join(`${__dirname}/static`))); app.use(express.static(path.resolve(`${__dirname}/../../lib`))); app.get('/', (req, res) => { r...
javascript
MIT
d1183fb89caea580d4bc812b7f0e8b84dd7a65d2
2026-01-05T03:43:25.857162Z
false
nielse63/jquery.resizeend
https://github.com/nielse63/jquery.resizeend/blob/d1183fb89caea580d4bc812b7f0e8b84dd7a65d2/test/e2e/specs/General.spec.js
test/e2e/specs/General.spec.js
const size = { width: 0, height: 0, }; module.exports = { before(browser, done) { browser.url(browser.launch_url, () => { browser.waitForElementVisible('.main-wrapper', 1000); done(); }); }, after(browser, done) { browser.end(() => { done(); }); }, General(browser) { ...
javascript
MIT
d1183fb89caea580d4bc812b7f0e8b84dd7a65d2
2026-01-05T03:43:25.857162Z
false
nielse63/jquery.resizeend
https://github.com/nielse63/jquery.resizeend/blob/d1183fb89caea580d4bc812b7f0e8b84dd7a65d2/lib/jquery.resizeend.min.js
lib/jquery.resizeend.min.js
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n():"function"==typeof define&&define.amd?define(n):n()}(0,function(){"use strict";function e(e){function n(){var d=Date.now()-l;d<i&&d>=0?r=setTimeout(n,i-d):(r=null,t||(f=e.apply(u,o),u=null,o=null))}var i=arguments.length>1&&void 0!==arguments[1]?ar...
javascript
MIT
d1183fb89caea580d4bc812b7f0e8b84dd7a65d2
2026-01-05T03:43:25.857162Z
false
nielse63/jquery.resizeend
https://github.com/nielse63/jquery.resizeend/blob/d1183fb89caea580d4bc812b7f0e8b84dd7a65d2/lib/jquery.resizeend.js
lib/jquery.resizeend.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory() : typeof define === 'function' && define.amd ? define(factory) : (factory()); }(this, (function () { 'use strict'; function debounce(func) { var wait = arguments.length > 1 && arguments[1] !== undefined ?...
javascript
MIT
d1183fb89caea580d4bc812b7f0e8b84dd7a65d2
2026-01-05T03:43:25.857162Z
false
PierfrancescoSoffritti/doodles
https://github.com/PierfrancescoSoffritti/doodles/blob/9090a3a441b322593c2468caafb4aa3f3eba7706/07_PBRMaterial/js/SceneManager.js
07_PBRMaterial/js/SceneManager.js
function SceneManager(canvas) { canvas.width = document.body.clientWidth; canvas.height = document.body.clientHeight; var time = 0; var mousePosition = { x: 0, y: 0 }; var width = canvas.width; var height = canvas.height; var scene = new THREE.Scene(); scene.backgr...
javascript
Apache-2.0
9090a3a441b322593c2468caafb4aa3f3eba7706
2026-01-05T03:43:45.246895Z
false
PierfrancescoSoffritti/doodles
https://github.com/PierfrancescoSoffritti/doodles/blob/9090a3a441b322593c2468caafb4aa3f3eba7706/07_PBRMaterial/js/main.js
07_PBRMaterial/js/main.js
var canvas = document.getElementById("canvas"); var windowHalfX = window.innerWidth / 2; var windowHalfY = window.innerHeight / 2; window.onresize = resizeCanvas; resizeCanvas(); var sceneManager = new SceneManager(canvas); render(); window.onmousemove = onMouseMove; function render() { requestAnimationFrame(...
javascript
Apache-2.0
9090a3a441b322593c2468caafb4aa3f3eba7706
2026-01-05T03:43:45.246895Z
false
PierfrancescoSoffritti/doodles
https://github.com/PierfrancescoSoffritti/doodles/blob/9090a3a441b322593c2468caafb4aa3f3eba7706/07_PBRMaterial/js/Utils.js
07_PBRMaterial/js/Utils.js
function getRandom(min, max) { return Math.random() * (max - min) + min; }
javascript
Apache-2.0
9090a3a441b322593c2468caafb4aa3f3eba7706
2026-01-05T03:43:45.246895Z
false
PierfrancescoSoffritti/doodles
https://github.com/PierfrancescoSoffritti/doodles/blob/9090a3a441b322593c2468caafb4aa3f3eba7706/07_PBRMaterial/js/SceneSubject.js
07_PBRMaterial/js/SceneSubject.js
function SceneSubject(scene, cubeCamera) { var icoGeometry = new THREE.IcosahedronGeometry(1, 6); var material = new THREE.MeshPhongMaterial({ flatShading: false }); material.envMap = cubeCamera.renderTarget.texture; material.reflectivity = .6; var colorMap = new THREE.TextureLoader().load('textures...
javascript
Apache-2.0
9090a3a441b322593c2468caafb4aa3f3eba7706
2026-01-05T03:43:45.246895Z
false
PierfrancescoSoffritti/doodles
https://github.com/PierfrancescoSoffritti/doodles/blob/9090a3a441b322593c2468caafb4aa3f3eba7706/13_Nowherelands/js/EventBus.js
13_Nowherelands/js/EventBus.js
function EventBus() { const eventObjects = new Array(); /** * [subscribe Subscribe for a specific event] * @param {[string]} eventType [the event name] * @param {Function} callback [function that will be called when 'eventType' occurs] */ this.subscribe = function (eventType, c...
javascript
Apache-2.0
9090a3a441b322593c2468caafb4aa3f3eba7706
2026-01-05T03:43:45.246895Z
false
PierfrancescoSoffritti/doodles
https://github.com/PierfrancescoSoffritti/doodles/blob/9090a3a441b322593c2468caafb4aa3f3eba7706/13_Nowherelands/js/SceneManager.js
13_Nowherelands/js/SceneManager.js
function SceneManager(canvas) { canvas.width = document.body.clientWidth; canvas.height = document.body.clientHeight; var width = canvas.width; var height = canvas.height; var clock = new THREE.Clock(); // scene setup var scene = new THREE.Scene(); scene.background = new THREE.Color("#...
javascript
Apache-2.0
9090a3a441b322593c2468caafb4aa3f3eba7706
2026-01-05T03:43:45.246895Z
false
PierfrancescoSoffritti/doodles
https://github.com/PierfrancescoSoffritti/doodles/blob/9090a3a441b322593c2468caafb4aa3f3eba7706/13_Nowherelands/js/main.js
13_Nowherelands/js/main.js
const canvas = document.getElementById("canvas"); window.onresize = resizeCanvas; // (function(){var script=document.createElement('script');script.onload=function(){var stats=new Stats();document.body.appendChild(stats.dom);requestAnimationFrame(function loop(){stats.update();requestAnimationFrame(loop)});};script.s...
javascript
Apache-2.0
9090a3a441b322593c2468caafb4aa3f3eba7706
2026-01-05T03:43:45.246895Z
false
PierfrancescoSoffritti/doodles
https://github.com/PierfrancescoSoffritti/doodles/blob/9090a3a441b322593c2468caafb4aa3f3eba7706/13_Nowherelands/js/Utils.js
13_Nowherelands/js/Utils.js
Function.prototype.inheritsFrom = function(parentClassOrObject) { if(parentClassOrObject.constructor == Function) { //Normal Inheritance this.prototype = new parentClassOrObject; this.prototype.constructor = this; this.prototype.parent = parentClassOrObject.prototype; } e...
javascript
Apache-2.0
9090a3a441b322593c2468caafb4aa3f3eba7706
2026-01-05T03:43:45.246895Z
false
PierfrancescoSoffritti/doodles
https://github.com/PierfrancescoSoffritti/doodles/blob/9090a3a441b322593c2468caafb4aa3f3eba7706/13_Nowherelands/js/ViewFinderManager.js
13_Nowherelands/js/ViewFinderManager.js
const actionAvailable = "actionAvailable"; const actionUnavailable = "actionUnavailable"; function ViewFinderManager() { const growAnimation = document.getElementById("pointerGrow"); const shrinkAnimation = document.getElementById("pointerShrink"); let isPointerBig = false; eventBus.subscribe(actionAvailable, on...
javascript
Apache-2.0
9090a3a441b322593c2468caafb4aa3f3eba7706
2026-01-05T03:43:45.246895Z
false
PierfrancescoSoffritti/doodles
https://github.com/PierfrancescoSoffritti/doodles/blob/9090a3a441b322593c2468caafb4aa3f3eba7706/13_Nowherelands/js/sounds/NotesGenerator.js
13_Nowherelands/js/sounds/NotesGenerator.js
const playHighNote = "playHighNote"; const playLowNote = "playLowNote"; function NotesGenerator() { window.context = window.context || window.webkitcontext; var context = new AudioContext(); var notesArray = getNotes(); //Choose the importance of each note // var nextNoteString = distribution({1...
javascript
Apache-2.0
9090a3a441b322593c2468caafb4aa3f3eba7706
2026-01-05T03:43:45.246895Z
false
PierfrancescoSoffritti/doodles
https://github.com/PierfrancescoSoffritti/doodles/blob/9090a3a441b322593c2468caafb4aa3f3eba7706/13_Nowherelands/js/sounds/BackgroundTuneGenerator.js
13_Nowherelands/js/sounds/BackgroundTuneGenerator.js
const notePlayed = "notePlayed"; function BackgroundTuneGenerator(notesGenerator) { let fastTime = false; let interval, interval2; this.start = function() { setInterval( function() { const waveForm = Math.random() > 0.5 ? 1 : 2; notesGenerator.playBackgroundNoteWithDistr(waveForm, .06, 3); eventBus....
javascript
Apache-2.0
9090a3a441b322593c2468caafb4aa3f3eba7706
2026-01-05T03:43:45.246895Z
false
PierfrancescoSoffritti/doodles
https://github.com/PierfrancescoSoffritti/doodles/blob/9090a3a441b322593c2468caafb4aa3f3eba7706/13_Nowherelands/js/sky/Moon.js
13_Nowherelands/js/sky/Moon.js
function Moon(scene, terrainSize) { const moonGeometry = new THREE.IcosahedronGeometry(1000, 3); const moonMaterial = new THREE.MeshBasicMaterial({color: "#fff"}); const moon = new THREE.Mesh(moonGeometry, moonMaterial); scene.add(moon); moon.position.z = -terrainSize/1.8; var light = new THREE.PointLight("#22...
javascript
Apache-2.0
9090a3a441b322593c2468caafb4aa3f3eba7706
2026-01-05T03:43:45.246895Z
false
PierfrancescoSoffritti/doodles
https://github.com/PierfrancescoSoffritti/doodles/blob/9090a3a441b322593c2468caafb4aa3f3eba7706/13_Nowherelands/js/sky/Skydome.js
13_Nowherelands/js/sky/Skydome.js
function Skydome(scene, terrainSize) { const stars = new Stars(scene, terrainSize); const snow = new Snow(scene, terrainSize); const moon = new Moon(scene, terrainSize); const speed = 0.01; this.update = function(time) { scene.background.setHSL(0.75, .5, (Math.sin(time * speed)+4) / 40); stars.update(time)...
javascript
Apache-2.0
9090a3a441b322593c2468caafb4aa3f3eba7706
2026-01-05T03:43:45.246895Z
false
PierfrancescoSoffritti/doodles
https://github.com/PierfrancescoSoffritti/doodles/blob/9090a3a441b322593c2468caafb4aa3f3eba7706/13_Nowherelands/js/sky/Snow.js
13_Nowherelands/js/sky/Snow.js
function Snow(scene, terrainSize) { const snowGeometry = new THREE.Geometry(); const range = terrainSize/1.8; for (let i = 0; i < 1500*5; i++) { const particle = new THREE.Vector3(); particle.baseCoords = new THREE.Vector3( Math.random() * range - range/2, getR...
javascript
Apache-2.0
9090a3a441b322593c2468caafb4aa3f3eba7706
2026-01-05T03:43:45.246895Z
false
PierfrancescoSoffritti/doodles
https://github.com/PierfrancescoSoffritti/doodles/blob/9090a3a441b322593c2468caafb4aa3f3eba7706/13_Nowherelands/js/sky/Stars.js
13_Nowherelands/js/sky/Stars.js
function Stars(scene, terrainSize) { var starsGeometry = new THREE.IcosahedronGeometry(terrainSize, 4); // geometry deformation for (var i=0; i<starsGeometry.vertices.length; i+=1) { var scalar = 1+ Math.random() + Math.random(); starsGeometry.vertices[i].multiplyScalar(scalar) } const texture...
javascript
Apache-2.0
9090a3a441b322593c2468caafb4aa3f3eba7706
2026-01-05T03:43:45.246895Z
false