Skip to content

Commit

Permalink
Add icon placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
edizcelik committed Dec 17, 2021
1 parent c0edc83 commit 6388bd8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { fileURLToPath } from "url";

const __filename = fileURLToPath(import.meta.url);

const algoIconsFolderName = "ALGO";

const ASSET_ID_MATCHER = /\d+/;
const currentDirname = path.dirname(__filename);
const buildDirectory = path.join(currentDirname, "build");
Expand Down Expand Up @@ -47,7 +49,9 @@ function createTargetDirectoryName(source) {

if (sourceDirName.match(ASSET_ID_MATCHER)) {
sourceDirName = sourceDirName.match(ASSET_ID_MATCHER)[0];
} else {
} else if (
sourceDirName.toLowerCase() === algoIconsFolderName.toLowerCase()
) {
// it is ALGO folder
sourceDirName = "0";
}
Expand Down
Binary file added icon-placeholder/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icon-placeholder/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6388bd8

Please sign in to comment.