Skip to content

Commit

Permalink
Fileupload (#3)
Browse files Browse the repository at this point in the history
* mods

* remove iso js files

* working file upload

* update gitignore

* adjust paths

* emit true

* add tsconfig and get output to build/gen"

* fix path
  • Loading branch information
Kiel-H-Byrne authored May 31, 2022
1 parent e989aa0 commit cef4ef5
Show file tree
Hide file tree
Showing 29 changed files with 1,026 additions and 505 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# production
/build
/dist

# misc
.DS_Store
Expand Down
10 changes: 10 additions & 0 deletions .vscode/task.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"label": "tsc: watch",
"type": "typescript",
"tsconfig": "tsconfig-watch.json",
"option": "watch",
"runOptions": {
"runOn": "folderOpen"
},
"problemMatcher": ["$tsc-watch"]
}
16 changes: 16 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## TODO:
need to upload an image (form upload)
and spit out a url to said image.

1. upload image (png/jpg, filled, not hollow) -> return url of image
2. image is worked into multiple 'layers' (diff colors) -> return url of each image layer
3. each 'base layer' is organized by folder (1 layer image per folder to start)
4. image in each folder is 'copied' and modified in variety of ways. -> return url for each modified layer
5. now have multiple folders with multiple image layers, generative script creates multiple images from each layer -> return urls for each image.


User Inputs
A> upload image
B> color selection: color selection(s)? #of Colors?
C> layer variety selection: # of various layers off of base, set metadata (rarity, frequency)
D> final image selection: # of final images desired.
40 changes: 0 additions & 40 deletions gen/config.js

This file was deleted.

9 changes: 0 additions & 9 deletions gen/generate.js

This file was deleted.

178 changes: 0 additions & 178 deletions gen/main.js

This file was deleted.

28 changes: 28 additions & 0 deletions gen/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"target": "es6",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"noEmit": false,
"rootDir": "./",
"outDir": "../build/gen",
"composite": true
},
"include": [
"./"
]
}
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"type": "module",
"main": "dist/index.js",
"dependencies": {
"@chakra-ui/react": "^1.6.9",
"@emotion/react": "11",
Expand All @@ -23,11 +24,12 @@
"@types/jest": "^26.0.15",
"@types/node": "^16.10.3",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0"
"@types/react-dom": "^17.0.0",
"firebase": "^9.8.2"
},
"scripts": {
"prebuild": "tsc && eslint --fix ./src",
"gen": "node --experimental-specifier-resolution=node --max_old_space_size=12288 gen/generate.js",
"prebuild": "tsc -b && eslint --fix ./src",
"gen": "node --experimental-specifier-resolution=node --max_old_space_size=12288 build/gen/generate.js",
"start": "react-scripts start",
"build": "yarn gen && react-scripts build",
"runit": "yarn build && yarn start",
Expand Down
Binary file modified public/gallery/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/gallery/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/gallery/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/gallery/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/gallery/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/gallery/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/gallery/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/gallery/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/gallery/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/gallery/9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

1 comment on commit cef4ef5

@vercel
Copy link

@vercel vercel bot commented on cef4ef5 May 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.