-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌌 In the beginning there was darkness
Signed-off-by: Ed Abucay <[email protected]>
- Loading branch information
0 parents
commit 53f7387
Showing
105 changed files
with
18,127 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
"presets": [ | ||
"@babel/preset-env", | ||
"@babel/preset-react", | ||
"@babel/preset-typescript" | ||
], | ||
"plugins": [ | ||
[ | ||
"@babel/plugin-proposal-decorators", | ||
{ | ||
"legacy": true | ||
} | ||
], | ||
"@babel/plugin-transform-runtime", | ||
"@babel/plugin-proposal-class-properties", | ||
"@babel/plugin-proposal-object-rest-spread" | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.dockerignore | ||
.git | ||
.gitignore | ||
.projectile | ||
node_modules | ||
npm_debug.log | ||
Dockerfile* | ||
docker-compose* | ||
README.md | ||
LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = false | ||
insert_final_newline = false |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module.exports = { | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
extends: [ | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier", | ||
"plugin:prettier/recommended", | ||
], | ||
parserOptions: { | ||
sourceType: "module", | ||
ecmaVersion: 2018, | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
plugins: ["react-hooks"], | ||
rules: { | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "warn", | ||
}, | ||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/src/assets/images/** binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: psyche | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
node-version: | ||
- 14 | ||
architecture: | ||
- x64 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
architecture: ${{ matrix.architecture }} | ||
- run: yarn install | ||
- run: yarn build | ||
env: | ||
CI: true | ||
- run: yarn build.production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.log | ||
dist | ||
node_modules | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm lint.fix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
process(src, filename, config, options) { | ||
return 'module.exports = ' + JSON.stringify(path.basename(filename)) + ';'; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
tabWidth: 2, | ||
singleQuote: false, | ||
semi: true, | ||
trailingComma: "all", | ||
printWidth: 90, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Changelog | ||
|
||
## 1.1.0 (January 31, 2020) | ||
|
||
* Added pre-commit process | ||
* Added test mocha suite | ||
* Added docker configs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Copyright (C) Open Sesame Pt. Ltd. - All Rights Reserved. | ||
|
||
Unauthorized copying or distributing of this source code, via any medium is | ||
strictly prohibited. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Psyche | ||
|
||
![Workflow](https://github.com/ffimnsr/psyche/workflows/psyche/badge.svg) | ||
|
||
## Development | ||
|
||
To run this in development, first pull the node LTS (currently its fermium) docker images. | ||
|
||
```bash | ||
docker pull node:fermium-buster | ||
``` | ||
|
||
Then run node container service: | ||
|
||
```bash | ||
docker-compose run --rm --service-ports node_docker | ||
``` | ||
|
||
On the container terminal, run `pnpm start`. | ||
|
||
## Typescript Basic Types | ||
|
||
Listed below are basic types that can be use on typescript for reference. | ||
|
||
- `boolean` | ||
- `number` | ||
- `string` | ||
- `array` (e.g. number[] or Array<number>) | ||
- `tuple` (e.g. [string, number]) | ||
- `enum` | ||
- `any` | ||
- `void` | ||
- `null` and `undefined` | ||
- `never` (e.g. exceptions throws) | ||
|
||
## Extra Polyfill Package (Fallbacks) | ||
|
||
- stream-browserify | ||
- browserify-zlib | ||
- util | ||
- buffer | ||
- assert | ||
|
||
## License | ||
|
||
Copyright (C) Open Sesame Pt. Ltd. - All Rights Reserved. | ||
|
||
Unauthorized copying or distributing of this source code, via any medium is | ||
strictly prohibited. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = async () => { | ||
return { | ||
verbose: true, | ||
testEnvironment: "jsdom", | ||
moduleNameMapper: { | ||
"^.+\\.(css|less|sass|scss)$": "<rootDir>/.jest/styleMock.js", | ||
"@/(.*)$": "<rootDir>/src/$1", | ||
}, | ||
transform: { | ||
"^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": | ||
"<rootDir>/.jest/assetsTransformer.js", | ||
"^.+\\.(ts|tsx)$": "babel-jest", | ||
}, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
{ | ||
"name": "psyche", | ||
"version": "2.0.0", | ||
"author": "ffimnsr", | ||
"private": true, | ||
"scripts": { | ||
"start": "pnpm watch", | ||
"build": "webpack --config webpack.development.babel.js --mode development --no-color", | ||
"build.production": "webpack --config webpack.production.babel.js --mode production --no-color", | ||
"build.types": "tsc --noEmit false --emitDeclarationOnly", | ||
"watch": "webpack serve --config webpack.development.babel.js --no-color", | ||
"lint": "eslint */**/*.{ts,tsx}", | ||
"lint.fix": "eslint */**/*.{ts,tsx} --quiet --fix", | ||
"lint.full": "tsc --noEmit && eslint */**/*.{ts,tsx} --quiet --fix", | ||
"test": "jest", | ||
"postinstall": "husky install", | ||
"mock": "node ./.apollo/mock-server.js", | ||
"schema": "apollo client:download-schema -c ./.apollo/apollo.member.config.js ./.apollo/generated_schemas/schema.member.graphql" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.20.12", | ||
"@babel/plugin-proposal-class-properties": "^7.18.6", | ||
"@babel/plugin-proposal-decorators": "^7.20.13", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.20.7", | ||
"@babel/plugin-transform-runtime": "^7.19.6", | ||
"@babel/preset-env": "^7.20.2", | ||
"@babel/preset-react": "^7.18.6", | ||
"@babel/preset-typescript": "^7.18.6", | ||
"@babel/register": "^7.18.9", | ||
"@babel/runtime": "^7.20.13", | ||
"@testing-library/react": "^13.4.0", | ||
"@types/blueimp-md5": "^2.18.0", | ||
"@types/d3": "^7.4.0", | ||
"@types/jest": "^29.2.6", | ||
"@types/js-cookie": "^3.0.2", | ||
"@types/jsonpath": "^0.2.0", | ||
"@types/lodash": "^4.14.191", | ||
"@types/node": "18.11.18", | ||
"@types/react": "~18.0.27", | ||
"@types/react-big-calendar": "^0.38.3", | ||
"@types/react-dom": "~18.0.10", | ||
"@types/react-router": "^5.1.20", | ||
"@types/react-router-dom": "^5.3.3", | ||
"@types/react-virtualized": "^9.21.21", | ||
"@types/styled-components": "^5.1.26", | ||
"@types/webpack": "^5.28.0", | ||
"@types/webpack-env": "^1.18.0", | ||
"@typescript-eslint/eslint-plugin": "^5.48.2", | ||
"@typescript-eslint/parser": "^5.48.2", | ||
"autoprefixer": "^10.4.13", | ||
"babel-jest": "^29.3.1", | ||
"babel-loader": "^9.1.2", | ||
"clean-webpack-plugin": "^4.0.0", | ||
"copy-webpack-plugin": "^11.0.0", | ||
"css-loader": "^6.7.3", | ||
"css-minimizer-webpack-plugin": "^4.2.2", | ||
"dotenv-webpack": "^8.0.1", | ||
"eslint": "^8.32.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-react": "^7.32.1", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"fantasticon": "^2.0.0", | ||
"file-loader": "^6.2.0", | ||
"fork-ts-checker-webpack-plugin": "^7.3.0", | ||
"html-webpack-plugin": "^5.5.0", | ||
"husky": "^8.0.3", | ||
"jest": "^29.3.1", | ||
"jsdom": "^21.0.0", | ||
"mini-css-extract-plugin": "^2.7.2", | ||
"npm-run-all": "^4.1.5", | ||
"postcss": "^8.4.21", | ||
"postcss-loader": "^7.0.2", | ||
"prettier": "^2.8.3", | ||
"terser-webpack-plugin": "^5.3.6", | ||
"ts-jest": "^29.0.5", | ||
"ts-node": "^10.9.1", | ||
"tsconfig-paths": "^4.1.2", | ||
"typescript": "~4.9.4", | ||
"webpack": "^5.75.0", | ||
"webpack-cli": "^5.0.1", | ||
"webpack-dev-server": "^4.11.1", | ||
"webpack-merge": "^5.8.0" | ||
}, | ||
"dependencies": { | ||
"@auth0/auth0-react": "^2.0.0", | ||
"@blueprintjs/core": "^4.14.3", | ||
"@blueprintjs/icons": "^4.12.2", | ||
"@blueprintjs/popover2": "^1.11.3", | ||
"blueimp-md5": "^2.19.0", | ||
"classnames": "^2.3.2", | ||
"d3": "^7.8.2", | ||
"framer-motion": "^8.5.0", | ||
"graphql": "^16.6.0", | ||
"js-cookie": "^3.0.1", | ||
"jsonpath": "^1.1.1", | ||
"jwt-decode": "^3.1.2", | ||
"loglevel": "^1.8.1", | ||
"moment": "^2.29.4", | ||
"normalize.css": "^8.0.1", | ||
"react": "~18.2.0", | ||
"react-big-calendar": "^1.5.2", | ||
"react-dom": "~18.2.0", | ||
"react-helmet-async": "^1.3.0", | ||
"react-hook-form": "^7.42.1", | ||
"react-router": "^6.7.0", | ||
"react-router-dom": "^6.7.0", | ||
"react-virtualized": "^9.22.3", | ||
"styled-components": "^5.3.6" | ||
}, | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
"browserslist": [ | ||
">0.2%", | ||
"not dead", | ||
"not ie <= 11", | ||
"not op_mini all" | ||
] | ||
} |
Oops, something went wrong.