Skip to content

Commit

Permalink
rename web/ => frontend/
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Sep 28, 2023
1 parent 06e4e7c commit 9ebb411
Show file tree
Hide file tree
Showing 155 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# vendor/

node_modules/
web/dist/
frontend/dist/
dist/
package-lock.json
yarn.lock
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
* Use global.d.ts instead of compilerOptions.types
* to avoid limiting type declarations.
*/
"include": ["web/**/*.d.ts", "web/**/*.js", "web/**/*.svelte"]
"include": ["frontend/**/*.d.ts", "frontend/**/*.js", "frontend/**/*.svelte"]
}
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func permRedirect(w http.ResponseWriter, r *http.Request, newURL string) {
}

// in dev, proxyHandler redirects assets to vite web server
// in prod, assets must be pre-built in web/dist directory
// in prod, assets must be pre-built in frontend/dist directory
func makeHTTPServer(proxyHandler *httputil.ReverseProxy) *http.Server {
distDir := ""

Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const plugin = require("tailwindcss/plugin");

module.exports = {
content: ["./web/**/*.{html,js,svelte}"],
content: ["./frontend/**/*.{html,js,svelte}"],
theme: {
extend: {
animation: {
Expand Down
32 changes: 16 additions & 16 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { svelte } from "@sveltejs/vite-plugin-svelte";

// https://vitejs.dev/config/
export default defineConfig({
root: "./web",
root: "./frontend",
build: {
// must be false because rollup-plugin-copy is called before
// the dir is emptied
Expand All @@ -15,24 +15,24 @@ export default defineConfig({
chunkSizeWarningLimit: 600000,
rollupOptions: {
input: {
main: resolve("web", "index.html"),
test: resolve("web", "test.html"),
unzip: resolve("web", "unzip", "index.html"),
wc: resolve("web", "wc", "index.html"),
main: resolve("frontend", "index.html"),
test: resolve("frontend", "test.html"),
unzip: resolve("frontend", "unzip", "index.html"),
wc: resolve("frontend", "wc", "index.html"),
image_resize_optimize: resolve(
"web",
"frontend",
"image-resize-optimize",
"index.html"
),
goplayground: resolve("web", "goplayground", "index.html"),
github_success: resolve("web", "github_success.html"),
notepad2: resolve("web", "notepad2", "index.html"),
calc: resolve("web", "calc", "index.html"),
qrscanner: resolve("web", "qrscanner", "index.html"),
goplayground: resolve("frontend", "goplayground", "index.html"),
github_success: resolve("frontend", "github_success.html"),
notepad2: resolve("frontend", "notepad2", "index.html"),
calc: resolve("frontend", "calc", "index.html"),
qrscanner: resolve("frontend", "qrscanner", "index.html"),
// gist editor
gisteditor: resolve("web", "gisteditor", "index.html"),
gistedit: resolve("web", "gisteditor", "edit.html"),
nogist: resolve("web", "gisteditor", "nogist.html"),
gisteditor: resolve("frontend", "gisteditor", "index.html"),
gistedit: resolve("frontend", "gisteditor", "edit.html"),
nogist: resolve("frontend", "gisteditor", "nogist.html"),
},

output: {
Expand Down Expand Up @@ -77,11 +77,11 @@ export default defineConfig({
verbose: true,
targets: [
{
src: "./web/notepad2/**/*.bmp",
src: "./frontend/notepad2/**/*.bmp",
dest: resolve("dist", "notepad2"),
},
{
src: "./web/libarchive/**/*",
src: "./frontend/libarchive/**/*",
dest: resolve("dist", "libarchive"),
},
],
Expand Down

0 comments on commit 9ebb411

Please sign in to comment.