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 |
|---|---|---|---|---|---|---|---|---|
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxFetch/js/routes/GetSetData.js | React.15/ReduxFetch/js/routes/GetSetData.js | 'use strict';
const fs = require('fs');
const rootDataPath = './data';
module.exports.getData = function(doneCallBack) {
const filePath = rootDataPath + '/basic.json';
const jsonReadCallBack = function(err, data){
if (err) doneCallBack('Data readFile error ' + filePath);
else {
const jsonData = JSO... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxFetch/ui-src/app.jsx | React.15/ReduxFetch/ui-src/app.jsx | 'use strict';
import './index.html';
import './css/index.css';
import './img/favicon.ico';
import React from 'react';
import ReactDom from 'react-dom';
import {Provider} from 'react-redux';
import AppCtrl from './components/app.ctrl';
import AppStore from './store/App.Store';
window.ReactDom = ReactDom;
ReactDom... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxFetch/ui-src/store/App.Store.js | React.15/ReduxFetch/ui-src/store/App.Store.js | import {createStore, applyMiddleware} from 'redux';
import thunkMiddleware from 'redux-thunk';
import {apiSetData} from './api.Actions';
function handleData(state = {data1: {}}, action) {
switch (action.type) {
case 'GOT_DATA': return Object.assign({}, state, {data1: action.payload});
default: return state;
... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxFetch/ui-src/store/api.Actions.js | React.15/ReduxFetch/ui-src/store/api.Actions.js | import 'whatwg-fetch';
let jsonHeader = {'Accept': 'application/json', 'Content-Type': 'application/json'};
export function apiSetData(data) {
return (dispatch) => {
fetch('/routes/setData', {method: 'POST', headers: jsonHeader, body: JSON.stringify(data)})
.then(() => {
fetch('/routes/getData')
... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxFetch/ui-src/components/app.notes.jsx | React.15/ReduxFetch/ui-src/components/app.notes.jsx | import React from 'react';
import AppText from './app.text';
const AppNotesSty = {
marginLeft: 'auto',
marginRight: 'auto',
marginTop: '30px',
maxWidth: '500px',
textIndent: '20px'
};
const textSty = {
color: '#FFF',
fontSize: '1.0em',
textAlign: 'left'
};
const btnDivSty = {textAlign: 'center'};
c... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxFetch/ui-src/components/app.text.js | React.15/ReduxFetch/ui-src/components/app.text.js | module.exports = {
p1Text: `
`
};
| javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxFetch/ui-src/components/app.ctrl.jsx | React.15/ReduxFetch/ui-src/components/app.ctrl.jsx | import React from 'react';
import {connect} from 'react-redux';
import AppNotes from './app.notes';
let AppCtrlSty = {
height: '100%',
padding: '0 10px 0 0'
};
function AppCtrl({Data1}) {
let data1 = Data1;
return (
<div id="AppCtrlSty" style={AppCtrlSty}>
React Version: {data1['React version']}<br... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/webpack.config.js | React.15/ReduxPages/webpack.config.js | const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const webpack = require('webpack');
const configJson = require('./webpack.config.json');
module.exports = (env) => {
const noMinimize = env.noMinimize;
var plugins = [];
plugins.push(new ExtractTextPlugin({filename:... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/js/server.js | React.15/ReduxPages/js/server.js | 'use strict';
const express = require('express');
const favicon = require('serve-favicon');
const path = require('path');
const port = Number(3500);
const app = express();
app.listen(port);
app.use('/', express.static('ui-dist'));
app.use(favicon(path.join(__dirname, '..', 'ui-dist', 'img', 'favicon.ico')));
app.get... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/app.jsx | React.15/ReduxPages/ui-src/app.jsx | 'use strict';
import './index.html';
import './css/index.css';
import './img/favicon.ico';
import React from 'react';
import ReactDom from 'react-dom';
import {Provider} from 'react-redux';
import AppCtrl from './components/app.ctrl';
import AppStore from './store/App.Store';
window.ReactDom = ReactDom;
ReactDom... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/store/App.Store.js | React.15/ReduxPages/ui-src/store/App.Store.js | import {createStore, combineReducers, applyMiddleware} from 'redux';
import createLogger from 'redux-logger';
import appState from './app/app.Reducer';
const reducer = combineReducers({appState});
let middleware = [];
const useLogger = 1;
const loggerMiddleware = createLogger();
if (useLogger) middleware.push(logger... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/store/app/app.actions.js | React.15/ReduxPages/ui-src/store/app/app.actions.js | export function appNavMenuAction(newPage) { return {type: 'AppNavMenuAction', newPage}; }
| javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/store/app/app.reducer.js | React.15/ReduxPages/ui-src/store/app/app.reducer.js |
const initialAppState = {
currentPage: 'home',
currentExample: '',
srcUrl: ''
};
export default function handleActions(state = initialAppState, action) {
let _appState = Object.assign({}, state);
switch (action.type) {
case 'AppNavMenuAction': _appState.currentPage = action.newPage; return _appState;
... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/components/app.ctrl.jsx | React.15/ReduxPages/ui-src/components/app.ctrl.jsx | import React from 'react';
import {connect} from 'react-redux';
import NavBar from './common/nav.bar';
import CachePage from './cache/cache.page';
import EventPage from './event/event.page';
import HomePage from './home/home.page';
import ObjectPage from './object/object.page';
import RadiumPage from './radium/radium... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/components/cache/cache.page.jsx | React.15/ReduxPages/ui-src/components/cache/cache.page.jsx | import React from 'react';
import Cache from '../../lib/cache';
let AboutPageSty = {
border: 'solid 1px darkslategrey',
height: 'calc(100% - 2px)',
overflow: 'hidden',
padding: '0px',
width: '100%'
};
export default class CachePage extends React.Component {
state = {constructorTime: new Date().toLocaleSt... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/components/object/object.page.jsx | React.15/ReduxPages/ui-src/components/object/object.page.jsx | import React from 'react';
import lodash from 'lodash';
let ObjectPageSty = {
height: '100%',
padding: '0 10px 0 0'
};
function windowPropsMap(prop) {
let propValue = window[prop];
if (lodash.isObject(propValue)) return (<div key={prop} />);
else if (lodash.isNull(propValue)) return (<div key={prop} />);
... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/components/home/home.page.jsx | React.15/ReduxPages/ui-src/components/home/home.page.jsx | import React from 'react';
import Cache from '../../lib/cache';
let HomePageSty = {
border: 'solid 1px darkslategrey',
height: 'calc(100% - 2px)',
overflow: 'hidden',
padding: '0px',
width: '100%'
};
export default class HomePage extends React.Component {
state = {constructorTime: new Date().toLocaleStri... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/components/common/app.style.jsx | React.15/ReduxPages/ui-src/components/common/app.style.jsx | const borderLight = 'rgba(228, 220, 224, 0.2)';
const borderDark = 'rgba(228, 220, 224, 0.3)';
const dropShadow = '0 1px 0px #000, 1px 0 0px #000, 1px 2px 1px #000, 2px 1px 1px #000, 2px 3px 2px #000';
const dropShadowCR = '0 1px 0px #555, 1px 0 0px #555, 1px 2px 1px #555, 2px 1px 1px #555, 2px 3px 2px #555';
const ba... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/components/common/app.colors.js | React.15/ReduxPages/ui-src/components/common/app.colors.js | module.exports = {
morning_sky: '#cae4db',
honey: '#dcae1d',
cerulean: '#00303f',
mist: '#7a9d96',
bluebell: '#155765',
olive: '#57652a',
ornate: '#ab9353',
plum: '#4d2c3d',
gold: '#cda34f',
daisy: '#e9e7da',
stem: '#636b46',
greenery: '#373f27',
aqua: '#6bbaa7',
sunshine: '#fba100',
la... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/components/common/nav.bar.jsx | React.15/ReduxPages/ui-src/components/common/nav.bar.jsx | import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {appNavMenuAction} from '../../store/app/app.Actions';
import AppColors from './app.colors';
let NavBarSty = {
background: AppColors.greenery,
lineHeight: '3em',
overflow: 'hidden',
padding: '0px',... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/components/radium/radium.page.jsx | React.15/ReduxPages/ui-src/components/radium/radium.page.jsx | import React from 'react';
import Radium from 'radium';
import Button from './button';
import ComputedWell from './computed-well';
import HoverMessage from './hover';
function TwoSquares() {
return (
<div>
<div key="one" style={[squareStyles.both, squareStyles.one]} />
<div key="two" style={[squareS... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/components/radium/hover.jsx | React.15/ReduxPages/ui-src/components/radium/hover.jsx | import React from 'react';
import Radium from 'radium';
class HoverMessage extends React.Component {
render() {
let buttonHover = Radium.getState(this.state, 'button', ':hover') ? (<span>{' '}Hovering yes!</span>) : null;
return (
<div>
<button key="button" style={{':hover': {}}}>Hover me!</but... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/components/radium/button.jsx | React.15/ReduxPages/ui-src/components/radium/button.jsx | import React from 'react';
import Radium from 'radium';
let styles = {
base: {
fontSize: 16,
backgroundColor: '#0074d9',
color: '#fff',
border: 0,
borderRadius: '0.3em',
padding: '0.4em 1em',
cursor: 'pointer',
outline: 'none',
'@media (min-width: 992px)': {
padding: '0.6em... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/components/radium/computed-well.jsx | React.15/ReduxPages/ui-src/components/radium/computed-well.jsx | import React from 'react';
import Radium from 'radium';
export default class ComputedWell extends React.Component {
constructor() {
super();
this.state = {dynamicBg: '#000'};
}
getStyles = () => {
return {
padding: '1em',
borderRadius: 5,
background: this.state.dynamicBg
};
}... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/components/event/event.page.jsx | React.15/ReduxPages/ui-src/components/event/event.page.jsx | import React from 'react';
let EventPageSty = {
height: '100%',
padding: '0 10px 0 0'
};
export default class EventPage extends React.Component {
state = {keyCode: 0};
componentDidMount = () => {
window.addEventListener('keydown', this.keyDownListener);
};
componentWillUnmount = () => {
window.rem... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxPages/ui-src/lib/cache.js | React.15/ReduxPages/ui-src/lib/cache.js | //Singleton test
let instance = null;
export default class Cache{
constructor() {
if (!instance) instance = this;
this.time = new Date();
return instance;
}
}
| javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxElectron/main.js | React.15/ReduxElectron/main.js | 'use strict';
const electron = require('electron');
const {app} = electron;
const {BrowserWindow} = electron;
var fs = require('fs');
const useDevTools = 0;
const {ipcMain} = electron;
require('./js/mainipc')(ipcMain);
var mainWindow = null;
app.on('window-all-closed', function() { app.quit(); });
app.on('ready',... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxElectron/webpack.config.js | React.15/ReduxElectron/webpack.config.js | const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const webpack = require('webpack');
const configJson = require('./webpack.config.json');
module.exports = (env) => {
const noMinimize = env.noMinimize;
var plugins = [];
plugins.push(new ExtractTextPlugin({filename:... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxElectron/js/mainipc.js | React.15/ReduxElectron/js/mainipc.js | 'use strict';
const fs = require('fs');
const rootDataPath = './data';
const getData = function(event, doneCallBack) {
const filePath = rootDataPath + '/basic.json';
const jsonReadCallBack = function(err, data){
if (err) doneCallBack('Data readFile error ' + filePath);
else {
const jsonData = JSON.... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxElectron/ui-src/app.jsx | React.15/ReduxElectron/ui-src/app.jsx | 'use strict';
import './index.html';
import './css/index.css';
import './img/favicon.ico';
import React from 'react';
import ReactDom from 'react-dom';
import {Provider} from 'react-redux';
import AppCtrl from './components/app.ctrl';
import AppStore from './store/App.Store';
window.ReactDom = ReactDom;
ReactDom... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxElectron/ui-src/store/Actions.js | React.15/ReduxElectron/ui-src/store/Actions.js | export function apiGetData() { return {type: 'ApiGetData'}; }
export function apiGotData(data) { return {type: 'ApiGotData', data}; }
export function apiSetData(data) { return {type: 'ApiSetData', data}; }
| javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxElectron/ui-src/store/App.Store.js | React.15/ReduxElectron/ui-src/store/App.Store.js | import {createStore, applyMiddleware} from 'redux';
import {apiSetData} from './Actions';
import startWs, {wsMiddleware} from './ipc.api';
function handleData(state = {data1: {}}, action) {
switch (action.type) {
case 'ApiGotData': return Object.assign({}, state, {data1: action.data});
default: return state;... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxElectron/ui-src/store/ipc.api.js | React.15/ReduxElectron/ui-src/store/ipc.api.js | import * as Actions from './Actions';
export function wsMiddleware() {
return (next) => (action) => {
if (ipc && action.type === 'ApiGetData') {
ipc.send('client:GetData', {});
} else if (ipc && action.type === 'ApiSetData') {
ipc.send('client:SetData', action.data);
}
return next(action... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxElectron/ui-src/components/app.notes.jsx | React.15/ReduxElectron/ui-src/components/app.notes.jsx | import React from 'react';
let AppNotesSty = {
marginLeft: 'auto',
marginRight: 'auto',
marginTop: '30px',
maxWidth: '500px',
textIndent: '20px'
};
let textSty = {
color: '#000',
fontSize: '1.0em',
textAlign: 'left'
};
let btnDivSty = {textAlign: 'center'};
let standardBtnSty = {
backgroundColor: ... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxElectron/ui-src/components/app.ctrl.jsx | React.15/ReduxElectron/ui-src/components/app.ctrl.jsx | import React from 'react';
import {connect} from 'react-redux';
import AppNotes from './app.notes';
let AppCtrlSty = {
height: '100%',
padding: '0 10px 0 0'
};
const AppCtrl = (props) => {
let data1 = props.Data1;
return (
<div id="AppCtrlSty" style={AppCtrlSty}>
React Version: {data1['React versio... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxSocketIO/webpack.config.js | React.15/ReduxSocketIO/webpack.config.js | const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const webpack = require('webpack');
const configJson = require('./webpack.config.json');
module.exports = (env) => {
const noMinimize = env.noMinimize;
var plugins = [];
plugins.push(new ExtractTextPlugin({filename:... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxSocketIO/js/mainsocket.js | React.15/ReduxSocketIO/js/mainsocket.js | 'use strict';
const getSetData = require('./socket/GetSetData');
module.exports = function(socket) {
console.log('Socket.io connection made.');
const getDataDone = function(data){
console.log('getDataDone');
socket.emit('server:GetDataDone', data);
};
const onGetData = function() {
console.log('o... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxSocketIO/js/server.js | React.15/ReduxSocketIO/js/server.js | 'use strict';
const express = require('express');
const app = express();
const server = require('http').Server(app);
const ioServer = require('socket.io')(server);
const favicon = require('serve-favicon');
const path = require('path');
const port = Number(3500);
server.listen(port);
const socketCallBack = function(... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxSocketIO/js/socket/GetSetData.js | React.15/ReduxSocketIO/js/socket/GetSetData.js | 'use strict';
const fs = require('fs');
const rootDataPath = './data';
module.exports.getData = function(doneCallBack) {
const filePath = rootDataPath + '/basic.json';
const jsonReadCallBack = function(err, data){
if (err) doneCallBack('Data readFile error ' + filePath);
else {
const jsonData = JSO... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxSocketIO/ui-src/app.jsx | React.15/ReduxSocketIO/ui-src/app.jsx | 'use strict';
import './index.html';
import './css/index.css';
import './img/favicon.ico';
import React from 'react';
import ReactDom from 'react-dom';
import {Provider} from 'react-redux';
import AppCtrl from './components/app.ctrl';
import AppStore from './store/App.Store';
window.ReactDom = ReactDom;
ReactDom... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxSocketIO/ui-src/store/ws.api.js | React.15/ReduxSocketIO/ui-src/store/ws.api.js | import * as Actions from './Actions';
var socket = null;
export function wsMiddleware() {
return (next) => (action) => {
if (socket && action.type === 'ApiGetData') {
console.log('ApiGetData');
socket.emit('client:GetData', {});
} else if (socket && action.type === 'ApiSetData') {
console.... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxSocketIO/ui-src/store/Actions.js | React.15/ReduxSocketIO/ui-src/store/Actions.js | export function apiGetData() { return {type: 'ApiGetData'}; }
export function apiGotData(data) { return {type: 'ApiGotData', data}; }
export function apiSetData(data) { return {type: 'ApiSetData', data}; }
| javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxSocketIO/ui-src/store/App.Store.js | React.15/ReduxSocketIO/ui-src/store/App.Store.js | import {createStore, applyMiddleware} from 'redux';
import startWs, {wsMiddleware} from './ws.api';
import {apiSetData} from './Actions';
function handleData(state = {data1: {}}, action) {
switch (action.type) {
case 'ApiGotData': return Object.assign({}, state, {data1: action.data});
default: return state;
... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxSocketIO/ui-src/components/app.notes.jsx | React.15/ReduxSocketIO/ui-src/components/app.notes.jsx | import React from 'react';
let AppNotesSty = {
marginLeft: 'auto',
marginRight: 'auto',
marginTop: '30px',
maxWidth: '500px',
textIndent: '20px'
};
let textSty = {
color: '#000',
fontSize: '1.0em',
textAlign: 'left'
};
let btnDivSty = {textAlign: 'center'};
let standardBtnSty = {
backgroundColor: ... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/ReduxSocketIO/ui-src/components/app.ctrl.jsx | React.15/ReduxSocketIO/ui-src/components/app.ctrl.jsx | import React from 'react';
import {connect} from 'react-redux';
import AppNotes from './app.notes';
let AppCtrlSty = {
height: '100%',
padding: '0 10px 0 0'
};
function AppCtrl({Data1}) {
let data1 = Data1;
return (
<div id="AppCtrlSty" style={AppCtrlSty}>
React Version: {data1['React version']}<br... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/BasicIsometric/webpack.config.js | React.15/BasicIsometric/webpack.config.js | const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const webpack = require('webpack');
const configJson = require('./webpack.config.json');
module.exports = (env) => {
const noMinimize = env.noMinimize;
var plugins = [];
plugins.push(new ExtractTextPlugin({filename:... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/BasicIsometric/js/server.js | React.15/BasicIsometric/js/server.js | 'use strict';
const express = require('express');
const favicon = require('serve-favicon');
const path = require('path');
const port = Number(3500);
const app = express();
app.listen(port);
// require('node-jsx').install();
const React = require('react');
const ReactDOMServer = require('react-dom/server');
require('... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/BasicIsometric/ui-src/app.jsx | React.15/BasicIsometric/ui-src/app.jsx | 'use strict';
import './css/index.css';
import './img/favicon.ico';
import React from 'react';
import ReactDom from 'react-dom';
import AppCtrl from './components/app.ctrl';
ReactDom.render(<AppCtrl />, document.getElementById('react'));
| javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/BasicIsometric/ui-src/appiso.js | React.15/BasicIsometric/ui-src/appiso.js | 'use strict';
import AppCtrl from './components/app.ctrl';
exports.AppCtrl = AppCtrl
| javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/BasicIsometric/ui-src/components/app.ctrl.jsx | React.15/BasicIsometric/ui-src/components/app.ctrl.jsx | import React from 'react';
let AppCtrlSty = {
height: '100%',
padding: '0 10px 0 0'
};
export default class AppCtrl extends React.Component {
state = {world: ''};
componentDidMount = () => { this.sayHello(); };
sayHello = () => { this.setState({world: 'Hello World'}); };
render() {
return (
<div... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/GoogleMaps/webpack.config.js | React.15/GoogleMaps/webpack.config.js | const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const webpack = require('webpack');
const configJson = require('./webpack.config.json');
module.exports = (env) => {
const noMinimize = env.noMinimize;
var plugins = [];
plugins.push(new ExtractTextPlugin({filename:... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/GoogleMaps/js/server.js | React.15/GoogleMaps/js/server.js | 'use strict';
const express = require('express');
const app = express();
const server = require('http').Server(app);
const fs = require('fs');
const path = require('path');
const port = Number(process.env.GOOGLEMAPSPORT || 3500);
server.listen(port);
const favicon = require('serve-favicon');
app.use(favicon(path.j... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/GoogleMaps/ui-src/app.jsx | React.15/GoogleMaps/ui-src/app.jsx | 'use strict';
import './index.html';
import './css/Draft.css';
import './css/index.css';
import './img/favicon.ico';
import React from 'react';
import ReactDom from 'react-dom';
import {Provider} from 'react-redux';
import AppCtrl from './components/app.ctrl';
import AppStore from './store/App.Store';
window.Reac... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/GoogleMaps/ui-src/store/App.Store.js | React.15/GoogleMaps/ui-src/store/App.Store.js | import {createStore, combineReducers, applyMiddleware} from 'redux';
import logger from 'redux-logger';
import appState from './app/app.Reducer';
import mapState from './map/map.Reducer';
const reducer = combineReducers({appState, mapState});
let middleware = [];
const useLogger = 0;
if (useLogger) middleware.push(l... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/GoogleMaps/ui-src/store/app/app.actions.js | React.15/GoogleMaps/ui-src/store/app/app.actions.js |
export function appNavMenuAction(newPage) {
return {type: 'AppNavMenuAction', newPage};
}
| javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/GoogleMaps/ui-src/store/app/app.reducer.js | React.15/GoogleMaps/ui-src/store/app/app.reducer.js | const pages = ['dashboard'];
const initialAppState = {
currentPage: pages[0],
};
export default function handleActions(state = initialAppState, action) {
let _appState = Object.assign({}, state);
switch (action.type) {
case 'AppNavMenuAction':
_appState.currentPage = action.newPage;
return _appSt... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/GoogleMaps/ui-src/store/map/map.actions.js | React.15/GoogleMaps/ui-src/store/map/map.actions.js |
export function mapChangeZoomAction(newZoom) {
return {type: 'MapChangeZoomAction', newZoom};
}
export function mapChangeCenterAction(newCenter) {
return {type: 'MapChangeCenterAction', newCenter};
}
export function mapInitializedAction() {
return {type: 'MapInitializedAction'};
}
| javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/GoogleMaps/ui-src/store/map/map.reducer.js | React.15/GoogleMaps/ui-src/store/map/map.reducer.js | const initialMapState = {
mapZoom: 3,
mapCenter: {lat: 38.0000, lng: -97.0000},
mapInitialized: false
};
export default function handleActions(state = initialMapState, action) {
let _mapState = Object.assign({}, state);
switch (action.type) {
case 'MapChangeZoomAction':
_mapState.mapZoom = action.n... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/GoogleMaps/ui-src/components/app.ctrl.jsx | React.15/GoogleMaps/ui-src/components/app.ctrl.jsx | import React from 'react';
import {connect} from 'react-redux';
import NavBar from './common/nav1.bar';
import DashboardPage from './dashboard/dashboard.page';
let AppCtrlSty = {
height: '100%',
overflow: 'hidden',
padding: '0px',
width: '100%'
};
let allPageSty = {
height: '100%',
margin: '0px',
over... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/GoogleMaps/ui-src/components/common/app.style.jsx | React.15/GoogleMaps/ui-src/components/common/app.style.jsx | import AppColors from './app.colors';
const borderLight = 'rgba(228, 220, 224, 0.2)';
const borderDark = 'rgba(228, 220, 224, 0.3)';
const dropShadow = '0 1px 0px #000, 1px 0 0px #000, 1px 2px 1px #000, 2px 1px 1px #000, 2px 3px 2px #000';
const dropShadowCR = '0 1px 0px #555, 1px 0 0px #555, 1px 2px 1px #555, 2px 1p... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/GoogleMaps/ui-src/components/common/nav1.bar.jsx | React.15/GoogleMaps/ui-src/components/common/nav1.bar.jsx | import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {appNavMenuAction} from '../../store/app/app.actions';
import AppColors from './app.colors';
let NavBarSty = {
background: AppColors.siWhiteWhite,
lineHeight: '3.2em',
overflow: 'hidden',
padding: ... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/GoogleMaps/ui-src/components/common/app.colors.js | React.15/GoogleMaps/ui-src/components/common/app.colors.js | module.exports = {
morning_sky: '#cae4db',
honey: '#dcae1d',
cerulean: '#00303f',
mist: '#7a9d96',
bluebell: '#155765',
olive: '#57652a',
ornate: '#ab9353',
plum: '#4d2c3d',
gold: '#cda34f',
daisy: '#e9e7da',
stem: '#636b46',
greenery: '#373f27',
aqua: '#6bbaa7',
sunshine: '#fba100',
la... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/GoogleMaps/ui-src/components/dashboard/dashboard.page.jsx | React.15/GoogleMaps/ui-src/components/dashboard/dashboard.page.jsx | import React from 'react';
import MapCtrl from './map.ctrl';
const DashboardPageSty = {
border: 'solid 1px darkslategrey',
height: 'calc(100% - 2px)',
overflow: 'hidden',
padding: '0px',
width: '100%'
};
export default class DashboardPage extends React.Component {
render() {
if (this.props.hide) retu... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/GoogleMaps/ui-src/components/dashboard/mapStyle.js | React.15/GoogleMaps/ui-src/components/dashboard/mapStyle.js | export const mapStyle = [
{elementType: 'geometry', stylers: [{color: '#eeffee'}]},
{elementType: 'labels.text.stroke', stylers: [{color: '#242f3e'}]},
{elementType: 'labels.text.fill', stylers: [{color: '#746855'}]},
{
featureType: 'administrative.locality',
elementType: 'labels.text.fill',
stylers... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
jmarkstevens/ReactPatterns | https://github.com/jmarkstevens/ReactPatterns/blob/3a0e40f4d562155163bcac98d9555c1f2bba8f1b/React.15/GoogleMaps/ui-src/components/dashboard/map.ctrl.jsx | React.15/GoogleMaps/ui-src/components/dashboard/map.ctrl.jsx | import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {mapStyle} from './mapStyle';
import {mapChangeCenterAction, mapChangeZoomAction, mapInitializedAction} from '../../store/map/map.actions';
const GoogleMapsPageSty = {
border: 'solid 1px darkslategrey',... | javascript | MIT | 3a0e40f4d562155163bcac98d9555c1f2bba8f1b | 2026-01-05T03:37:10.439891Z | false |
greybax/cyrillic-to-translit-js | https://github.com/greybax/cyrillic-to-translit-js/blob/9bd363010c2c9c75f8d35d5dcb04f1ae42503eb4/CyrillicToTranslit.js | CyrillicToTranslit.js | 'use strict';
module.exports = function cyrillicToTranslit(config) {
const invert = require('lodash.invert');
const _preset = config ? config.preset : "ru";
/*
ASSOCIATIONS FOR INITIAL POSITION
*/
// letters shared between languages
const _firstLetters = {
"а": "a",
"б": "b",
"в": "v",
... | javascript | MIT | 9bd363010c2c9c75f8d35d5dcb04f1ae42503eb4 | 2026-01-05T03:37:14.536041Z | false |
greybax/cyrillic-to-translit-js | https://github.com/greybax/cyrillic-to-translit-js/blob/9bd363010c2c9c75f8d35d5dcb04f1ae42503eb4/test/mn.test.js | test/mn.test.js | "use strict"
const assert = require("assert");
const CyrillicToTranslit = require("../CyrillicToTranslit");
describe("mn", () => {
it("test ө ү й", () => {
const c2t = new CyrillicToTranslit({ preset: "mn" });
assert.equal(c2t.transform("хөөрөг"), "khoorog");
assert.equal(c2t.transform("гуталын"), "gut... | javascript | MIT | 9bd363010c2c9c75f8d35d5dcb04f1ae42503eb4 | 2026-01-05T03:37:14.536041Z | false |
greybax/cyrillic-to-translit-js | https://github.com/greybax/cyrillic-to-translit-js/blob/9bd363010c2c9c75f8d35d5dcb04f1ae42503eb4/test/test.js | test/test.js | 'use strict';
var cyrillicToTranslit = require('..');
var assert = require('assert');
var should = require('should');
describe('cyrillicToTranslit', () => {
it('cyrillicToTranslit should return an object with 1 public method transform', () => {
var c2t = cyrillicToTranslit();
c2t.should.be.a.Object();
c... | javascript | MIT | 9bd363010c2c9c75f8d35d5dcb04f1ae42503eb4 | 2026-01-05T03:37:14.536041Z | false |
greybax/cyrillic-to-translit-js | https://github.com/greybax/cyrillic-to-translit-js/blob/9bd363010c2c9c75f8d35d5dcb04f1ae42503eb4/test/uk.test.js | test/uk.test.js | "use strict"
const assert = require("assert");
const CyrillicToTranslit = require("..");
describe("uk", () => {
it("matches https://pasport.org.ua/vazhlivo/transliteratsiya", () => {
const c2t = new CyrillicToTranslit({ preset: "uk" });
assert.equal(c2t.transform("алушта"), "alushta");
assert.equal(c2t... | javascript | MIT | 9bd363010c2c9c75f8d35d5dcb04f1ae42503eb4 | 2026-01-05T03:37:14.536041Z | false |
greybax/cyrillic-to-translit-js | https://github.com/greybax/cyrillic-to-translit-js/blob/9bd363010c2c9c75f8d35d5dcb04f1ae42503eb4/dist/bundle.js | dist/bundle.js | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.cyrillicToTran... | javascript | MIT | 9bd363010c2c9c75f8d35d5dcb04f1ae42503eb4 | 2026-01-05T03:37:14.536041Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/ember-cli-build.js | ember-cli-build.js | 'use strict';
/* eslint-env node */
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function(defaults) {
var app = new EmberAddon(defaults, {
eslint: {
testGenerator: 'mocha',
},
});
/*
This build file specifies the options for the dummy test app of this
... | javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/.eslintrc.js | .eslintrc.js | module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module'
},
plugins: [
'ember'
],
extends: [
'eslint:recommended',
'plugin:ember/recommended'
],
env: {
browser: true
},
rules: {
},
overrides: [
// node files
{
files: [
... | javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/index.js | index.js | 'use strict';
/* eslint-env node */
var path = require('path');
module.exports = {
name: 'ember-cli-mocha',
init() {
this._super.init && this._super.init.apply(this, arguments);
this.ui.writeDeprecateLine('ember-cli-mocha is deprecated, please migrate to depend on ember-mocha directly');
},
conten... | javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/testem.js | testem.js | 'use strict';
/* eslint-env node */
module.exports = {
"test_page": "tests/index.html?hidepassed",
"disable_watching": true,
"launch_in_ci": [
"Chrome",
],
"launch_in_dev": [
"Chrome",
],
"browser_args": {
"Chrome": {
mode: 'ci',
args: [
// --no-sandbox is needed when run... | javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/tests/test-helper.js | tests/test-helper.js | import resolver from './helpers/resolver';
import { setResolver } from 'ember-mocha';
setResolver(resolver);
| javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/tests/.eslintrc.js | tests/.eslintrc.js | module.exports = {
env: {
'embertest': true
}
};
| javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/tests/helpers/resolver.js | tests/helpers/resolver.js | import Resolver from '../../resolver';
import config from '../../config/environment';
const resolver = Resolver.create();
resolver.namespace = {
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix
};
export default resolver;
| javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/tests/helpers/start-app.js | tests/helpers/start-app.js | import { merge } from '@ember/polyfills';
import { run } from '@ember/runloop';
import Application from '../../app';
import config from '../../config/environment';
export default function startApp(attrs) {
let attributes = merge({}, config.APP);
attributes = merge(attributes, attrs); // use defaults, but you can ... | javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/tests/helpers/destroy-app.js | tests/helpers/destroy-app.js | import { run } from '@ember/runloop';
export default function destroyApp(application) {
run(application, 'destroy');
}
| javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/tests/dummy/app/router.js | tests/dummy/app/router.js | import EmberRouter from '@ember/routing/router';
import config from './config/environment';
const Router = EmberRouter.extend({
location: config.locationType,
rootURL: config.rootURL
});
Router.map(function() {
});
export default Router;
| javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/tests/dummy/app/resolver.js | tests/dummy/app/resolver.js | import Resolver from 'ember-resolver';
export default Resolver;
| javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/tests/dummy/app/app.js | tests/dummy/app/app.js | import Application from '@ember/application';
import Resolver from './resolver';
import loadInitializers from 'ember-load-initializers';
import config from './config/environment';
let App = Application.extend({
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix,
Resolver
});
loadInitiali... | javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/tests/dummy/config/environment.js | tests/dummy/config/environment.js | 'use strict';
/* eslint-env node */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'dummy',
environment: environment,
rootURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g... | javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/blueprints/ember-cli-mocha/index.js | blueprints/ember-cli-mocha/index.js | module.exports = {
name: 'ember-cli-mocha',
normalizeEntityName: function() {
// this prevents an error when the entityName is
// not specified (since that doesn't actually matter
// to us
},
afterInstall: function() {
var addonContext = this;
return addonContext.addPackageToProject('embe... | javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/blueprints/ember-cli-mocha/files/tests/test-helper.js | blueprints/ember-cli-mocha/files/tests/test-helper.js | import resolver from './helpers/resolver';
import { setResolver } from 'ember-mocha';
setResolver(resolver);
| javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/blueprints/ember-cli-mocha/files/tests/helpers/resolver.js | blueprints/ember-cli-mocha/files/tests/helpers/resolver.js | import Resolver from '../../resolver';
import config from '../../config/environment';
const resolver = Resolver.create();
resolver.namespace = {
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix
};
export default resolver;
| javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/blueprints/ember-cli-mocha/files/tests/helpers/start-app.js | blueprints/ember-cli-mocha/files/tests/helpers/start-app.js | import Application from '../../app';
import config from '../../config/environment';
import { merge } from '@ember/polyfills';
import { run } from '@ember/runloop';
export default function startApp(attrs) {
let attributes = merge({}, config.APP);
attributes.autoboot = true;
attributes = merge(attributes, attrs); ... | javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/blueprints/ember-cli-mocha/files/tests/helpers/destroy-app.js | blueprints/ember-cli-mocha/files/tests/helpers/destroy-app.js | import { run } from '@ember/runloop';
export default function destroyApp(application) {
run(application, 'destroy');
}
| javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/config/environment.js | config/environment.js | 'use strict';
/* eslint-env node */
module.exports = function(/* environment, appConfig */) {
return { };
};
| javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
ember-cli/ember-cli-mocha | https://github.com/ember-cli/ember-cli-mocha/blob/bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be/config/ember-try.js | config/ember-try.js | 'use strict';
/* eslint-env node */
module.exports = {
useYarn: true,
scenarios: [
{
name: 'ember-lts-2.4',
bower: {
dependencies: {
'ember': 'components/ember#lts-2-4'
},
resolutions: {
'ember': 'lts-2-4'
}
},
npm: {
devDepen... | javascript | Apache-2.0 | bdb5d8d5ac50ecb8d38101caff3e63a6040cc6be | 2026-01-05T03:37:18.139975Z | false |
RostiMelk/ACF-Tools | https://github.com/RostiMelk/ACF-Tools/blob/ac08b18259cb8bbb9d549057c4e3e56c41bfb70a/src/scripts/i18n.js | src/scripts/i18n.js | function LocalizeStrings() {
//Localize by replacing __MSG_***__ meta tags
var objects = document.querySelectorAll("#acftoolsCodeModal, #acfToolsUserSettingsPopup");
for (var j = 0; j < objects.length; j++) {
var obj = objects[j];
var valStrH = obj.innerHTML.toString();
var valNewH ... | javascript | MIT | ac08b18259cb8bbb9d549057c4e3e56c41bfb70a | 2026-01-05T03:37:19.172217Z | false |
RostiMelk/ACF-Tools | https://github.com/RostiMelk/ACF-Tools/blob/ac08b18259cb8bbb9d549057c4e3e56c41bfb70a/src/scripts/fields.js | src/scripts/fields.js | function acf_field(appendCode, fieldName, typeOfField, returnType, seniority, place, subFields, ifStatement, ifStatementAllow, s) {
switch (typeOfField) {
// Basic
case "text":
var fieldCode = "<?php echo esc_html( $" + fieldName + " ); ?>";
break;
case "textarea":
var fieldCode = "<?php echo $" + fiel... | javascript | MIT | ac08b18259cb8bbb9d549057c4e3e56c41bfb70a | 2026-01-05T03:37:19.172217Z | false |
RostiMelk/ACF-Tools | https://github.com/RostiMelk/ACF-Tools/blob/ac08b18259cb8bbb9d549057c4e3e56c41bfb70a/src/scripts/app.js | src/scripts/app.js | $(document).ready(function() {
copyFieldName();
openDocs();
copyFieldCode();
appendCopyCodeBtns();
appendFieldNameOnEdit();
setDefaultUserSettings();
});
// Running some functions again when edits are made
$("body").on('mouseup', function() {
setTimeout(function() {
copyFieldName();
openDocs();
}, 100);
})... | javascript | MIT | ac08b18259cb8bbb9d549057c4e3e56c41bfb70a | 2026-01-05T03:37:19.172217Z | false |
RostiMelk/ACF-Tools | https://github.com/RostiMelk/ACF-Tools/blob/ac08b18259cb8bbb9d549057c4e3e56c41bfb70a/src/scripts/popup.js | src/scripts/popup.js | ready = (callback) => {
if (document.readyState != "loading") callback();
else document.addEventListener("DOMContentLoaded", callback);
}
ready(() => {
var settingsKey = "acf_tools_settings";
//Get strings
LocalizeStrings();
// Add animations after the popup is visible so we don't get that animate... | javascript | MIT | ac08b18259cb8bbb9d549057c4e3e56c41bfb70a | 2026-01-05T03:37:19.172217Z | false |
RostiMelk/ACF-Tools | https://github.com/RostiMelk/ACF-Tools/blob/ac08b18259cb8bbb9d549057c4e3e56c41bfb70a/src/scripts/misc.js | src/scripts/misc.js | function copyMessage(message) {
$(".acftools-message").remove();
var dismissBtn = '<button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>';
$("body").append('<div class="acftools-message notice notice-success is-dismissible"><p>'+message+'</p>'+dismissBtn+'... | javascript | MIT | ac08b18259cb8bbb9d549057c4e3e56c41bfb70a | 2026-01-05T03:37:19.172217Z | false |
RostiMelk/ACF-Tools | https://github.com/RostiMelk/ACF-Tools/blob/ac08b18259cb8bbb9d549057c4e3e56c41bfb70a/src/scripts/user-settings.js | src/scripts/user-settings.js | function setDefaultUserSettings() {
settingsKey = "acf_tools_settings",
userSettings = JSON.stringify({
'ifStatement': true,
'spacing': 'tab',
});
var settings = {};
settings[settingsKey] = userSettings;
chrome.storage.sync.get(settingsKey, function(data) {
if (typeof... | javascript | MIT | ac08b18259cb8bbb9d549057c4e3e56c41bfb70a | 2026-01-05T03:37:19.172217Z | false |
RostiMelk/ACF-Tools | https://github.com/RostiMelk/ACF-Tools/blob/ac08b18259cb8bbb9d549057c4e3e56c41bfb70a/src/lib/highlight.pack.js | src/lib/highlight.pack.js | /*
Highlight.js 10.0.1 (33af2ea5)
License: BSD-3-Clause
Copyright (c) 2006-2020, Ivan Sagalaev
*/
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).hljs=n()}(this,(function(){"use strict";function e(n){Object.freeze(n... | javascript | MIT | ac08b18259cb8bbb9d549057c4e3e56c41bfb70a | 2026-01-05T03:37:19.172217Z | false |
RostiMelk/ACF-Tools | https://github.com/RostiMelk/ACF-Tools/blob/ac08b18259cb8bbb9d549057c4e3e56c41bfb70a/src/lib/jquery-3.5.0.min.js | src/lib/jquery-3.5.0.min.js | /*! jQuery v3.5.0 | (c) JS Foundation and other contributors | jquery.org/license */
| javascript | MIT | ac08b18259cb8bbb9d549057c4e3e56c41bfb70a | 2026-01-05T03:37:19.172217Z | true |
strapi-community/plugin-rest-cache | https://github.com/strapi-community/plugin-rest-cache/blob/b3a0ca3fb0443bdf6643b9aaf32f9dc1deca9f44/playgrounds/redis/jest.config.js | playgrounds/redis/jest.config.js | "use strict";
module.exports = async () => ({
preset: 'ts-jest',
verbose: true,
"transform": {
"^.+\\.[tj]s$": ["ts-jest", {
"tsconfig": {
"allowJs": true
}
}]
},
"transformIgnorePatterns": [
"node_modules/(?!quick-lru)"
],
});
| javascript | MIT | b3a0ca3fb0443bdf6643b9aaf32f9dc1deca9f44 | 2026-01-05T03:37:20.067104Z | false |
strapi-community/plugin-rest-cache | https://github.com/strapi-community/plugin-rest-cache/blob/b3a0ca3fb0443bdf6643b9aaf32f9dc1deca9f44/playgrounds/redis/config/plugins.js | playgrounds/redis/config/plugins.js | "use strict";
module.exports = ({ env }) => ({
redis: {
config: {
debug: true,
connections: {
default: {
connection: {
host: "127.0.0.1",
port: 6379,
db: 0,
},
settings: {
debug: false,
cluster: false,
... | javascript | MIT | b3a0ca3fb0443bdf6643b9aaf32f9dc1deca9f44 | 2026-01-05T03:37:20.067104Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.