Skip to content

Commit

Permalink
reorganize devenv fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityblast committed Oct 24, 2023
1 parent c4634b2 commit 2eca69c
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 5 deletions.
1 change: 0 additions & 1 deletion scripts/dev/fixtures/images/1500x500.svg

This file was deleted.

1 change: 0 additions & 1 deletion scripts/dev/fixtures/images/400x400.svg

This file was deleted.

Binary file added scripts/dev/fixtures/projects/1/banner.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 added scripts/dev/fixtures/projects/1/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Binary file added scripts/dev/fixtures/projects/2/banner.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 added scripts/dev/fixtures/projects/2/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Binary file added scripts/dev/fixtures/projects/3/banner.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 added scripts/dev/fixtures/projects/3/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions scripts/dev/fixtures/projects/3/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"title": "Local Project 2",
"description": "This is a test project",
"website": "https://example.com",
"logoImg": "",
"bannerImg": "",
"logoImgData": {},
"bannerImgData": {},
"credentials": {},
"createdAt": 1689974742498
}
6 changes: 3 additions & 3 deletions scripts/dev/populate/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ async function main() {
"0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0"
);

for (let i = 1; i < 3; i++) {
const logo = loadFixture("images/400x400.svg");
for (let i = 1; i < 4; i++) {
const logo = loadFixture(`projects/${i}/logo.png`);
const logoCid = await uploadFileToPinata(logo);

const banner = loadFixture("images/1500x500.svg");
const banner = loadFixture("projects/${i}/banner.png");
const bannerCid = await uploadFileToPinata(banner);

const metadata = JSON.parse(loadFixture(`projects/${i}.json`).toString());
Expand Down

0 comments on commit 2eca69c

Please sign in to comment.