Skip to content

Commit cd9105a

Browse files
authored
Merge pull request #64 from tldr-group/updated-img-size-vis
Batched image frontend
2 parents 6e4483f + 09f2217 commit cd9105a

22 files changed

Lines changed: 7052 additions & 3327 deletions

frontend/.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false
4+
}

frontend/configs/webpack/common.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,19 @@ module.exports = {
5858
{
5959
from: "src/assets",
6060
to: "assets",
61-
}
62-
]
61+
},
62+
],
6363
}),
6464
new HtmlWebpackPlugin({
6565
template: "./src/assets/index.html",
66-
favicon: "./src/assets/favicon.png"
66+
favicon: "./src/assets/favicon.png",
6767
}),
6868
new FriendlyErrorsWebpackPlugin(),
6969
new webpack.ProvidePlugin({
7070
process: "process/browser",
7171
}),
7272
],
7373
experiments: {
74-
topLevelAwait: true
75-
}
74+
topLevelAwait: true,
75+
},
7676
};

frontend/configs/webpack/dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ module.exports = merge(commonConfig, {
1010
open: true,
1111
historyApiFallback: true,
1212
// These headers enable the cross origin isolation state
13-
// needed to enable use of SharedArrayBuffer for ONNX
14-
// multithreading.
13+
// needed to enable use of SharedArrayBuffer for ONNX
14+
// multithreading.
1515
headers: {
1616
"Cross-Origin-Opener-Policy": "same-origin",
1717
"Cross-Origin-Embedder-Policy": "credentialless",

frontend/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"lint": "eslint './src/**/*.{js,ts,tsx}' --quiet",
99
"start": "yarn run start-dev",
1010
"test": "yarn run start-model-test",
11-
"start-dev": "webpack serve --config=configs/webpack/dev.js"
11+
"start-dev": "webpack serve --config=configs/webpack/dev.js",
12+
"pretty": "prettier --write \"./**/*.{js,jsx,mjs,cjs,ts,tsx,json}\""
1213
},
1314
"devDependencies": {
1415
"@babel/core": "^7.18.13",
@@ -65,4 +66,4 @@
6566
"@types/react-dom": "18.2.0",
6667
"@types/react": "18.2.0"
6768
}
68-
}
69+
}

frontend/postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
const tailwindcss = require("tailwindcss");
22
module.exports = {
3-
plugins: ["postcss-preset-env", 'tailwindcss/nesting', tailwindcss],
3+
plugins: ["postcss-preset-env", "tailwindcss/nesting", tailwindcss],
44
};

0 commit comments

Comments
 (0)