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
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-weapp-start/.eslintrc.js
examples/count-weapp-start/.eslintrc.js
module.exports = { globals: { getApp: false, App: false, Page: false, Component: false, wx: false, }, extends: ['standard', 'plugin:prettier/recommended'], rules: { 'arrow-parens': 0, 'generator-star-spacing': 0, 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, '...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-weapp-start/weapp.config.js
examples/count-weapp-start/weapp.config.js
module.exports = { plugins: [ 'weapp-plugin-babel', 'weapp-plugin-require', 'weapp-plugin-less', 'weapp-plugin-pug', 'weapp-plugin-eslint', ], env: { production: { plugins: [ [ 'weapp-plugin-jsmin', { extra: true, }, ], ...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-weapp-start/src/app.js
examples/count-weapp-start/src/app.js
App({ async onLaunch() { const n = await new Promise((resolve, reject) => { setTimeout(() => { resolve(1); }, 3000); }); console.log(n); }, onShow: function() { console.log('App Show'); }, onHide: function() { console.log('App Hide'); }, });
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-weapp-start/src/store.js
examples/count-weapp-start/src/store.js
import weappx from 'weappx'; import connector from 'weappx-weapp'; const app = weappx(); app.model({ namespace: 'count', state: { count: 0, }, mutations: { plus(state, num) { state.count += num; }, sub(state, num) { state.count -= num; }, }, }); const store = app.start(); ...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-weapp-start/src/page/index.js
examples/count-weapp-start/src/page/index.js
// import debounce from 'lodash/debounce'; import connector from 'weappx-weapp'; import store from '../store'; Page( connector.connectPage({ count: state => state.count.count, })({ store, data: { inputValue: 1, }, inputChange({ detail: { value } }) { console.log(value); this.s...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/todo/wepy.config.js
examples/todo/wepy.config.js
const path = require('path'); var prod = process.env.NODE_ENV === 'production'; module.exports = { wpyExt: '.wpy', eslint: false, cliLogs: !prod, build: { }, resolve: { alias: { counter: path.join(__dirname, 'src/components/counter'), '@': path.join(__dirname, 'src') }, aliasFields:...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx-plugin-loading/src/index.js
packages/weappx-plugin-loading/src/index.js
const some = obj => { for (let k in obj) { if (!obj.hasOwnProperty(k)) continue; if (obj[k]) return true; } return false; }; const SPLIT = '/'; const createLoading = (options = {}) => { const { namespace = 'loading', global = 'global' } = options; const loadingModel = { namespace, state: { ...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx-plugin-loading/dist/weappx-plugin-loading.min.js
packages/weappx-plugin-loading/dist/weappx-plugin-loading.min.js
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["weappx-plugin-loading"]=t():e["weappx-plugin-loading"]=t()}("undefined"!=typeof self?self:this,function(){return function(n){var r={};function o(e){if(...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx-plugin-loading/dist/weappx-plugin-loading.js
packages/weappx-plugin-loading/dist/weappx-plugin-loading.js
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["weappx-plugin-loading"] = factory(); else...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx/__test__/index.test.js
packages/weappx/__test__/index.test.js
/* global test, expect, afterEach */ import weappx from '../src/index'; test('mode must be union', () => { expect(() => { const app = weappx(); app.model({ namespace: 'n', }); app.model({ namespace: 'n', }); }).toThrowError(/model\[namespace=\w+\] must be union/); }); test('mutatio...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx/__test__/eventbus.test.js
packages/weappx/__test__/eventbus.test.js
/* global test, expect, afterEach */ import eventBus from '../src/eventBus'; afterEach(() => (eventBus._listeners = {})); test('listen', done => { eventBus.listen( 'e', function(data) { expect(data).toEqual(1); expect(this.scope).toEqual(2); done(); }, { scope: 2 } ); eventBus.e...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx/__test__/loading.test.js
packages/weappx/__test__/loading.test.js
/* global test, expect, afterEach */ import weappx from '../src/index'; import createLoading from '../../weappx-plugin-loading/src/index'; import { delay } from './helper'; test('model loading', done => { const app = weappx(); app.use(createLoading()); app.model({ namespace: 'n', mutations: { add(s...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx/__test__/helper.js
packages/weappx/__test__/helper.js
export const delay = timeout => { return new Promise(resolve => { setTimeout(() => { resolve(); }, timeout); }); };
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx/__test__/effect.test.js
packages/weappx/__test__/effect.test.js
/* global test, expect, afterEach */ import weappx from '../src/index'; import createLoading from '../../weappx-plugin-loading/src/index'; test('onError type', () => { expect(() => { const app = weappx({ onError: 1, }); app.model({ namespace: 'n', }); app.start(); }).toThrowError(/o...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx/src/index.js
packages/weappx/src/index.js
import { handleActions, createActions } from 'redux-actions'; import { combineReducers, createStore, applyMiddleware } from 'redux'; import eventBus from './eventBus'; import actionTakeMiddleware from './middlewares/actionTake'; import thunkMiddleware from './middlewares/tunk'; import produce from 'immer'; import asser...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx/src/eventBus.js
packages/weappx/src/eventBus.js
const eventBus = { _listeners: {}, _eventCache: {}, isHappened(type) { return !!this._eventCache[type]; }, takeLast(type) { if (this._eventCache.hasOwnProperty(type)) { return Promise.resolve(this._eventCache[type]); } return this.take(type); }, take(type) { return new Promise((r...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx/src/utils/assert.js
packages/weappx/src/utils/assert.js
export default function assert(condition, error = 'assert no pass') { let correct = condition; if (typeof condition === 'function') { correct = condition(); } if (!correct) { throw new Error(error); } }
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx/src/middlewares/tunk.js
packages/weappx/src/middlewares/tunk.js
import eventBus from '../eventBus'; const thunkMiddleware = ({ dispatch, getState }) => next => action => { if (action.meta && action.payload && typeof action.payload === 'function') { const rootState = getState(); const { namespace, app, composeDispatcher, takes } = action.meta; action.payload = action...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx/src/middlewares/actionTake.js
packages/weappx/src/middlewares/actionTake.js
import eventBus from '../eventBus'; const actionTakeMiddleware = ({ dispatch, getState }) => next => action => { const acfun = typeof action === 'function'; !acfun && eventBus.emit(action.type, action); const returnValue = next(action); !acfun && eventBus.emit(`${action.type}:after`, action); return returnVa...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx/dist/weappx.min.js
packages/weappx/dist/weappx.min.js
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.weappx=e():t.weappx=e()}("undefined"!=typeof self?self:this,function(){return function(r){var n={};function o(t){if(n[t])return n[t].exports;var e=n[t]=...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
true
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx/dist/weappx.js
packages/weappx/dist/weappx.js
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["weappx"] = factory(); else root["weappx...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
true
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx-weapp/__test__/index.test.js
packages/weappx-weapp/__test__/index.test.js
/* global test, expect */ import connector from '../src/index'; test('export', () => { expect(connector.connectPage).toBeInstanceOf(Function); expect(connector.connectComponent).toBeInstanceOf(Function); expect(connector.setStore).toBeInstanceOf(Function); });
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx-weapp/src/index.js
packages/weappx-weapp/src/index.js
import { getStore, setStore } from './store'; import isEqual from 'lodash.isequal'; function normalizeMap(map) { return Array.isArray(map) ? map.map(key => ({ key, val: key })) : Object.keys(map).map(key => ({ key, val: map[key] })); } function mapState(states) { const res = {}; const store = getStore()...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx-weapp/src/store.js
packages/weappx-weapp/src/store.js
let store; export function getStore() { return store; } export function setStore(s) { store = s; }
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx-weapp/dist/weappx-weapp.min.js
packages/weappx-weapp/dist/weappx-weapp.min.js
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["weappx-weapp"]=e():t["weappx-weapp"]=e()}("undefined"!=typeof self?self:this,function(){return function(r){var n={};function o(t){if(n[t])return n[t].e...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
false
tolerance-go/weappx
https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/packages/weappx-weapp/dist/weappx-weapp.js
packages/weappx-weapp/dist/weappx-weapp.js
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["weappx-weapp"] = factory(); else root["...
javascript
MIT
17bf76cd89c22089a581a24619ce17051671735a
2026-01-05T03:43:40.995439Z
true
Nuclides/github-highlight-selected
https://github.com/Nuclides/github-highlight-selected/blob/f21457feb8c408fbc47670e1cb913825ff33fa1b/src/highlight-selected.js
src/highlight-selected.js
window.addEventListener('load', function() { var container = '.blob-wrapper, .js-blob-wrapper'; var lastPage = location.href; var textNodes = []; var highlighted = []; var highlightedIndex; function wrapTextNodes(query) { // Why did all the gawd dam text selection stuff fail, urgggggghh...
javascript
MIT
f21457feb8c408fbc47670e1cb913825ff33fa1b
2026-01-05T03:43:41.891713Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/.eslintrc.js
client/.eslintrc.js
module.exports = { parser: 'babel-eslint', extends: ['airbnb', 'prettier', 'plugin:compat/recommended'], env: { browser: true, node: true, es6: true, mocha: true, jest: true, jasmine: true, }, globals: { APP_TYPE: true, page: true, }, rules: { 'react/jsx-filename-extens...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/scripts/lint-prettier.js
client/scripts/lint-prettier.js
/** * copy to https://github.com/facebook/react/blob/master/scripts/prettier/index.js * prettier api doc https://prettier.io/docs/en/api.html *----------*****-------------- * lint file is prettier *----------*****-------------- */ const prettier = require('prettier'); const fs = require('fs'); const chalk = req...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/scripts/getPrettierFiles.js
client/scripts/getPrettierFiles.js
const glob = require('glob'); const getPrettierFiles = () => { let files = []; const jsFiles = glob.sync('src/**/*.js*', { ignore: ['**/node_modules/**', 'build/**'] }); const tsFiles = glob.sync('src/**/*.ts*', { ignore: ['**/node_modules/**', 'build/**'] }); const configFiles = glob.sync('config/**/*.js*', {...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/scripts/prettier.js
client/scripts/prettier.js
/** * copy to https://github.com/facebook/react/blob/master/scripts/prettier/index.js * prettier api doc https://prettier.io/docs/en/api.html *----------*****-------------- * prettier all js and all ts. *----------*****-------------- */ const prettier = require('prettier'); const fs = require('fs'); const getPr...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/scripts/generateMock.js
client/scripts/generateMock.js
const generateMock = require('merge-umi-mock-data'); const path = require('path'); generateMock(path.join(__dirname, '../mock'), path.join(__dirname, '../functions/mock/index.js'));
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/mock/user.js
client/mock/user.js
// 代码中会兼容本地 service mock 以及部署站点的静态数据 export default { // 支持值为 Object 和 Array 'GET /api/currentUser': { name: 'Gang Tao', avatar: 'https://media.licdn.com/dms/image/C5603AQFMy-KsDSViMA/profile-displayphoto-shrink_100_100/0?e=1558569600&v=beta&t=Fy309Fn-5saRMdWuy4qAjnQS9vplgtkazglS4kusRnk', userid: '00000...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/mock/route.js
client/mock/route.js
export default { '/api/auth_routes': { '/form/advanced-form': { authority: ['admin', 'user'] }, }, };
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/mock/config.js
client/mock/config.js
const configs = { 'server': { "server": { "host": "0.0.0.0", "port": "8000", "debug": "true", "workers": "3" } }, 'dataset_type': { "csv": { "module": "dataplay.datasvc.csv", "class": "CSV" } }, '...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/mock/api.js
client/mock/api.js
import mockjs from 'mockjs'; const titles = [ 'Alipay', 'Angular', 'Ant Design', 'Ant Design Pro', 'Bootstrap', 'React', 'Vue', 'Webpack', ]; const avatars = [ 'https://gw.alipayobjects.com/zos/rmsportal/WdGqmHpayyMjiEhcKoVE.png', // Alipay 'https://gw.alipayobjects.com/zos/rmsportal/zOsKZmFRdUtvpq...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/mock/dashboard.js
client/mock/dashboard.js
import uuid from 'uuid' let dashboards = { '1': { title: 'sample1', description: 'area', dataset: 'iris', type: undefined, grammar: {"facat":null,"coordination":"rect","geom":{"Geom1":{"geometry":"area","position":["species","sepal_length"]}}} }, '2': { title...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/mock/dataset.js
client/mock/dataset.js
import mockjs from 'mockjs'; import iris from './data/iris.json'; import air_passengers from './data/air_passengers.json'; // eslint-disable-line camelcase import nasdaq from './data/nasdaq.json'; import heat_sample from './data/heat_sample.json'; // eslint-disable-line camelcase const {Random} = mockjs; let databa...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/mock/geographic.js
client/mock/geographic.js
import city from './geographic/city.json'; import province from './geographic/province.json'; function getProvince(req, res) { return res.json(province); } function getCity(req, res) { return res.json(city[req.params.province]); } export default { 'GET /api/geographic/province': getProvince, 'GET /api/geogra...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/mock/chart.js
client/mock/chart.js
import moment from 'moment'; // mock data const visitData = []; const beginDay = new Date().getTime(); const fakeY = [7, 5, 4, 2, 4, 7, 5, 6, 5, 9, 6, 3, 1, 5, 3, 6, 5]; for (let i = 0; i < fakeY.length; i += 1) { visitData.push({ x: moment(new Date(beginDay + 1000 * 60 * 60 * 24 * i)).format('YYYY-MM-DD'), ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/mock/ml.js
client/mock/ml.js
import uuid from 'uuid'; import mockjs from 'mockjs'; import { parse } from 'url'; const {Random} = mockjs; Random.extend({ jobStatus() { const status = ['INITIALIZED','TRAINING','VALIDATING','SUCCESS','FAILED']; return this.pick(status); }, jobType() { const type = ['AutoClassific...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
true
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/mock/rule.js
client/mock/rule.js
import { parse } from 'url'; // mock tableListDataSource let tableListDataSource = []; for (let i = 0; i < 46; i += 1) { tableListDataSource.push({ key: i, disabled: i % 6 === 0, href: 'https://ant.design', avatar: [ 'https://gw.alipayobjects.com/zos/rmsportal/eeHMaZBwmTvLdIwMfBpg.png', '...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/mock/profile.js
client/mock/profile.js
const basicGoods = [ { id: '1234561', name: '矿泉水 550ml', barcode: '12421432143214321', price: '2.00', num: '1', amount: '2.00', }, { id: '1234562', name: '凉茶 300ml', barcode: '12421432143214322', price: '3.00', num: '2', amount: '6.00', }, { id: '1234563', ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/mock/notices.js
client/mock/notices.js
const fakeNotices = [ { id: '000000001', avatar: 'https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png', title: 'Welcome to Dataplay3', datetime: '2017-08-09', type: 'notification', }, ]; const getNotices = (req, res) => { if (req.query && req.query.type) { const startFrom ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/global.js
client/src/global.js
import React from 'react'; import { notification, Button, message } from 'antd'; import { formatMessage } from 'umi/locale'; import defaultSettings from './defaultSettings'; const { pwa } = defaultSettings; // if pwa is true if (pwa) { // Notify user if offline now window.addEventListener('sw.offline', () => { ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/app.js
client/src/app.js
import fetch from 'dva/fetch'; export const dva = { config: { onError(err) { err.preventDefault(); }, }, }; let authRoutes = {}; function ergodicRoutes(routes, authKey, authority) { routes.forEach(element => { if (element.path === authKey) { if (!element.authority) element.authority = [...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/service-worker.js
client/src/service-worker.js
/* globals workbox */ /* eslint-disable no-restricted-globals */ workbox.core.setCacheNameDetails({ prefix: 'antd-pro', suffix: 'v1', }); // Control all opened tabs ASAP workbox.clientsClaim(); /** * Use precaching list generated by workbox in build process. * https://developers.google.com/web/tools/workbox/refe...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/defaultSettings.js
client/src/defaultSettings.js
module.exports = { navTheme: 'light', // theme for nav menu primaryColor: '#1890FF', // primary color of ant design layout: 'sidemenu', // nav menu position: sidemenu or topmenu contentWidth: 'Fluid', // layout of content: Fluid or Fixed, only works when layout is topmenu fixedHeader: false, // sticky header ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/services/user.js
client/src/services/user.js
import request from '@/utils/request'; export async function query() { return request('/api/users'); } export async function queryCurrent() { return request('/api/currentUser'); }
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/services/error.js
client/src/services/error.js
import request from '@/utils/request'; export default async function queryError(code) { return request(`/api/${code}`); }
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/services/automl.js
client/src/services/automl.js
import request from '@/utils/request'; import { stringify } from 'qs'; export async function queryJobs(params) { return request(`/api/ml_jobs?${stringify(params)}`); } export async function queryJob(id) { const option = {}; option.headers = { 'Cache-Control': 'no-cache' }; return request(`/api/ml_jobs/${id}`,...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/services/config.js
client/src/services/config.js
import request from '@/utils/request'; export async function listConfigs() { return request('/api/confs'); } export async function getConfig(domain) { return request(`/api/confs/${domain}`); } export async function saveConfig(params) { const { domain, value } = params; return request(`/api/confs/${domain}`, ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/services/api.js
client/src/services/api.js
import { stringify } from 'qs'; import request from '@/utils/request'; export async function queryProjectNotice() { return request('/api/project/notice'); } export async function queryActivities() { return request('/api/activities'); } export async function queryRule(params) { return request(`/api/rule?${strin...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/services/dashboard.js
client/src/services/dashboard.js
import request from '@/utils/request'; export async function listDashboards() { return request('/api/dashboards'); } export async function queryDashboard(id) { return request(`/api/dashboards/${id}`); } export async function createDashboard(params) { const { restParams } = params; return request(`/api/dashbo...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/services/dataset.js
client/src/services/dataset.js
import request from '@/utils/request'; export async function queryDatasets() { return request('/api/datasets'); } export async function queryDataset(id) { return request(`/api/datasets/${id}`); } export async function runDatasetQuery(params) { const { dataset, ...restParams } = params; return request(`/api/d...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Authorized.js
client/src/pages/Authorized.js
import React from 'react'; import RenderAuthorized from '@/components/Authorized'; import { getAuthority } from '@/utils/authority'; import Redirect from 'umi/redirect'; const Authority = getAuthority(); const Authorized = RenderAuthorized(Authority); export default ({ children }) => ( <Authorized authority={childr...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/404.js
client/src/pages/404.js
import React from 'react'; import Link from 'umi/link'; import { formatMessage } from 'umi/locale'; import Exception from '@/components/Exception'; export default () => ( <Exception type="404" linkElement={Link} desc={formatMessage({ id: 'app.exception.description.404' })} backText={formatMessage({ i...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Account/Center/Articles.js
client/src/pages/Account/Center/Articles.js
import React, { PureComponent } from 'react'; import { List, Icon, Tag } from 'antd'; import { connect } from 'dva'; import ArticleListContent from '@/components/ArticleListContent'; import styles from './Articles.less'; @connect(({ list }) => ({ list, })) class Center extends PureComponent { render() { const ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Account/Center/Center.js
client/src/pages/Account/Center/Center.js
import React, { PureComponent } from 'react'; import { connect } from 'dva'; import Link from 'umi/link'; import router from 'umi/router'; import { Card, Row, Col, Icon, Avatar, Tag, Divider, Spin, Input } from 'antd'; import GridContent from '@/components/PageHeaderWrapper/GridContent'; import styles from './Center.le...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Account/Center/Applications.js
client/src/pages/Account/Center/Applications.js
import React, { PureComponent } from 'react'; import { List, Card, Icon, Dropdown, Menu, Avatar, Tooltip } from 'antd'; import numeral from 'numeral'; import { connect } from 'dva'; import { formatWan } from '@/utils/utils'; import stylesApplications from './Applications.less'; @connect(({ list }) => ({ list, })) cl...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Account/Center/Projects.js
client/src/pages/Account/Center/Projects.js
import React, { PureComponent } from 'react'; import { List, Card } from 'antd'; import moment from 'moment'; import { connect } from 'dva'; import AvatarList from '@/components/AvatarList'; import stylesProjects from './Projects.less'; @connect(({ list }) => ({ list, })) class Center extends PureComponent { rende...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Account/Settings/NotificationView.js
client/src/pages/Account/Settings/NotificationView.js
import React, { Component, Fragment } from 'react'; import { formatMessage } from 'umi/locale'; import { Switch, List } from 'antd'; class NotificationView extends Component { getData = () => { const Action = ( <Switch checkedChildren={formatMessage({ id: 'app.settings.open' })} unCheckedCh...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Account/Settings/GeographicView.js
client/src/pages/Account/Settings/GeographicView.js
import React, { PureComponent } from 'react'; import { Select, Spin } from 'antd'; import { connect } from 'dva'; import styles from './GeographicView.less'; const { Option } = Select; const nullSlectItem = { label: '', key: '', }; @connect(({ geographic }) => { const { province, isLoading, city } = geographic...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Account/Settings/BindingView.js
client/src/pages/Account/Settings/BindingView.js
import React, { Component, Fragment } from 'react'; import { formatMessage, FormattedMessage } from 'umi/locale'; import { Icon, List } from 'antd'; class BindingView extends Component { getData = () => [ { title: formatMessage({ id: 'app.settings.binding.taobao' }, {}), description: formatMessage({ ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Account/Settings/BaseView.js
client/src/pages/Account/Settings/BaseView.js
import React, { Component, Fragment } from 'react'; import { formatMessage, FormattedMessage } from 'umi/locale'; import { Form, Input, Upload, Select, Button } from 'antd'; import { connect } from 'dva'; import styles from './BaseView.less'; import GeographicView from './GeographicView'; import PhoneView from './Phone...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Account/Settings/SecurityView.js
client/src/pages/Account/Settings/SecurityView.js
import React, { Component, Fragment } from 'react'; import { formatMessage, FormattedMessage } from 'umi/locale'; import { List } from 'antd'; // import { getTimeDistance } from '@/utils/utils'; const passwordStrength = { strong: ( <font className="strong"> <FormattedMessage id="app.settings.security.stron...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Account/Settings/PhoneView.js
client/src/pages/Account/Settings/PhoneView.js
import React, { Fragment, PureComponent } from 'react'; import { Input } from 'antd'; import styles from './PhoneView.less'; class PhoneView extends PureComponent { render() { const { value, onChange } = this.props; let values = ['', '']; if (value) { values = value.split('-'); } return ( ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Account/Settings/Info.js
client/src/pages/Account/Settings/Info.js
import React, { Component } from 'react'; import { connect } from 'dva'; import router from 'umi/router'; import { FormattedMessage } from 'umi/locale'; import { Menu } from 'antd'; import GridContent from '@/components/PageHeaderWrapper/GridContent'; import styles from './Info.less'; const { Item } = Menu; @connect(...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Account/Settings/models/geographic.js
client/src/pages/Account/Settings/models/geographic.js
import { queryProvince, queryCity } from '@/services/geographic'; export default { namespace: 'geographic', state: { province: [], city: [], isLoading: false, }, effects: { *fetchProvince(_, { call, put }) { yield put({ type: 'changeLoading', payload: true, }); ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Dashboard/DashboardPanel.js
client/src/pages/Dashboard/DashboardPanel.js
import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { Row, Col, Empty, Tooltip, Button, Modal, message } from 'antd'; import GGChart from '@/components/Visualization/GGChart'; import styles from './DashboardPanel.less'; const { confirm } = Modal; @connect(({ dashboard }) => ({ dashb...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Dashboard/index.js
client/src/pages/Dashboard/index.js
import React, { PureComponent } from 'react'; import { Row, Col } from 'antd'; import { connect } from 'dva'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import DashboardPanel from './DashboardPanel'; @connect(({ dashboard }) => ({ dashboard, })) class Dashboards extends PureComponent { compone...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Dashboard/models/dashboard.js
client/src/pages/Dashboard/models/dashboard.js
import { listDashboards, deleteDashboard } from '@/services/dashboard'; import { queryDataset, runDatasetQuery } from '@/services/dataset'; import convertDataset from '@/utils/dataset'; export default { namespace: 'dashboard', state: { dashboards: {}, maximize: undefined, }, effects: { *fetchAll(...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Configuration/EditableCell.js
client/src/pages/Configuration/EditableCell.js
import React from 'react'; import { Form, Input } from 'antd'; import styles from './Editable.less'; const FormItem = Form.Item; const EditableContext = React.createContext(); const EditableRow = ({ form, index, ...props }) => ( <EditableContext.Provider value={form}> <tr {...props} /> </EditableContext.Provi...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Configuration/ConfigTab.js
client/src/pages/Configuration/ConfigTab.js
import React, { PureComponent } from 'react'; import { Table } from 'antd'; import { EditableCell, EditableFormRow } from './EditableCell'; class ConfigTab extends PureComponent { render() { const { data, handleChange } = this.props; const handleSave = row => { handleChange(row); }; const bui...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Configuration/index.js
client/src/pages/Configuration/index.js
import React, { PureComponent } from 'react'; import { Row, Col, Tabs, Button, Tooltip, Modal } from 'antd'; import { connect } from 'dva'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import ConfigTab from './ConfigTab'; import styles from './index.less'; const { TabPane } = Tabs; const { confirm ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Configuration/models/config.js
client/src/pages/Configuration/models/config.js
import { listConfigs, getConfig, saveConfig } from '@/services/config'; export default { namespace: 'config', state: {}, effects: { *fetchAll(_, { call, put }) { const response = yield call(listConfigs); for (let i = 0; i < response.length; i += 1) { const domain = response[i]; ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Prediction/TimeSerial/index.js
client/src/pages/Prediction/TimeSerial/index.js
import React, { PureComponent } from 'react'; import { Row, Modal, Empty } from 'antd'; import { connect } from 'dva'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import MLJobTable from '@/components/Prediction/MLJobTable'; import MLJobControlPanel from '@/components/Prediction/MLJobControlPanel'; i...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Prediction/TimeSerial/models/timeserials.js
client/src/pages/Prediction/TimeSerial/models/timeserials.js
import { queryJobs, queryJob, createJob, deleteJob } from '@/services/automl'; import { queryDatasets, queryDataset } from '@/services/dataset'; import { getConfig } from '@/services/config'; export default { namespace: 'timeserials', state: { jobs: [], view: 'list', // 'create' | 'detail' | 'predict' | '...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Prediction/Categorical/index.js
client/src/pages/Prediction/Categorical/index.js
import React, { PureComponent } from 'react'; import { Row, Modal, Empty } from 'antd'; import { connect } from 'dva'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import MLJobTable from '@/components/Prediction/MLJobTable'; import MLJobControlPanel from '@/components/Prediction/MLJobControlPanel'; i...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Prediction/Categorical/models/classification.js
client/src/pages/Prediction/Categorical/models/classification.js
import { queryJobs, queryJob, createJob, deleteJob } from '@/services/automl'; import { queryDatasets, queryDataset } from '@/services/dataset'; import { getConfig } from '@/services/config'; export default { namespace: 'classification', state: { jobs: [], view: 'list', // 'create' | 'detail' | 'predict' ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Prediction/Numerical/index.js
client/src/pages/Prediction/Numerical/index.js
import React, { PureComponent } from 'react'; import { Row, Modal, Empty } from 'antd'; import { connect } from 'dva'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import MLJobTable from '@/components/Prediction/MLJobTable'; import MLJobControlPanel from '@/components/Prediction/MLJobControlPanel'; i...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Prediction/Numerical/models/regression.js
client/src/pages/Prediction/Numerical/models/regression.js
import { queryJobs, queryJob, createJob, deleteJob } from '@/services/automl'; import { queryDatasets, queryDataset } from '@/services/dataset'; import { getConfig } from '@/services/config'; export default { namespace: 'regression', state: { jobs: [], view: 'list', // 'create' | 'detail' | 'predict' | 'l...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/User/Register.js
client/src/pages/User/Register.js
import React, { Component } from 'react'; import { connect } from 'dva'; import { formatMessage, FormattedMessage } from 'umi/locale'; import Link from 'umi/link'; import router from 'umi/router'; import { Form, Input, Button, Select, Row, Col, Popover, Progress } from 'antd'; import styles from './Register.less'; con...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/User/RegisterResult.js
client/src/pages/User/RegisterResult.js
import React from 'react'; import { formatMessage, FormattedMessage } from 'umi/locale'; import { Button } from 'antd'; import Link from 'umi/link'; import Result from '@/components/Result'; import styles from './RegisterResult.less'; const actions = ( <div className={styles.actions}> <a href=""> <Button s...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/User/Login.js
client/src/pages/User/Login.js
import React, { Component } from 'react'; import { connect } from 'dva'; import { formatMessage, FormattedMessage } from 'umi/locale'; import Link from 'umi/link'; import { Checkbox, Alert, Icon } from 'antd'; import Login from '@/components/Login'; import styles from './Login.less'; const { Tab, UserName, Password, M...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/User/models/register.js
client/src/pages/User/models/register.js
import { fakeRegister } from '@/services/api'; import { setAuthority } from '@/utils/authority'; import { reloadAuthorized } from '@/utils/Authorized'; export default { namespace: 'register', state: { status: undefined, }, effects: { *submit({ payload }, { call, put }) { const response = yield ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Exception/TriggerException.js
client/src/pages/Exception/TriggerException.js
import React, { PureComponent } from 'react'; import { Button, Spin, Card } from 'antd'; import { connect } from 'dva'; import styles from './style.less'; @connect(state => ({ isloading: state.error.isloading, })) class TriggerException extends PureComponent { state = { isloading: false, }; triggerError =...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Exception/403.js
client/src/pages/Exception/403.js
import React from 'react'; import { formatMessage } from 'umi/locale'; import Link from 'umi/link'; import Exception from '@/components/Exception'; const Exception403 = () => ( <Exception type="403" desc={formatMessage({ id: 'app.exception.description.403' })} linkElement={Link} backText={formatMessa...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Exception/500.js
client/src/pages/Exception/500.js
import React from 'react'; import { formatMessage } from 'umi/locale'; import Link from 'umi/link'; import Exception from '@/components/Exception'; const Exception500 = () => ( <Exception type="500" desc={formatMessage({ id: 'app.exception.description.500' })} linkElement={Link} backText={formatMessa...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Exception/404.js
client/src/pages/Exception/404.js
import React from 'react'; import { formatMessage } from 'umi/locale'; import Link from 'umi/link'; import Exception from '@/components/Exception'; const Exception404 = () => ( <Exception type="404" desc={formatMessage({ id: 'app.exception.description.404' })} linkElement={Link} backText={formatMessa...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Exception/models/error.js
client/src/pages/Exception/models/error.js
import queryError from '@/services/error'; export default { namespace: 'error', state: { error: '', isloading: false, }, effects: { *query({ payload }, { call, put }) { yield call(queryError, payload.code); yield put({ type: 'trigger', payload: payload.code, }); ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Visualization/TD/index.js
client/src/pages/Visualization/TD/index.js
import React, { PureComponent } from 'react'; import { Row, Col, Form, Button, Tooltip, Modal, Input, message } from 'antd'; import { connect } from 'dva'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import DatasetListSelector from '@/components/Dataset/DatasetListSelector'; import ChartTypeSelect...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Visualization/TD/ChartTypeSelector.js
client/src/pages/Visualization/TD/ChartTypeSelector.js
import React, { PureComponent } from 'react'; import { Select, Icon } from 'antd'; import chartConfigs from '@/components/Visualization/ChartConfig'; const { Option } = Select; class ChartTypeSelector extends PureComponent { render() { const { handleChange, size, value } = this.props; const buildOption = ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Visualization/TD/ChartFeedPanel.js
client/src/pages/Visualization/TD/ChartFeedPanel.js
import React, { PureComponent } from 'react'; import { Select, Form } from 'antd'; import { connect } from 'dva'; import styles from './ChartFeedPanel.less'; import chartConfigs from '@/components/Visualization/ChartConfig'; const { Option } = Select; @connect(({ tchart }) => ({ tchart, })) class ChartFeedPanel ex...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Visualization/TD/VisualizationPanel.js
client/src/pages/Visualization/TD/VisualizationPanel.js
import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { Empty } from 'antd'; import GGChart from '@/components/Visualization/GGChart'; @connect(({ tchart }) => ({ tchart, })) class VisualizationPanel extends PureComponent { render() { const { tchart } = this.props; const { gra...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Visualization/TD/models/tchart.js
client/src/pages/Visualization/TD/models/tchart.js
import { queryDatasets, queryDataset } from '@/services/dataset'; import convertDataset from '@/utils/dataset'; export default { namespace: 'tchart', state: { list: [], grammar: {}, currentDataset: {}, chartType: null, feeds: {}, export: { visible: false, title: '', descr...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Visualization/GG/index.js
client/src/pages/Visualization/GG/index.js
import React, { PureComponent } from 'react'; import { Row, Col, Form, Button, Tooltip, Modal, Input, message } from 'antd'; import { connect } from 'dva'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import DatasetListSelector from '@/components/Dataset/DatasetListSelector'; import GrammarConfigPa...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Visualization/GG/VisualizationPanel.js
client/src/pages/Visualization/GG/VisualizationPanel.js
import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { Empty } from 'antd'; import GGChart from '@/components/Visualization/GGChart'; @connect(({ gchart }) => ({ gchart, })) class VisualizationPanel extends PureComponent { render() { const { gchart } = this.props; const { gra...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Visualization/GG/GrammarConfigPanel.js
client/src/pages/Visualization/GG/GrammarConfigPanel.js
import React, { PureComponent } from 'react'; import { Row, Select, Tabs, Form } from 'antd'; import { connect } from 'dva'; import GeomConfigPanel from './GeomConfigPanel'; import styles from './GrammarConfigPanel.less'; const { Option } = Select; const { TabPane } = Tabs; @connect(({ gchart }) => ({ gchart, })) ...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false
gangtao/dataplay3
https://github.com/gangtao/dataplay3/blob/59d41028e9fc1d64f5abc0ede93a4f8b9184854c/client/src/pages/Visualization/GG/GeomConfigPanel.js
client/src/pages/Visualization/GG/GeomConfigPanel.js
import React, { PureComponent } from 'react'; import { Select, Form } from 'antd'; import styles from './GeomConfigPanel.less'; const { Option } = Select; class GeomConfigPanel extends PureComponent { render() { const { geomKey, cols, handleUpdate, geomValues } = this.props; const fields = []; if (cols...
javascript
Apache-2.0
59d41028e9fc1d64f5abc0ede93a4f8b9184854c
2026-01-05T03:43:32.753216Z
false