diff --git a/.gitignore b/.gitignore index 23acfec..4e7557f 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,7 @@ # vendor/ node_modules/ -web/dist/ +frontend/dist/ dist/ package-lock.json yarn.lock diff --git a/web/CodeMirror.svelte b/frontend/CodeMirror.svelte similarity index 100% rename from web/CodeMirror.svelte rename to frontend/CodeMirror.svelte diff --git a/web/CodeMirrorConfig.js b/frontend/CodeMirrorConfig.js similarity index 100% rename from web/CodeMirrorConfig.js rename to frontend/CodeMirrorConfig.js diff --git a/web/DialogConfirm.svelte b/frontend/DialogConfirm.svelte similarity index 100% rename from web/DialogConfirm.svelte rename to frontend/DialogConfirm.svelte diff --git a/web/FileDrop.svelte b/frontend/FileDrop.svelte similarity index 100% rename from web/FileDrop.svelte rename to frontend/FileDrop.svelte diff --git a/web/GlobalTooltip.svelte b/frontend/GlobalTooltip.svelte similarity index 100% rename from web/GlobalTooltip.svelte rename to frontend/GlobalTooltip.svelte diff --git a/web/Menu.svelte b/frontend/Menu.svelte similarity index 100% rename from web/Menu.svelte rename to frontend/Menu.svelte diff --git a/web/MenuBar.svelte b/frontend/MenuBar.svelte similarity index 100% rename from web/MenuBar.svelte rename to frontend/MenuBar.svelte diff --git a/web/Messages.svelte b/frontend/Messages.svelte similarity index 100% rename from web/Messages.svelte rename to frontend/Messages.svelte diff --git a/web/Overlay.svelte b/frontend/Overlay.svelte similarity index 100% rename from web/Overlay.svelte rename to frontend/Overlay.svelte diff --git a/web/Portal.svelte b/frontend/Portal.svelte similarity index 100% rename from web/Portal.svelte rename to frontend/Portal.svelte diff --git a/web/Progress.svelte b/frontend/Progress.svelte similarity index 100% rename from web/Progress.svelte rename to frontend/Progress.svelte diff --git a/web/ShowSupportsFileSystem.svelte b/frontend/ShowSupportsFileSystem.svelte similarity index 100% rename from web/ShowSupportsFileSystem.svelte rename to frontend/ShowSupportsFileSystem.svelte diff --git a/web/Spinners.svelte b/frontend/Spinners.svelte similarity index 100% rename from web/Spinners.svelte rename to frontend/Spinners.svelte diff --git a/web/Test.svelte b/frontend/Test.svelte similarity index 100% rename from web/Test.svelte rename to frontend/Test.svelte diff --git a/web/TopNav.svelte b/frontend/TopNav.svelte similarity index 100% rename from web/TopNav.svelte rename to frontend/TopNav.svelte diff --git a/web/WinDialogBase.svelte b/frontend/WinDialogBase.svelte similarity index 100% rename from web/WinDialogBase.svelte rename to frontend/WinDialogBase.svelte diff --git a/web/WinDialogBaseNoOverlay.svelte b/frontend/WinDialogBaseNoOverlay.svelte similarity index 100% rename from web/WinDialogBaseNoOverlay.svelte rename to frontend/WinDialogBaseNoOverlay.svelte diff --git a/web/actions/ensurevisible.js b/frontend/actions/ensurevisible.js similarity index 100% rename from web/actions/ensurevisible.js rename to frontend/actions/ensurevisible.js diff --git a/web/actions/focus.js b/frontend/actions/focus.js similarity index 100% rename from web/actions/focus.js rename to frontend/actions/focus.js diff --git a/web/actions/positionnode.js b/frontend/actions/positionnode.js similarity index 100% rename from web/actions/positionnode.js rename to frontend/actions/positionnode.js diff --git a/web/actions/scrollintoview.js b/frontend/actions/scrollintoview.js similarity index 100% rename from web/actions/scrollintoview.js rename to frontend/actions/scrollintoview.js diff --git a/web/actions/tooltip.js b/frontend/actions/tooltip.js similarity index 100% rename from web/actions/tooltip.js rename to frontend/actions/tooltip.js diff --git a/web/base.css b/frontend/base.css similarity index 100% rename from web/base.css rename to frontend/base.css diff --git a/web/browser.js b/frontend/browser.js similarity index 100% rename from web/browser.js rename to frontend/browser.js diff --git a/web/calc/Calc.svelte b/frontend/calc/Calc.svelte similarity index 100% rename from web/calc/Calc.svelte rename to frontend/calc/Calc.svelte diff --git a/web/calc/index.html b/frontend/calc/index.html similarity index 100% rename from web/calc/index.html rename to frontend/calc/index.html diff --git a/web/calc/main.js b/frontend/calc/main.js similarity index 100% rename from web/calc/main.js rename to frontend/calc/main.js diff --git a/web/cmcommands.js b/frontend/cmcommands.js similarity index 100% rename from web/cmcommands.js rename to frontend/cmcommands.js diff --git a/web/cmcommands.test.js b/frontend/cmcommands.test.js similarity index 100% rename from web/cmcommands.test.js rename to frontend/cmcommands.test.js diff --git a/web/cmexts.js b/frontend/cmexts.js similarity index 100% rename from web/cmexts.js rename to frontend/cmexts.js diff --git a/web/cmlangs.js b/frontend/cmlangs.js similarity index 100% rename from web/cmlangs.js rename to frontend/cmlangs.js diff --git a/web/cmtesthelper.js b/frontend/cmtesthelper.js similarity index 100% rename from web/cmtesthelper.js rename to frontend/cmtesthelper.js diff --git a/web/cmutil.js b/frontend/cmutil.js similarity index 100% rename from web/cmutil.js rename to frontend/cmutil.js diff --git a/web/dateutil.js b/frontend/dateutil.js similarity index 100% rename from web/dateutil.js rename to frontend/dateutil.js diff --git a/web/dbutil.js b/frontend/dbutil.js similarity index 100% rename from web/dbutil.js rename to frontend/dbutil.js diff --git a/web/events.js b/frontend/events.js similarity index 100% rename from web/events.js rename to frontend/events.js diff --git a/web/fileutil.js b/frontend/fileutil.js similarity index 100% rename from web/fileutil.js rename to frontend/fileutil.js diff --git a/web/gisteditor/About.svelte b/frontend/gisteditor/About.svelte similarity index 100% rename from web/gisteditor/About.svelte rename to frontend/gisteditor/About.svelte diff --git a/web/gisteditor/CreateGists.svelte b/frontend/gisteditor/CreateGists.svelte similarity index 100% rename from web/gisteditor/CreateGists.svelte rename to frontend/gisteditor/CreateGists.svelte diff --git a/web/gisteditor/EditorCodeMirror.svelte b/frontend/gisteditor/EditorCodeMirror.svelte similarity index 100% rename from web/gisteditor/EditorCodeMirror.svelte rename to frontend/gisteditor/EditorCodeMirror.svelte diff --git a/web/gisteditor/GistDescription.svelte b/frontend/gisteditor/GistDescription.svelte similarity index 100% rename from web/gisteditor/GistDescription.svelte rename to frontend/gisteditor/GistDescription.svelte diff --git a/web/gisteditor/GistEditor.svelte b/frontend/gisteditor/GistEditor.svelte similarity index 100% rename from web/gisteditor/GistEditor.svelte rename to frontend/gisteditor/GistEditor.svelte diff --git a/web/gisteditor/GistEditorNav.svelte b/frontend/gisteditor/GistEditorNav.svelte similarity index 100% rename from web/gisteditor/GistEditorNav.svelte rename to frontend/gisteditor/GistEditorNav.svelte diff --git a/web/gisteditor/GistLine.svelte b/frontend/gisteditor/GistLine.svelte similarity index 100% rename from web/gisteditor/GistLine.svelte rename to frontend/gisteditor/GistLine.svelte diff --git a/web/gisteditor/HelpButton.svelte b/frontend/gisteditor/HelpButton.svelte similarity index 100% rename from web/gisteditor/HelpButton.svelte rename to frontend/gisteditor/HelpButton.svelte diff --git a/web/gisteditor/Login.svelte b/frontend/gisteditor/Login.svelte similarity index 100% rename from web/gisteditor/Login.svelte rename to frontend/gisteditor/Login.svelte diff --git a/web/gisteditor/NoGist.svelte b/frontend/gisteditor/NoGist.svelte similarity index 100% rename from web/gisteditor/NoGist.svelte rename to frontend/gisteditor/NoGist.svelte diff --git a/web/gisteditor/SelectLangDialog.svelte b/frontend/gisteditor/SelectLangDialog.svelte similarity index 100% rename from web/gisteditor/SelectLangDialog.svelte rename to frontend/gisteditor/SelectLangDialog.svelte diff --git a/web/gisteditor/edit.html b/frontend/gisteditor/edit.html similarity index 100% rename from web/gisteditor/edit.html rename to frontend/gisteditor/edit.html diff --git a/web/gisteditor/edit.js b/frontend/gisteditor/edit.js similarity index 100% rename from web/gisteditor/edit.js rename to frontend/gisteditor/edit.js diff --git a/web/gisteditor/gisteditor.css b/frontend/gisteditor/gisteditor.css similarity index 100% rename from web/gisteditor/gisteditor.css rename to frontend/gisteditor/gisteditor.css diff --git a/web/gisteditor/index.html b/frontend/gisteditor/index.html similarity index 100% rename from web/gisteditor/index.html rename to frontend/gisteditor/index.html diff --git a/web/gisteditor/langs.js b/frontend/gisteditor/langs.js similarity index 100% rename from web/gisteditor/langs.js rename to frontend/gisteditor/langs.js diff --git a/web/gisteditor/nogist.html b/frontend/gisteditor/nogist.html similarity index 100% rename from web/gisteditor/nogist.html rename to frontend/gisteditor/nogist.html diff --git a/web/gisteditor/router.js b/frontend/gisteditor/router.js similarity index 100% rename from web/gisteditor/router.js rename to frontend/gisteditor/router.js diff --git a/web/gisteditor/store.js b/frontend/gisteditor/store.js similarity index 100% rename from web/gisteditor/store.js rename to frontend/gisteditor/store.js diff --git a/web/github_login.js b/frontend/github_login.js similarity index 100% rename from web/github_login.js rename to frontend/github_login.js diff --git a/web/github_success.html b/frontend/github_success.html similarity index 100% rename from web/github_success.html rename to frontend/github_success.html diff --git a/web/githubapi.js b/frontend/githubapi.js similarity index 100% rename from web/githubapi.js rename to frontend/githubapi.js diff --git a/web/goplayground/GoPlayground.svelte b/frontend/goplayground/GoPlayground.svelte similarity index 100% rename from web/goplayground/GoPlayground.svelte rename to frontend/goplayground/GoPlayground.svelte diff --git a/web/goplayground/index.html b/frontend/goplayground/index.html similarity index 100% rename from web/goplayground/index.html rename to frontend/goplayground/index.html diff --git a/web/goplayground/main.js b/frontend/goplayground/main.js similarity index 100% rename from web/goplayground/main.js rename to frontend/goplayground/main.js diff --git a/web/httputil.js b/frontend/httputil.js similarity index 100% rename from web/httputil.js rename to frontend/httputil.js diff --git a/web/icons/ArrowLeft.svelte b/frontend/icons/ArrowLeft.svelte similarity index 100% rename from web/icons/ArrowLeft.svelte rename to frontend/icons/ArrowLeft.svelte diff --git a/web/icons/ArrowRight.svelte b/frontend/icons/ArrowRight.svelte similarity index 100% rename from web/icons/ArrowRight.svelte rename to frontend/icons/ArrowRight.svelte diff --git a/web/icons/ArrowUp.svelte b/frontend/icons/ArrowUp.svelte similarity index 100% rename from web/icons/ArrowUp.svelte rename to frontend/icons/ArrowUp.svelte diff --git a/web/icons/BookmarkAdd.svelte b/frontend/icons/BookmarkAdd.svelte similarity index 100% rename from web/icons/BookmarkAdd.svelte rename to frontend/icons/BookmarkAdd.svelte diff --git a/web/icons/Close.svelte b/frontend/icons/Close.svelte similarity index 100% rename from web/icons/Close.svelte rename to frontend/icons/Close.svelte diff --git a/web/icons/CopyFile.svelte b/frontend/icons/CopyFile.svelte similarity index 100% rename from web/icons/CopyFile.svelte rename to frontend/icons/CopyFile.svelte diff --git a/web/icons/File.svelte b/frontend/icons/File.svelte similarity index 100% rename from web/icons/File.svelte rename to frontend/icons/File.svelte diff --git a/web/icons/Folder.svelte b/frontend/icons/Folder.svelte similarity index 100% rename from web/icons/Folder.svelte rename to frontend/icons/Folder.svelte diff --git a/web/icons/GitHub.svelte b/frontend/icons/GitHub.svelte similarity index 100% rename from web/icons/GitHub.svelte rename to frontend/icons/GitHub.svelte diff --git a/web/icons/SortAscending.svelte b/frontend/icons/SortAscending.svelte similarity index 100% rename from web/icons/SortAscending.svelte rename to frontend/icons/SortAscending.svelte diff --git a/web/icons/SortDescending.svelte b/frontend/icons/SortDescending.svelte similarity index 100% rename from web/icons/SortDescending.svelte rename to frontend/icons/SortDescending.svelte diff --git a/web/icons/Star.svelte b/frontend/icons/Star.svelte similarity index 100% rename from web/icons/Star.svelte rename to frontend/icons/Star.svelte diff --git a/web/icons/Twitter.svelte b/frontend/icons/Twitter.svelte similarity index 100% rename from web/icons/Twitter.svelte rename to frontend/icons/Twitter.svelte diff --git a/web/image-resize-optimize/ImageOptim.svelte b/frontend/image-resize-optimize/ImageOptim.svelte similarity index 100% rename from web/image-resize-optimize/ImageOptim.svelte rename to frontend/image-resize-optimize/ImageOptim.svelte diff --git a/web/image-resize-optimize/index.html b/frontend/image-resize-optimize/index.html similarity index 100% rename from web/image-resize-optimize/index.html rename to frontend/image-resize-optimize/index.html diff --git a/web/index.html b/frontend/index.html similarity index 100% rename from web/index.html rename to frontend/index.html diff --git a/web/index.notepad2.html b/frontend/index.notepad2.html similarity index 100% rename from web/index.notepad2.html rename to frontend/index.notepad2.html diff --git a/web/keys.js b/frontend/keys.js similarity index 100% rename from web/keys.js rename to frontend/keys.js diff --git a/web/libarchive/compressed-file.js b/frontend/libarchive/compressed-file.js similarity index 100% rename from web/libarchive/compressed-file.js rename to frontend/libarchive/compressed-file.js diff --git a/web/libarchive/libarchive.js b/frontend/libarchive/libarchive.js similarity index 100% rename from web/libarchive/libarchive.js rename to frontend/libarchive/libarchive.js diff --git a/web/libarchive/wasm-gen/libarchive.js b/frontend/libarchive/wasm-gen/libarchive.js similarity index 100% rename from web/libarchive/wasm-gen/libarchive.js rename to frontend/libarchive/wasm-gen/libarchive.js diff --git a/web/libarchive/wasm-gen/libarchive.wasm b/frontend/libarchive/wasm-gen/libarchive.wasm similarity index 100% rename from web/libarchive/wasm-gen/libarchive.wasm rename to frontend/libarchive/wasm-gen/libarchive.wasm diff --git a/web/libarchive/worker-bundle.js b/frontend/libarchive/worker-bundle.js similarity index 100% rename from web/libarchive/worker-bundle.js rename to frontend/libarchive/worker-bundle.js diff --git a/web/main.js b/frontend/main.js similarity index 100% rename from web/main.js rename to frontend/main.js diff --git a/web/natural_sort.js b/frontend/natural_sort.js similarity index 100% rename from web/natural_sort.js rename to frontend/natural_sort.js diff --git a/web/notepad2/DialogAbout.svelte b/frontend/notepad2/DialogAbout.svelte similarity index 100% rename from web/notepad2/DialogAbout.svelte rename to frontend/notepad2/DialogAbout.svelte diff --git a/web/notepad2/DialogAddFavorite.svelte b/frontend/notepad2/DialogAddFavorite.svelte similarity index 100% rename from web/notepad2/DialogAddFavorite.svelte rename to frontend/notepad2/DialogAddFavorite.svelte diff --git a/web/notepad2/DialogAskSaveChanges.svelte b/frontend/notepad2/DialogAskSaveChanges.svelte similarity index 100% rename from web/notepad2/DialogAskSaveChanges.svelte rename to frontend/notepad2/DialogAskSaveChanges.svelte diff --git a/web/notepad2/DialogBrowse.svelte b/frontend/notepad2/DialogBrowse.svelte similarity index 100% rename from web/notepad2/DialogBrowse.svelte rename to frontend/notepad2/DialogBrowse.svelte diff --git a/web/notepad2/DialogEncloseSelection.svelte b/frontend/notepad2/DialogEncloseSelection.svelte similarity index 100% rename from web/notepad2/DialogEncloseSelection.svelte rename to frontend/notepad2/DialogEncloseSelection.svelte diff --git a/web/notepad2/DialogFavorites.svelte b/frontend/notepad2/DialogFavorites.svelte similarity index 100% rename from web/notepad2/DialogFavorites.svelte rename to frontend/notepad2/DialogFavorites.svelte diff --git a/web/notepad2/DialogFileOpen.svelte b/frontend/notepad2/DialogFileOpen.svelte similarity index 100% rename from web/notepad2/DialogFileOpen.svelte rename to frontend/notepad2/DialogFileOpen.svelte diff --git a/web/notepad2/DialogFind.svelte b/frontend/notepad2/DialogFind.svelte similarity index 100% rename from web/notepad2/DialogFind.svelte rename to frontend/notepad2/DialogFind.svelte diff --git a/web/notepad2/DialogGoTo.svelte b/frontend/notepad2/DialogGoTo.svelte similarity index 100% rename from web/notepad2/DialogGoTo.svelte rename to frontend/notepad2/DialogGoTo.svelte diff --git a/web/notepad2/DialogInsertXmlTag.svelte b/frontend/notepad2/DialogInsertXmlTag.svelte similarity index 100% rename from web/notepad2/DialogInsertXmlTag.svelte rename to frontend/notepad2/DialogInsertXmlTag.svelte diff --git a/web/notepad2/DialogNotImplemented.svelte b/frontend/notepad2/DialogNotImplemented.svelte similarity index 100% rename from web/notepad2/DialogNotImplemented.svelte rename to frontend/notepad2/DialogNotImplemented.svelte diff --git a/web/notepad2/DialogSaveAs.svelte b/frontend/notepad2/DialogSaveAs.svelte similarity index 100% rename from web/notepad2/DialogSaveAs.svelte rename to frontend/notepad2/DialogSaveAs.svelte diff --git a/web/notepad2/DialogSelectScheme.svelte b/frontend/notepad2/DialogSelectScheme.svelte similarity index 100% rename from web/notepad2/DialogSelectScheme.svelte rename to frontend/notepad2/DialogSelectScheme.svelte diff --git a/web/notepad2/FsFile.js b/frontend/notepad2/FsFile.js similarity index 100% rename from web/notepad2/FsFile.js rename to frontend/notepad2/FsFile.js diff --git a/web/notepad2/Notepad2.ico b/frontend/notepad2/Notepad2.ico similarity index 100% rename from web/notepad2/Notepad2.ico rename to frontend/notepad2/Notepad2.ico diff --git a/web/notepad2/Notepad2.svelte b/frontend/notepad2/Notepad2.svelte similarity index 100% rename from web/notepad2/Notepad2.svelte rename to frontend/notepad2/Notepad2.svelte diff --git a/web/notepad2/Settings.js b/frontend/notepad2/Settings.js similarity index 100% rename from web/notepad2/Settings.js rename to frontend/notepad2/Settings.js diff --git a/web/notepad2/Toolbar.svelte b/frontend/notepad2/Toolbar.svelte similarity index 100% rename from web/notepad2/Toolbar.svelte rename to frontend/notepad2/Toolbar.svelte diff --git a/web/notepad2/Toolbar16.bmp b/frontend/notepad2/Toolbar16.bmp similarity index 100% rename from web/notepad2/Toolbar16.bmp rename to frontend/notepad2/Toolbar16.bmp diff --git a/web/notepad2/Toolbar24.bmp b/frontend/notepad2/Toolbar24.bmp similarity index 100% rename from web/notepad2/Toolbar24.bmp rename to frontend/notepad2/Toolbar24.bmp diff --git a/web/notepad2/Toolbar24.png b/frontend/notepad2/Toolbar24.png similarity index 100% rename from web/notepad2/Toolbar24.png rename to frontend/notepad2/Toolbar24.png diff --git a/web/notepad2/Toolbar32.bmp b/frontend/notepad2/Toolbar32.bmp similarity index 100% rename from web/notepad2/Toolbar32.bmp rename to frontend/notepad2/Toolbar32.bmp diff --git a/web/notepad2/Toolbar40.bmp b/frontend/notepad2/Toolbar40.bmp similarity index 100% rename from web/notepad2/Toolbar40.bmp rename to frontend/notepad2/Toolbar40.bmp diff --git a/web/notepad2/Toolbar48.bmp b/frontend/notepad2/Toolbar48.bmp similarity index 100% rename from web/notepad2/Toolbar48.bmp rename to frontend/notepad2/Toolbar48.bmp diff --git a/web/notepad2/editorConfig.js b/frontend/notepad2/editorConfig.js similarity index 100% rename from web/notepad2/editorConfig.js rename to frontend/notepad2/editorConfig.js diff --git a/web/notepad2/events.js b/frontend/notepad2/events.js similarity index 100% rename from web/notepad2/events.js rename to frontend/notepad2/events.js diff --git a/web/notepad2/events.notepad2.js b/frontend/notepad2/events.notepad2.js similarity index 100% rename from web/notepad2/events.notepad2.js rename to frontend/notepad2/events.notepad2.js diff --git a/web/notepad2/index.html b/frontend/notepad2/index.html similarity index 100% rename from web/notepad2/index.html rename to frontend/notepad2/index.html diff --git a/web/notepad2/menu-notepad2.js b/frontend/notepad2/menu-notepad2.js similarity index 100% rename from web/notepad2/menu-notepad2.js rename to frontend/notepad2/menu-notepad2.js diff --git a/web/notepad2/np2store.js b/frontend/notepad2/np2store.js similarity index 100% rename from web/notepad2/np2store.js rename to frontend/notepad2/np2store.js diff --git a/web/notepad2/unicodeChars.js b/frontend/notepad2/unicodeChars.js similarity index 100% rename from web/notepad2/unicodeChars.js rename to frontend/notepad2/unicodeChars.js diff --git a/web/popup.js b/frontend/popup.js similarity index 100% rename from web/popup.js rename to frontend/popup.js diff --git a/web/qrscanner/index.html b/frontend/qrscanner/index.html similarity index 100% rename from web/qrscanner/index.html rename to frontend/qrscanner/index.html diff --git a/web/qrscanner/main.js b/frontend/qrscanner/main.js similarity index 100% rename from web/qrscanner/main.js rename to frontend/qrscanner/main.js diff --git a/web/qrscanner/qrscanner.svelte b/frontend/qrscanner/qrscanner.svelte similarity index 100% rename from web/qrscanner/qrscanner.svelte rename to frontend/qrscanner/qrscanner.svelte diff --git a/web/reader/ComicBookReader.svelte b/frontend/reader/ComicBookReader.svelte similarity index 100% rename from web/reader/ComicBookReader.svelte rename to frontend/reader/ComicBookReader.svelte diff --git a/web/reader/db.js b/frontend/reader/db.js similarity index 100% rename from web/reader/db.js rename to frontend/reader/db.js diff --git a/web/reader/index.html b/frontend/reader/index.html similarity index 100% rename from web/reader/index.html rename to frontend/reader/index.html diff --git a/web/reader/main.js b/frontend/reader/main.js similarity index 100% rename from web/reader/main.js rename to frontend/reader/main.js diff --git a/web/sniffFileType.js b/frontend/sniffFileType.js similarity index 100% rename from web/sniffFileType.js rename to frontend/sniffFileType.js diff --git a/web/strutil.js b/frontend/strutil.js similarity index 100% rename from web/strutil.js rename to frontend/strutil.js diff --git a/web/strutil.test.js b/frontend/strutil.test.js similarity index 100% rename from web/strutil.test.js rename to frontend/strutil.test.js diff --git a/web/svg/SvgAdd.svelte b/frontend/svg/SvgAdd.svelte similarity index 100% rename from web/svg/SvgAdd.svelte rename to frontend/svg/SvgAdd.svelte diff --git a/web/svg/SvgArrowDown.svelte b/frontend/svg/SvgArrowDown.svelte similarity index 100% rename from web/svg/SvgArrowDown.svelte rename to frontend/svg/SvgArrowDown.svelte diff --git a/web/svg/SvgDots.svelte b/frontend/svg/SvgDots.svelte similarity index 100% rename from web/svg/SvgDots.svelte rename to frontend/svg/SvgDots.svelte diff --git a/web/svg/SvgFacebook.svelte b/frontend/svg/SvgFacebook.svelte similarity index 100% rename from web/svg/SvgFacebook.svelte rename to frontend/svg/SvgFacebook.svelte diff --git a/web/svg/SvgHome.svelte b/frontend/svg/SvgHome.svelte similarity index 100% rename from web/svg/SvgHome.svelte rename to frontend/svg/SvgHome.svelte diff --git a/web/svg/SvgLinkedin.svelte b/frontend/svg/SvgLinkedin.svelte similarity index 100% rename from web/svg/SvgLinkedin.svelte rename to frontend/svg/SvgLinkedin.svelte diff --git a/web/svg/SvgReddit.svelte b/frontend/svg/SvgReddit.svelte similarity index 100% rename from web/svg/SvgReddit.svelte rename to frontend/svg/SvgReddit.svelte diff --git a/web/svg/SvgTwitter.svelte b/frontend/svg/SvgTwitter.svelte similarity index 100% rename from web/svg/SvgTwitter.svelte rename to frontend/svg/SvgTwitter.svelte diff --git a/web/test.html b/frontend/test.html similarity index 100% rename from web/test.html rename to frontend/test.html diff --git a/web/testhelpers.js b/frontend/testhelpers.js similarity index 100% rename from web/testhelpers.js rename to frontend/testhelpers.js diff --git a/web/unzip/Unzip.svelte b/frontend/unzip/Unzip.svelte similarity index 100% rename from web/unzip/Unzip.svelte rename to frontend/unzip/Unzip.svelte diff --git a/web/unzip/index.html b/frontend/unzip/index.html similarity index 100% rename from web/unzip/index.html rename to frontend/unzip/index.html diff --git a/web/unzip/main.js b/frontend/unzip/main.js similarity index 100% rename from web/unzip/main.js rename to frontend/unzip/main.js diff --git a/web/util.js b/frontend/util.js similarity index 100% rename from web/util.js rename to frontend/util.js diff --git a/web/util.test.js b/frontend/util.test.js similarity index 100% rename from web/util.test.js rename to frontend/util.test.js diff --git a/web/wc/Folder.svelte b/frontend/wc/Folder.svelte similarity index 100% rename from web/wc/Folder.svelte rename to frontend/wc/Folder.svelte diff --git a/web/wc/index.html b/frontend/wc/index.html similarity index 100% rename from web/wc/index.html rename to frontend/wc/index.html diff --git a/web/wc/main.js b/frontend/wc/main.js similarity index 100% rename from web/wc/main.js rename to frontend/wc/main.js diff --git a/web/wc/wc.svelte b/frontend/wc/wc.svelte similarity index 100% rename from web/wc/wc.svelte rename to frontend/wc/wc.svelte diff --git a/web/wc/wcstore.js b/frontend/wc/wcstore.js similarity index 100% rename from web/wc/wcstore.js rename to frontend/wc/wcstore.js diff --git a/jsconfig.json b/jsconfig.json index 197b6f0..2079c8c 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -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"] } diff --git a/server/server.go b/server/server.go index f90d750..9ab9b93 100644 --- a/server/server.go +++ b/server/server.go @@ -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 := "" diff --git a/tailwind.config.cjs b/tailwind.config.cjs index 9806f88..e1a16f1 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -3,7 +3,7 @@ const plugin = require("tailwindcss/plugin"); module.exports = { - content: ["./web/**/*.{html,js,svelte}"], + content: ["./frontend/**/*.{html,js,svelte}"], theme: { extend: { animation: { diff --git a/vite.config.js b/vite.config.js index 936f307..03d8ce9 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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 @@ -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: { @@ -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"), }, ],