moving react selectize to single folder and updating readme with notes

This commit is contained in:
Alex Windett 2017-01-05 11:29:44 +00:00
parent e623ea6115
commit dcdbb114d8
25 changed files with 4321 additions and 87 deletions

12
.idea/joyent.iml Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptLibraryMappings">
<includedPredefinedLibrary name="ECMAScript 6" />
</component>
</project>

6
.idea/misc.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="JSX" />
</component>
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/joyent.iml" filepath="$PROJECT_DIR$/.idea/joyent.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

654
.idea/workspace.xml Normal file
View File

@ -0,0 +1,654 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="eb27bd0c-b433-49e2-827e-5a1ed5b60249" name="Default" comment="">
<change type="DELETED" beforePath="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/.babelrc" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/package.json" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/readme.md" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/actions.js" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/index.js" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/root.js" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/search.js" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/store.js" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/static/.gitignore" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/static/index.html" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/webpack/base.js" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/webpack/index.js" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/yarn.lock" afterPath="" />
</list>
<ignored path="$PROJECT_DIR$/.tmp/" />
<ignored path="$PROJECT_DIR$/temp/" />
<ignored path="$PROJECT_DIR$/tmp/" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ChangesViewManager" flattened_view="false" />
<component name="CreatePatchCommitExecutor">
<option name="PATCH_PATH" value="" />
</component>
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="search-single.js" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/search-single.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1143">
<caret line="86" column="17" lean-forward="false" selection-start-line="86" selection-start-column="17" selection-end-line="89" selection-end-column="2" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="search.js" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/search.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="210">
<caret line="14" column="23" lean-forward="true" selection-start-line="14" selection-start-column="23" selection-end-line="14" selection-end-column="23" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="root.js" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/root.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="135">
<caret line="9" column="10" lean-forward="true" selection-start-line="9" selection-start-column="10" selection-end-line="9" selection-end-column="10" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="search-multi.js" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/search-multi.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="553">
<caret line="71" column="42" lean-forward="false" selection-start-line="71" selection-start-column="42" selection-end-line="71" selection-end-column="42" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="readme.md" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/readme.md">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="75">
<caret line="5" column="21" lean-forward="false" selection-start-line="5" selection-start-column="21" selection-end-line="5" selection-end-column="21" />
<folding />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="JavaScript File" />
</list>
</option>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/actions.js" />
<option value="$PROJECT_DIR$/frontend/src/containers/header/index.js" />
<option value="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize-multi/static/index.html" />
<option value="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize-multi/src/search.js" />
<option value="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize-stateless/src/search.js" />
<option value="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize-multi/src/search1.js" />
<option value="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize-multi/src/root.js" />
<option value="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/root.js" />
<option value="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/search.js" />
<option value="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/search-multi.js" />
<option value="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/readme.md" />
</list>
</option>
</component>
<component name="JsBowerSettings">
<exe-path>/usr/local/bin/bower</exe-path>
<config-path />
</component>
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER">
<package-json value="$PROJECT_DIR$/package.json" />
</component>
<component name="JsFlowSettings">
<service-enabled>false</service-enabled>
<exe-path />
<annotation-enable>false</annotation-enable>
<other-services-enabled>false</other-services-enabled>
</component>
<component name="JsGulpfileManager">
<detection-done>true</detection-done>
<sorting>DEFINITION_ORDER</sorting>
</component>
<component name="NodeModulesDirectoryManager">
<handled-path value="$PROJECT_DIR$/cloudapi-graphql/node_modules" />
<handled-path value="$PROJECT_DIR$/frontend/node_modules" />
<handled-path value="$PROJECT_DIR$/node_modules" />
<handled-path value="$PROJECT_DIR$/spikes/auth/bell/node_modules" />
<handled-path value="$PROJECT_DIR$/spikes/fuzzy-search/fuzzy-search-filter/node_modules" />
<handled-path value="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize-stateless/node_modules" />
<handled-path value="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/node_modules" />
<handled-path value="$PROJECT_DIR$/spikes/graphs-fe/chartjs/node_modules" />
<handled-path value="$PROJECT_DIR$/spikes/graphs-fe/plotly/node_modules" />
<handled-path value="$PROJECT_DIR$/spikes/graphs-matrix/chartjs-whiskers/node_modules" />
<handled-path value="$PROJECT_DIR$/spikes/graphs-matrix/chartjs/node_modules" />
<handled-path value="$PROJECT_DIR$/spikes/list/react-infinite/node_modules" />
<handled-path value="$PROJECT_DIR$/spikes/lists/node_modules" />
<handled-path value="$PROJECT_DIR$/ui/docs/node_modules" />
<handled-path value="$PROJECT_DIR$/ui/docs/webpack/embed-markdown-loader/node_modules" />
<handled-path value="$PROJECT_DIR$/ui/node_modules" />
<handled-path value="$PROJECT_DIR$/ui/webpack/embed-markdown-loader/node_modules" />
</component>
<component name="ProjectFrameBounds">
<option name="x" value="1280" />
<option name="y" value="23" />
<option name="width" value="1280" />
<option name="height" value="1413" />
</component>
<component name="ProjectLevelVcsManager">
<ConfirmationsSetting value="1" id="Add" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
<flattenPackages />
<showMembers />
<showModules />
<showLibraryContents />
<hideEmptyPackages />
<abbreviatePackageNames />
<autoscrollToSource />
<autoscrollFromSource />
<sortByType />
<manualOrder />
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scratches" />
<pane id="ProjectPane">
<subPane>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="joyent" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="joyent" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="joyent" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="joyent" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="spikes" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="joyent" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="joyent" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="spikes" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="fuzzy-search" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="joyent" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="joyent" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="spikes" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="fuzzy-search" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="react-selectize" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
</subPane>
</pane>
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="nodejs_interpreter_path" value="/usr/local/bin/node" />
<property name="js.eslint.eslintPackage" value="/usr/local/lib/node_modules/eslint" />
<property name="HbShouldOpenHtmlAsHb" value="" />
<property name="js-jscs-nodeInterpreter" value="/usr/local/bin/node" />
<property name="settings.editor.selected.configurable" value="preferences.sourceCode" />
<property name="JavaScriptPreferStrict" value="false" />
<property name="JavaScriptWeakerCompletionTypeGuess" value="true" />
</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize-stateless" />
<recent name="$PROJECT_DIR$/spikes/fuzzy-search/react-selectize-multi" />
</key>
</component>
<component name="RunManager">
<configuration default="true" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application">
<method />
</configuration>
<configuration default="true" type="DartTestRunConfigurationType" factoryName="Dart Test">
<method />
</configuration>
<configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma">
<config-file value="" />
<node-interpreter value="project" />
<envs />
<method />
</configuration>
<configuration default="true" type="JavaScriptTestRunnerProtractor" factoryName="Protractor">
<config-file value="" />
<node-interpreter value="project" />
<envs />
<method />
</configuration>
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
<method />
</configuration>
<configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="project" working-dir="">
<method />
</configuration>
<configuration default="true" type="cucumber.js" factoryName="Cucumber.js">
<option name="cucumberJsArguments" value="" />
<option name="executablePath" />
<option name="filePath" />
<method />
</configuration>
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
<node-interpreter>project</node-interpreter>
<node-options />
<gulpfile />
<tasks />
<arguments />
<envs />
<method />
</configuration>
<configuration default="true" type="js.build_tools.npm" factoryName="npm">
<command value="run" />
<scripts />
<node-interpreter value="project" />
<envs />
<method />
</configuration>
<configuration default="true" type="mocha-javascript-test-runner" factoryName="Mocha">
<node-interpreter>project</node-interpreter>
<node-options />
<working-directory />
<pass-parent-env>true</pass-parent-env>
<envs />
<ui />
<extra-mocha-options />
<test-kind>DIRECTORY</test-kind>
<test-directory />
<recursive>false</recursive>
<method />
</configuration>
</component>
<component name="ShelveChangesManager" show_recycled="false">
<option name="remove_strategy" value="false" />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="eb27bd0c-b433-49e2-827e-5a1ed5b60249" name="Default" comment="" />
<created>1483537783610</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1483537783610</updated>
<workItem from="1483537785922" duration="643000" />
<workItem from="1483538479189" duration="1301000" />
<workItem from="1483539821640" duration="259000" />
<workItem from="1483540097167" duration="4049000" />
<workItem from="1483544896511" duration="2896000" />
<workItem from="1483612574815" duration="111000" />
<workItem from="1483612863177" duration="2620000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="11879000" />
</component>
<component name="TodoView" selected-index="1">
<todo-panel id="selected-file">
<is-autoscroll-to-source value="true" />
</todo-panel>
<todo-panel id="all">
<are-packages-shown value="true" />
<is-autoscroll-to-source value="true" />
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="1280" y="23" width="1280" height="1413" extended-state="0" />
<editor active="false" />
<layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2239873" sideWeight="0.49678457" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32954547" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.18181819" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
<window_info id="npm" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.2776684" sideWeight="0.50321543" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.2494043" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.28766087" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="true" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
</layout>
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="processedProjectFiles" value="true" />
</component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State>
<option name="RECENTLY_FILTERED_USER_GROUPS">
<collection />
</option>
<option name="RECENTLY_FILTERED_BRANCH_GROUPS">
<collection />
</option>
</State>
</value>
</entry>
</map>
</option>
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager />
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/package.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="60">
<caret line="4" column="14" lean-forward="false" selection-start-line="4" selection-start-column="14" selection-end-line="4" selection-end-column="14" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/search-multi.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/package.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="60">
<caret line="4" column="14" lean-forward="false" selection-start-line="4" selection-start-column="14" selection-end-line="4" selection-end-column="14" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/search-multi.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/search-single.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/search-single.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="330">
<caret line="22" column="5" lean-forward="false" selection-start-line="22" selection-start-column="5" selection-end-line="22" selection-end-column="5" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/store.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/actions.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/root.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="360">
<caret line="24" column="0" lean-forward="false" selection-start-line="24" selection-start-column="0" selection-end-line="24" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/search-single.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/store.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/search-single.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="18" column="15" lean-forward="true" selection-start-line="18" selection-start-column="15" selection-end-line="18" selection-end-column="15" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/list/react-infinite/src/index.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/store.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/list/react-infinite/src/list.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="406">
<caret line="59" column="15" lean-forward="true" selection-start-line="59" selection-start-column="15" selection-end-line="59" selection-end-column="15" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/root.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="360">
<caret line="24" column="0" lean-forward="false" selection-start-line="24" selection-start-column="0" selection-end-line="24" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/actions.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="435">
<caret line="29" column="32" lean-forward="false" selection-start-line="29" selection-start-column="32" selection-end-line="29" selection-end-column="32" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/index.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="18" column="0" lean-forward="false" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/frontend/src/containers/header/index.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="480">
<caret line="32" column="0" lean-forward="true" selection-start-line="32" selection-start-column="0" selection-end-line="32" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/frontend/src/components/header/index.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-10">
<caret line="58" column="14" lean-forward="false" selection-start-line="58" selection-start-column="14" selection-end-line="58" selection-end-column="14" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/static/index.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="75">
<caret line="5" column="8" lean-forward="true" selection-start-line="5" selection-start-column="8" selection-end-line="5" selection-end-column="8" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/package.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="60">
<caret line="4" column="14" lean-forward="false" selection-start-line="4" selection-start-column="14" selection-end-line="4" selection-end-column="14" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize-stateless/package.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="615">
<caret line="41" column="0" lean-forward="true" selection-start-line="41" selection-start-column="0" selection-end-line="41" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/search1.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="613">
<caret line="72" column="10" lean-forward="true" selection-start-line="72" selection-start-column="10" selection-end-line="72" selection-end-column="10" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/index.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="195">
<caret line="13" column="9" lean-forward="false" selection-start-line="13" selection-start-column="9" selection-end-line="13" selection-end-column="9" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/search-single.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1143">
<caret line="86" column="17" lean-forward="false" selection-start-line="86" selection-start-column="17" selection-end-line="89" selection-end-column="2" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/root.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="135">
<caret line="9" column="10" lean-forward="true" selection-start-line="9" selection-start-column="10" selection-end-line="9" selection-end-column="10" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize-stateless/src/search.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="15">
<caret line="1" column="0" lean-forward="false" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="31" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize-stateless/src/index.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/search.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="210">
<caret line="14" column="23" lean-forward="true" selection-start-line="14" selection-start-column="23" selection-end-line="14" selection-end-column="23" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/src/search-multi.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="553">
<caret line="71" column="42" lean-forward="false" selection-start-line="71" selection-start-column="42" selection-end-line="71" selection-end-column="42" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/spikes/fuzzy-search/react-selectize/readme.md">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="75">
<caret line="5" column="21" lean-forward="false" selection-start-line="5" selection-start-column="21" selection-end-line="5" selection-end-column="21" />
<folding />
</state>
</provider>
</entry>
</component>
</project>

View File

@ -0,0 +1,15 @@
{
"sourceMaps": "both",
"presets": [
"react",
"es2015"
],
"plugins": [
"react-hot-loader/babel",
"add-module-exports",
"syntax-async-functions",
["transform-object-rest-spread", {
"useBuiltIns": true
}]
]
}

View File

@ -0,0 +1,41 @@
{
"name": "react-infinite-spike",
"private": true,
"license": "private",
"scripts": {
"start": "webpack-dev-server --config webpack/index.js"
},
"dependencies": {
"axios": "^0.15.3",
"build-array": "^1.0.0",
"delay": "^1.3.1",
"lodash.debounce": "^4.0.8",
"react": "^15.4.0",
"react-addons-css-transition-group": "^15.4.1",
"react-addons-shallow-compare": "^15.4.1",
"react-dom": "^15.4.0",
"react-hot-loader": "^3.0.0-beta.6",
"react-infinite": "^0.10.0",
"react-redux": "^4.4.6",
"react-selectize": "^2.1.0",
"redux": "^3.6.0",
"redux-logger": "^2.7.4",
"redux-promise-middleware": "^4.1.0",
"redux-thunk": "^2.1.0"
},
"devDependencies": {
"babel-core": "^6.18.2",
"babel-eslint": "^7.1.1",
"babel-loader": "^6.2.7",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-syntax-async-functions": "^6.13.0",
"babel-plugin-transform-object-rest-spread": "^6.19.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-react": "^6.16.0",
"extract-text-webpack-plugin": "^2.0.0-beta.4",
"faker": "^3.1.0",
"style-loader": "^0.13.1",
"webpack": "^2.1.0-beta.27",
"webpack-dev-server": "^1.16.2"
}
}

View File

@ -0,0 +1,5 @@
# react-fuzzy-filter
- https://github.com/jdlehman/react-fuzzy-filter
- Does not use API endpoint, instead an array of objects needs to be created locally

View File

@ -0,0 +1,44 @@
const buildArray = require('build-array');
const delay = require('delay');
const faker = require('faker');
const actions = {
'FETCH': (state, action) => {
return {
...state,
items: (state.items || []).concat(action.payload)
};
}
};
const fetch = () => (dispatch, getState) => {
return dispatch({
type: 'FETCH',
payload: () => {
// debugger
const {
items = []
} = getState();
return buildArray(200).map((v, i) => {
const id = items.length + i;
return {
id,
name: faker.name.firstName(),
meta: `${faker.name.firstName()}|${faker.random.number()}`,
key: faker.image.imageUrl()
};
});
}
});
};
module.exports = (state, action) => {
return actions[action.type]
? actions[action.type](state, action)
: state;
};
module.exports.fetch = fetch;

View File

@ -0,0 +1,18 @@
const Store = require('./store');
const ReactDOM = require('react-dom');
const React = require('react');
const render = () => {
const Root = require('./root');
ReactDOM.render(
<Root store={Store()} />,
document.getElementById('root')
);
};
render();
if (module.hot) {
module.hot.accept('./root', render);
}

View File

@ -0,0 +1,24 @@
const ReactRedux = require('react-redux');
const ReactHotLoader = require('react-hot-loader');
const React = require('react');
const Search = require('./search');
const {
AppContainer
} = ReactHotLoader;
const {
Provider
} = ReactRedux;
module.exports = ({
store
}) => {
return (
<AppContainer>
<Provider store={store}>
<Search />
</Provider>
</AppContainer>
);
};

View File

@ -0,0 +1,28 @@
const actions = require('./actions');
const React = require('react');
const axios = require('axios');
const users = require('../../users');
const ReactSelectize = require("react-selectize");
const SimpleSelect = ReactSelectize.SimpleSelect;
const Search = () => {
let _options = ["apple", "mango", "grapes", "melon", "strawberry"];
_options = _options.map(function(fruit){
return {label: fruit, value: fruit}
});
return (
<SimpleSelect
options={_options}
placeholder="Select a fruit"
theme="material"
/>
);
}
module.exports = Search;

View File

@ -0,0 +1,19 @@
const createLogger = require('redux-logger');
const promiseMiddleware = require('redux-promise-middleware').default;
const thunk = require('redux-thunk').default;
const redux = require('redux');
const reducer = require('./actions');
const {
createStore,
compose,
applyMiddleware
} = redux;
module.exports = (state = Object.freeze({})) => {
return createStore(reducer, state, applyMiddleware(
createLogger(),
promiseMiddleware(),
thunk
));
};

View File

@ -0,0 +1,7 @@
*
!.gitignore
!.gitkeep
!index.html
js/*
!js/.gitkeep

View File

@ -0,0 +1,10 @@
<!doctype html>
<html lang='en-US'>
<head>
<title>Infinite List</title>
</head>
<body>
<div id='root'></div>
<script src='main.js'></script>
</body>
</html>

View File

@ -0,0 +1,56 @@
const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const plugins = {
'no-errors-plugin': new webpack.NoErrorsPlugin(),
};
exports.config = {
context: path.join(__dirname, '../'),
output: {
path: path.join(__dirname, '../static'),
publicPath: '/',
filename: '[name].js'
},
plugins: [
new webpack.NoErrorsPlugin(),
new ExtractTextPlugin({
filename: 'css/[name].css',
allChunks: true
}),
new webpack.LoaderOptionsPlugin({
options: {
postcss: {}
}
})
],
module: {
loaders: [{
test: /js?$/,
exclude: /node_modules/,
include: [
path.join(__dirname, '../src')
],
loader: 'babel-loader'
}, {
test: /\.css?$/,
exclude: /node_modules/,
include: [
path.join(__dirname, '../src'),
path.join(__dirname, '../docs')
],
loader: ExtractTextPlugin.extract({
fallbackLoader: 'style-loader',
loader: [
'css-loader?',
'modules&importLoaders=1&',
'localIdentName=[name]__[local]___[hash:base64:5]!',
'postcss-loader'
].join('')
})
}]
}
};
exports.plugins = plugins;

View File

@ -0,0 +1,29 @@
const base = require('./base.js');
const webpack = require('webpack');
const path = require('path');
const devServer = {
contentBase: [
path.join(__dirname, '../static/')
],
hot: true,
compress: true,
lazy: false,
historyApiFallback: {
index: './index.html'
}
};
module.exports = Object.assign(base.config, {
entry: [
'react-hot-loader/patch',
'webpack-dev-server/client?http://localhost:8080',
'webpack/hot/only-dev-server',
'./src/index.js'
],
plugins: base.config.plugins.concat([
new webpack.HotModuleReplacementPlugin()
]),
devtool: 'source-map',
devServer
});

File diff suppressed because it is too large Load Diff

View File

@ -3,3 +3,4 @@
- https://github.com/jdlehman/react-fuzzy-filter
- Does not use API endpoint, instead an array of objects needs to be created locally
- Hard to style - or didn't come easily straight out of the box

View File

@ -2,7 +2,6 @@ const ReactRedux = require('react-redux');
const ReactHotLoader = require('react-hot-loader');
const React = require('react');
const Search = require('./search');
const {
AppContainer
} = ReactHotLoader;

View File

@ -0,0 +1,90 @@
const ReactRedux = require('react-redux');
const actions = require('./actions');
const React = require('react');
const axios = require('axios');
const users = require('../../users');
var ReactSelectize = require("react-selectize");
var MultiSelect = ReactSelectize.MultiSelect;
const {
connect
} = ReactRedux;
const {
fetch
} = actions;
const mapStateToProps = (state) => {
return state;
};
const mapDispatchToProps = (dispatch, ownProps) => {
return {
fetch: () => {
return dispatch(fetch());
}
}
};
const SearchMulti = React.createClass({
getInitialState: function(){
return {
countries: [],
country: undefined
};
},
componentWillMount: function(){
var self = this;
this.req = axios.get("http://restverse.com/countries").then(function(countries){
self.setState({countries: countries.data}, function(){
self.refs.select.highlightFirstSelectableOption();
});
});
},
render: function(){
var self = this;
const _onValueChange = (country) => {
self.setState({country: country});
}
const _renderNoResultsFound = () => {
return (
<div className = "no-results-found">
{!!self.req ? "loading countries ..." : "No results found"}
</div>
)
}
return (
<div>
<h1>Multiple Options</h1>
<MultiSelect
ref = "select"
placeholder = "Select a country"
options = {this.state.countries}
value = {this.state.country}
onValueChange = {_onValueChange}
renderNoResultsFound = {_renderNoResultsFound}
/>
{ !!self.state.country ? (
<div style = {{margin: 8}}>
<span>you selected: </span>
<span style = {{fontWeight: "bold"}}>{self.state.country.label}</span>
</div>
) : null }
</div>
)
}
})
module.exports = connect(
mapStateToProps,
mapDispatchToProps,
)(SearchMulti);

View File

@ -0,0 +1,90 @@
const ReactRedux = require('react-redux');
const actions = require('./actions');
const React = require('react');
const axios = require('axios');
const users = require('../../users');
var ReactSelectize = require("react-selectize");
var SimpleSelect = ReactSelectize.SimpleSelect;
const {
connect
} = ReactRedux;
const {
fetch
} = actions;
const mapStateToProps = (state) => {
return state;
};
const mapDispatchToProps = (dispatch, ownProps) => {
return {
fetch: () => {
return dispatch(fetch());
}
}
};
const Search = React.createClass({
getInitialState: function(){
return {
countries: [],
country: undefined
};
},
componentWillMount: function(){
var self = this;
this.req = axios.get("http://restverse.com/countries").then(function(countries){
self.setState({countries: countries.data}, function(){
self.refs.select.highlightFirstSelectableOption();
});
});
},
render: function(){
var self = this;
const _onValueChange = (country) => {
self.setState({country: country});
}
const _renderNoResultsFound = () => {
return (
<div className = "no-results-found">
{!!self.req ? "loading countries ..." : "No results found"}
</div>
)
}
return (
<div>
<h1>Single Select</h1>
<SimpleSelect
ref = "select"
placeholder = "Select a country"
options = {this.state.countries}
value = {this.state.country}
onValueChange = {_onValueChange}
renderNoResultsFound = {_renderNoResultsFound}
/>
{ !!self.state.country ? (
<div style = {{margin: 8}}>
<span>you selected: </span>
<span style = {{fontWeight: "bold"}}>{self.state.country.label}</span>
</div>
) : null }
</div>
)
}
})
module.exports = connect(
mapStateToProps,
mapDispatchToProps,
)(Search);

View File

@ -1,89 +1,15 @@
const ReactRedux = require('react-redux');
const actions = require('./actions');
const React = require('react');
const axios = require('axios');
const users = require('../../users');
var ReactSelectize = require("react-selectize");
var SimpleSelect = ReactSelectize.SimpleSelect;
const {
connect
} = ReactRedux;
const {
fetch
} = actions;
const mapStateToProps = (state) => {
return state;
};
const mapDispatchToProps = (dispatch, ownProps) => {
return {
fetch: () => {
return dispatch(fetch());
}
}
};
const Search = React.createClass({
getInitialState: function(){
return {
countries: [],
country: undefined
};
},
componentWillMount: function(){
var self = this;
this.req = axios.get("http://restverse.com/countries").then(function(countries){
self.setState({countries: countries.data}, function(){
self.refs.select.highlightFirstSelectableOption();
});
});
},
render: function(){
var self = this;
const _onValueChange = (country) => {
self.setState({country: country});
}
const _renderNoResultsFound = () => {
return (
<div className = "no-results-found">
{!!self.req ? "loading countries ..." : "No results found"}
</div>
)
}
const SearchSingle = require('./search-single');
const SearchMulti = require('./search-multi')
const Search = () => {
return (
<div>
<SimpleSelect
ref = "select"
placeholder = "Select a country"
options = {this.state.countries}
value = {this.state.country}
onValueChange = {_onValueChange}
renderNoResultsFound = {_renderNoResultsFound}
/>
{ !!self.state.country ? (
<div style = {{margin: 8}}>
<span>you selected: </span>
<span style = {{fontWeight: "bold"}}>{self.state.country.label}</span>
</div>
) : null }
<SearchSingle />
<SearchMulti />
</div>
)
}
})
module.exports = connect(
mapStateToProps,
mapDispatchToProps,
)(Search);
module.exports = Search

View File

@ -1,7 +1,7 @@
<!doctype html>
<html lang='en-US'>
<head>
<title>Infinite List</title>
<title>Multi Select</title>
</head>
<body>
<div id='root'></div>