Skip to content

Commit

Permalink
prettify all
Browse files Browse the repository at this point in the history
  • Loading branch information
sashankaryal committed Dec 13, 2022
1 parent 3bd8412 commit 0cc3359
Show file tree
Hide file tree
Showing 29 changed files with 665 additions and 689 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.html
voxel51-website.js
**/__generated__
dist
6 changes: 3 additions & 3 deletions app/packages/aggregations/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
presets: [
['@babel/preset-env', {targets: {node: 'current'}}],
'@babel/preset-typescript',
["@babel/preset-env", { targets: { node: "current" } }],
"@babel/preset-typescript",
],
};
};
60 changes: 30 additions & 30 deletions app/packages/aggregations/package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
"name": "@fiftyone/aggregations",
"author": "Voxel51, Inc.",
"version": "0.0.0",
"description": "Query fiftyone from a browser",
"homepage": "https://github.com/voxel51/fiftyone/app/packages/plugins",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/voxel51/fiftyone/"
},
"main": "./src/index.ts",
"scripts": {
"dev": "vite",
"test": "jest",
"gen:aggs": "node scripts/generateAggregationClasses.js"
},
"private": true,
"files": [
"dist",
"README.md"
],
"devDependencies": {
"@babel/preset-typescript": "^7.17.12",
"@types/react": "^18.0.12",
"fs-extra": "^10.1.0",
"jest": "^28.1.1",
"lodash": "^4.17.21",
"prettier": "2.2.1",
"typescript": "4.2.4",
"vite": "2.4.2"
}
"name": "@fiftyone/aggregations",
"author": "Voxel51, Inc.",
"version": "0.0.0",
"description": "Query fiftyone from a browser",
"homepage": "https://github.com/voxel51/fiftyone/app/packages/plugins",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/voxel51/fiftyone/"
},
"main": "./src/index.ts",
"scripts": {
"dev": "vite",
"test": "jest",
"gen:aggs": "node scripts/generateAggregationClasses.js"
},
"private": true,
"files": [
"dist",
"README.md"
],
"devDependencies": {
"@babel/preset-typescript": "^7.17.12",
"@types/react": "^18.0.12",
"fs-extra": "^10.1.0",
"jest": "^28.1.1",
"lodash": "^4.17.21",
"prettier": "2.2.1",
"typescript": "4.2.4",
"vite": "2.4.2"
}
}
6 changes: 3 additions & 3 deletions app/packages/aggregations/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as aggregations from './aggregations'
import useAggregation from './useAggregation'
import * as aggregations from "./aggregations";
import useAggregation from "./useAggregation";

export { aggregations, useAggregation }
export { aggregations, useAggregation };
2 changes: 1 addition & 1 deletion app/packages/aggregations/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export default <UserConfig>{
},
target: "es2015",
minify: false,
}
},
};
110 changes: 74 additions & 36 deletions app/packages/app/package.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,76 @@
{
"name": "@fiftyone/app",
"license": "Apache-2.0",
"version": "0.0.0",
"private": true,
"main": "./src/index.tsx",
"scripts": {
"compile": "yarn workspace @fiftyone/core compile && yarn workspace @fiftyone/relay compile",
"dev": "vite",
"build": "yarn compile && yarn build-bare && yarn copy-to-python",
"build-bare": "tsc && vite build",
"build-desktop": "tsc && vite build --mode desktop",
"copy-to-python": "rm -rf ../../../fiftyone/server/static && cp -r ./dist ../../../fiftyone/server/static",
"copy-to-desktop": "rm -rf ../desktop/dist/ && cp -r ./dist ../desktop/dist"
},
"dependencies": {
"@fiftyone/components": "*",
"@fiftyone/core": "*",
"@fiftyone/state": "*",
"@fiftyone/utilities": "*",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-relay": "^14.0.0",
"recoil": "0.7.2",
"recoil-relay": "^0.1.0"
},
"devDependencies": {
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.3",
"@vitejs/plugin-react-refresh": "^1.3.3",
"prettier": "2.2.1",
"rollup-plugin-polyfill-node": "^0.6.2",
"typescript": "^4.7.4",
"typescript-plugin-css-modules": "^3.4.0",
"vite": "^3.0.0",
"vite-plugin-relay": "^1.0.7"
}
"name": "@fiftyone/app",
"license": "Apache-2.0",
"version": "0.0.0",
"private": true,
"main": "./src/index.tsx",
"scripts": {
"compile": "yarn workspace @fiftyone/core compile && yarn workspace @fiftyone/relay compile",
"dev": "vite",
"build": "yarn compile && yarn build-bare && yarn copy-to-python",
"build-bare": "tsc && vite build",
"build-desktop": "tsc && vite build --mode desktop",
"copy-to-python": "rm -rf ../../../fiftyone/server/static && cp -r ./dist ../../../fiftyone/server/static",
"copy-to-desktop": "rm -rf ../desktop/dist/ && cp -r ./dist ../desktop/dist"
},
"dependencies": {
"@fiftyone/components": "*",
"@fiftyone/core": "*",
"@fiftyone/flashlight": "*",
"@fiftyone/looker": "*",
"@fiftyone/map": "*",
"@fiftyone/state": "*",
"@fiftyone/utilities": "*",
"@material-ui/core": "4.11.4",
"@material-ui/icons": "^4.9.1",
"@react-spring/web": "^9.4.3",
"@use-gesture/react": "10.1.1",
"@xstate/react": "1.3.3",
"classnames": "^2.2.6",
"framer-motion": "^6.2.8",
"history": "^5.3.0",
"html2canvas": "1.0.0-rc.7",
"lodash": "^4.17.21",
"lru-cache": "^6.0.0",
"numeral": "^2.0.6",
"path-to-regexp": "^6.2.0",
"re-resizable": "^6.8.0",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-error-boundary": "^3.1.4",
"react-ga": "^3.1.2",
"react-hotkeys": "^2.0.0",
"react-input-autosize": "^3.0.0",
"react-is": "^17.0.1",
"react-laag": "^2.0.3",
"react-relay": "^14.0.0",
"react-use-measure": "^2.0.1",
"react-uuid": "^1.0.2",
"recharts": "2.0.9",
"recoil": "0.7.2",
"recoil-relay": "^0.1.0",
"resize-observer-polyfill": "^1.5.1",
"styled-components": "^5.3.3",
"uuid": "^8.3.2",
"xstate": "^4.14.0"
},
"devDependencies": {
"@types/lodash": "^4.14.182",
"@types/mime": "^2.0.3",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.3",
"@types/react-relay": "^13.0.0",
"@types/react-router": "^5.1.18",
"@types/relay-compiler": "^8.0.2",
"@types/relay-runtime": "^13.0.1",
"@types/styled-components": "^5.1.23",
"@vitejs/plugin-react-refresh": "^1.3.3",
"prettier": "2.2.1",
"relay-compiler": "^14.1.0",
"rollup-plugin-polyfill-node": "^0.6.2",
"typescript": "^4.7.4",
"typescript-plugin-css-modules": "^3.4.0",
"vite": "^3.0.0",
"vite-plugin-relay": "^1.0.7"
}
}
10 changes: 5 additions & 5 deletions app/packages/components/relay.config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"src": "./src",
"schema": "../../schema.graphql",
"eagerEsModules": true,
"language": "typescript",
"customScalars": { "Date": "string", "DateTime": "string" }
"src": "./src",
"schema": "../../schema.graphql",
"eagerEsModules": true,
"language": "typescript",
"customScalars": { "Date": "string", "DateTime": "string" }
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ export const useExternalLink = (
};
};

const ExternalLink: React.FC<Omit<
DetailedHTMLProps<
React.AnchorHTMLAttributes<HTMLAnchorElement>,
HTMLAnchorElement
>,
"target"
>> = ({ href, ...props }) => {
const ExternalLink: React.FC<
Omit<
DetailedHTMLProps<
React.AnchorHTMLAttributes<HTMLAnchorElement>,
HTMLAnchorElement
>,
"target"
>
> = ({ href, ...props }) => {
const onClick = useExternalLink(href);
return <a {...props} href={href} target="_blank" onClick={onClick} />;
};
Expand Down
46 changes: 23 additions & 23 deletions app/packages/components/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"compilerOptions": {
"target": "es5",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"compilerOptions": {
"target": "es5",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,

"jsx": "react",
"module": "ESNext",
"declaration": true,
"declarationDir": "types",
"sourceMap": true,
"outDir": "dist",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"emitDeclarationOnly": true,
"jsx": "react",
"module": "ESNext",
"declaration": true,
"declarationDir": "types",
"sourceMap": true,
"outDir": "dist",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"emitDeclarationOnly": true,

"lib": ["ESNext", "DOM", "DOM.Iterable"],
"resolveJsonModule": true,
"allowJs": false,
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"resolveJsonModule": true,
"allowJs": false,

"plugins": [{ "name": "typescript-plugin-css-modules" }],
"composite": true
},
"include": ["./src"],
"references": [{ "path": "../utilities" }]
"plugins": [{ "name": "typescript-plugin-css-modules" }],
"composite": true
},
"include": ["./src"],
"references": [{ "path": "../utilities" }]
}
24 changes: 12 additions & 12 deletions app/packages/core/relay.config.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"src": "./src",
"schema": "../../schema.graphql",
"eagerEsModules": true,
"language": "typescript",
"customScalars": {
"BSON": "object",
"BSONArray": "Array",
"Date": "number",
"DateTime": "number",
"JSON": "object",
"JSONArray": "Array"
}
"src": "./src",
"schema": "../../schema.graphql",
"eagerEsModules": true,
"language": "typescript",
"customScalars": {
"BSON": "object",
"BSONArray": "Array",
"Date": "number",
"DateTime": "number",
"JSON": "object",
"JSONArray": "Array"
}
}
70 changes: 35 additions & 35 deletions app/packages/dataset/package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
{
"name": "@fiftyone/dataset",
"author": "Voxel51, Inc.",
"version": "0.0.0",
"description": "Media viewer that can render label overlays.",
"homepage": "https://github.com/voxel51/fiftyone/app/packages/looker",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/voxel51/fiftyone/"
},
"main": "./src/index.tsx",
"scripts": {
"build": "NODE_OPTIONS='--max-old-space-size=9728' vite build",
"dev": "vite dev"
},
"private": true,
"files": [
"dist",
"README.md"
],
"dependencies": {
"@fiftyone/core": "*"
},
"devDependencies": {
"prettier": "^2.7.1",
"typescript": "^4.7.4",
"typescript-plugin-css-modules": "^3.4.0",
"vite": "^3.0.0"
},
"exports": {
".": {
"import": "./dist/dataset.js",
"require": "./dist/dataset.js"
"name": "@fiftyone/dataset",
"author": "Voxel51, Inc.",
"version": "0.0.0",
"description": "Media viewer that can render label overlays.",
"homepage": "https://github.com/voxel51/fiftyone/app/packages/looker",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/voxel51/fiftyone/"
},
"./style.css": {
"import": "./dist/style.css"
"main": "./src/index.tsx",
"scripts": {
"build": "NODE_OPTIONS='--max-old-space-size=9728' vite build",
"dev": "vite dev"
},
"private": true,
"files": [
"dist",
"README.md"
],
"dependencies": {
"@fiftyone/core": "*"
},
"devDependencies": {
"prettier": "^2.7.1",
"typescript": "^4.7.4",
"typescript-plugin-css-modules": "^3.4.0",
"vite": "^3.0.0"
},
"exports": {
".": {
"import": "./dist/dataset.js",
"require": "./dist/dataset.js"
},
"./style.css": {
"import": "./dist/style.css"
}
}
}
}
Loading

0 comments on commit 0cc3359

Please sign in to comment.