Skip to content

Commit

Permalink
Uploaded again after reset
Browse files Browse the repository at this point in the history
  • Loading branch information
underfisk committed Oct 4, 2020
1 parent 11ebe28 commit 68207ad
Show file tree
Hide file tree
Showing 65 changed files with 19,231 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist/
node_modules/
__tests__
.vscode/
.idea/
25 changes: 25 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
],
root: true,
env: {
node: true,
jest: true,
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
semi: ['error', 'never'],
},
}
109 changes: 109 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

#IDE
.idea
.vscode

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist
out

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist/
node_modules/
__tests__
.vscode/
.idea/
14 changes: 14 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"arrowParens": "avoid",
"bracketSpacing": true,
"insertPragma": false,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"useTabs": true,
"vueIndentScriptAndStyle": false,
"printWidth": 120
}
23 changes: 23 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { addParameters, configure } from '@storybook/react';
import 'storybook-chromatic';
import grommetLight from './theme';

const req = require.context(
'../src/',
true,
/\/stories\/.*\.ts$|\/stories\/.*\.tsx$/,
);

function loadStories() {
req.keys().forEach(filename => req(filename));
}

addParameters({
options: {
theme: grommetLight,
showNav: true,
showPanel: false, // show the code panel by default
},
});

configure(loadStories, module);
9 changes: 9 additions & 0 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<style type="text/css">
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial,
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
font-size: 18px;
line-height: 24px;
}
</style>
6 changes: 6 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<style type="text/css">
body {
margin: 0;
padding: 0;
}
</style>
22 changes: 22 additions & 0 deletions .storybook/theme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { create } from "@storybook/theming";

// https://storybook.js.org/docs/configurations/theming/

export default create({
base: "light",

colorSecondary: "#E15151",

appBg: "#F8F8F8",
appBorderColor: "#EDEDED",
appBorderRadius: 6,

barTextColor: "#999999",
barSelectedColor: "#E15151",
barBg: "#F2F2F2",

inputBg: "white",
inputBorder: "rgba(0,0,0,.1)",
inputTextColor: "#333333",
inputBorderRadius: 4,
});
12 changes: 12 additions & 0 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = ({ config }) => {
config.module.rules.push({
test: /\.(ts|tsx)$/,
loader: require.resolve('babel-loader'),
options: {
presets: [require.resolve('babel-preset-react-app')],
},
})

config.resolve.extensions.push('.ts', '.tsx')
return config
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Enigma

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Apollo Spreadsheet
Excel like grid under construction
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
setupFilesAfterEnv: ['./setupTests.ts'],
snapshotSerializers: ["enzyme-to-json/serializer"]
};
109 changes: 109 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"name": "apollo-spreadsheet",
"version": "0.0.1",
"main": "dist/index.js",
"description": "React excel like fast grid plugin",
"bugs": "https://github.com/underfisk/apollo-spreadsheet/issues",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/underfisk/apollo-spreadsheet.git"
},
"engines": {
"node": ">= 8"
},
"scripts": {
"lint": "eslint src",
"lint-fix": "eslint src --fix",
"storybook": "cross-env NODE_ENV=development start-storybook -p 9001 -s ./.storybook/public",
"build": "yarn build-storybook -o ./out",
"prettier": "pretty-quick --staged",
"test": "jest"
},
"peerDependencies": {
"react": ">= 16.13.1",
"react-dom": ">= 16.13.1"
},
"dependencies": {
"@material-ui/core": "^4.11.0",
"@material-ui/icons": "^4.9.1",
"@types/react-virtualized": "^9.21.10",
"babel-loader": "^8.1.0",
"babel-preset-react-app": "^9.1.2",
"clsx": "^1.1.1",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",
"enzyme-to-json": "^3.6.1",
"json2csv": "^5.0.1",
"react-virtualized": "^9.21.2"
},
"devDependencies": {
"@babel/preset-typescript": "^7.10.4",
"@storybook/addon-options": "~5.1.11",
"@storybook/addon-storysource": "~5.1.11",
"@storybook/addons": "~5.1.11",
"@storybook/react": "~5.1.11",
"@testing-library/dom": "^6.1.0",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.1.3",
"@types/enzyme": "^3.10.7",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/jest": "^26.0.14",
"@types/json2csv": "^5.0.1",
"@types/lodash": "^4.14.161",
"@types/node": "^12.11.7",
"@types/react": "latest",
"@types/react-dom": "latest",
"@types/storybook__react": "latest",
"@typescript-eslint/eslint-plugin": "^4.3.0",
"@typescript-eslint/parser": "^4.3.0",
"cross-env": "^5.1.6",
"del": "^5.1.0",
"eslint": "^7.10.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.1.0",
"eslint-plugin-babel": "^5.1.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-prettier": "^3.0.0",
"eslint-plugin-react": "^7.9.1",
"eslint-plugin-react-hooks": "^2.2.0",
"faker": "^5.1.0",
"fs-extra": "^8.1.0",
"jest": "^26.4.2",
"jest-cli": "^24.8.0",
"jest-styled-components": "^6.2.0",
"jsdom": "^15.1.1",
"plop": "^2.5.3",
"pre-commit": "^1.2.2",
"prettier": "^1.16.4",
"pretty-quick": "^1.8.0",
"react": "^16.13.1",
"react-dev-utils": "^10.2.1",
"react-dom": "^16.13.1",
"react-test-renderer": "^16.13.1",
"regenerator-runtime": "^0.13.1",
"require-reload": "^0.2.2",
"simple-git": "^1.95.0",
"storybook-chromatic": "^2.2.2",
"styled-components": "^4.1.1",
"tarball-extract": "^0.0.6",
"ts-jest": "^26.4.1",
"typescript": "^4.0.3",
"webpack": "^4.39.3",
"webpack-cli": "^3.2.3"
},
"pre-commit": [
"lint-fix",
"prettier",
"test"
],
"keywords": [
"component",
"library",
"react",
"atomic design",
"ui",
"user interface"
]
}
6 changes: 6 additions & 0 deletions setupTests.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Enzyme from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'

Enzyme.configure({
adapter: new Adapter(),
})
Loading

0 comments on commit 68207ad

Please sign in to comment.