Skip to content

Commit

Permalink
add static src from build + update gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
syrk4web committed Jul 2, 2024
1 parent 52d43e6 commit b00e3c6
Show file tree
Hide file tree
Showing 556 changed files with 21,551 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ node_modules
.mypy_cache
.cache/
/package*.json
/src/client/static
/src/client/templates
10 changes: 7 additions & 3 deletions src/client/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const fs = require("fs");

const frontDir = "/vite";
const clientBuildDir = "static";
const setupBuildDir = "setup/output";
const appStaticDir = "../ui/static";
const appTempDir = "../ui/templates";

Expand All @@ -23,6 +22,7 @@ async function createDirIfNotExists(dir) {
}

async function delElRecursive(path) {
if (!fs.existsSync(path)) return;
fs.rmSync(path, { recursive: true }, (err) => {
if (err) {
console.log(err);
Expand Down Expand Up @@ -129,6 +129,8 @@ async function setBuildTempToUI() {
}
);
});
// Delete templates to avoid to add it to static
delElRecursive("./static/templates");
});
}

Expand All @@ -137,9 +139,11 @@ async function moveBuildStaticToUI() {
const srcDir = resolve(`./static`);
const destDir = resolve(appStaticDir);
fs.readdir(srcDir, (err, dirs) => {
dirs.forEach(async (dir) => {
dirs.forEach((dir) => {
// Avoid try something on dir templates because it's already moved/removed
if (dir === "templates") return;
// Delete prev existing dir
await copyDir(`${srcDir}/${dir}`, `${destDir}/${dir}`);
copyDir(`${srcDir}/${dir}`, `${destDir}/${dir}`);
});
});
}
Expand Down
5 changes: 0 additions & 5 deletions src/client/vite/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ export default defineConfig({
rollupOptions: {
input: {
home: resolve(__dirname, "./src/pages/home/index.html"),
instances: resolve(__dirname, "./src/pages/instances/index.html"),
"global-config": resolve(
__dirname,
"./src/pages/global-config/index.html"
),
},
},
},
Expand Down
25 changes: 25 additions & 0 deletions src/ui/static/assets/home-f34da344.js

Large diffs are not rendered by default.

Binary file added src/ui/static/assets/logo-menu-2-2034a2ed.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 src/ui/static/assets/logo-menu-7a0453de.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/ui/static/css/flag-icons.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/ui/static/css/style.css

Large diffs are not rendered by default.

148 changes: 148 additions & 0 deletions src/ui/static/flags/1x1/ad.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/ui/static/flags/1x1/ae.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 81 additions & 0 deletions src/ui/static/flags/1x1/af.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions src/ui/static/flags/1x1/ag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions src/ui/static/flags/1x1/ai.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/ui/static/flags/1x1/al.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/ui/static/flags/1x1/am.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/ui/static/flags/1x1/ao.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/ui/static/flags/1x1/aq.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions src/ui/static/flags/1x1/ar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b00e3c6

Please sign in to comment.