Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
fix: bare path changed
Browse files Browse the repository at this point in the history
  • Loading branch information
IncognitoTGT committed Feb 11, 2024
1 parent 5774e5f commit ab5a216
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ampere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ npm install
# chatgpt code lmao

awk '{gsub("/~/", "/~/light/")}1' src/config.ts > tmpfile && mv tmpfile src/config.ts
awk '{gsub("http://localhost:8080/", "http://localhost:8080/bare/")}1' src/config.ts > tmpfile && mv tmpfile src/config.ts
awk '{gsub("http://localhost:8080/", "http://localhost:8080/bend/")}1' src/config.ts > tmpfile && mv tmpfile src/config.ts
# npm run build
# cp -r ./dist/ ./
# rm -rf ./dist ./src ./.vscode ./node_modules ./bin ./public ./tailwind.config.js .prettier* .git* *p* *ts* *.md
Expand Down
2 changes: 1 addition & 1 deletion public/ampere/config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions public/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ localforage.config({
const setUv = new Promise(async (resolve) => {
try {
const bare =
(await localforage.getItem("__bserver")) || location.origin + "/bare/";
(await localforage.getItem("__bserver")) || location.origin + "/bend/";
const proxyUrl = (await localforage.getItem("__hproxy")) || "";
const [proxyIp, proxyPort] = proxyUrl.split(":");
self.__uv$config.bare = bare;
Expand All @@ -34,7 +34,7 @@ const setUv = new Promise(async (resolve) => {
const setAmpere = new Promise(async (resolve) => {
try {
const bare =
(await localforage.getItem("__bserver")) || location.origin + "/bare/";
(await localforage.getItem("__bserver")) || location.origin + "/bend/";
self.__$ampere.config.server = bare;
self.ampere = new AmpereWorker(self.__$ampere.config);
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion public/uv/uv.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*global Ultraviolet*/
self.__uv$config = {
prefix: "/~/dark/",
bare: "/bare/",
bare: "/bend/",
encodeUrl: Ultraviolet.codec.aes.encode,
decodeUrl: Ultraviolet.codec.aes.decode,
handler: "/uv/uv.handler.js",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings/ProxySettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function ProxySettings() {
ref={bareServerInputRef}
spellCheck={false}
placeholder="Type a valid Bare URL"
defaultValue={localStorage.getItem("bareServer") || "/bare/"}
defaultValue={localStorage.getItem("bareServer") || "/bend/"}
/>
<Label htmlFor="name">Proxy Server (Advanced)</Label>
<Input
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default defineConfig({
"/bare": {
target: "http://localhost:8080/bare",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/bare/, ""),
rewrite: (path) => path.replace(/^\/bend/, ""),
},
"/search": {
target: "http://localhost:8080/search",
Expand Down

0 comments on commit ab5a216

Please sign in to comment.