enzostvs HF Staff commited on
Commit
e9ab078
·
1 Parent(s): d97a1d1

rename space url

Browse files
Files changed (2) hide show
  1. server.js +2 -2
  2. utils/consts.ts +1 -1
server.js CHANGED
@@ -38,7 +38,7 @@ app.use(bodyParser.json());
38
  app.use(express.static(path.join(__dirname, "dist")));
39
 
40
  const getPTag = (repoId) => {
41
- return `<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >QwenSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=${repoId}" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p>`;
42
  };
43
 
44
  app.get("/api/login", (_req, res) => {
@@ -397,7 +397,7 @@ app.get("/api/remix/:username/:repo", async (req, res) => {
397
  });
398
  }
399
  let html = await response.text();
400
- // remove the last p tag including this url https://enzostvs-deepsite.hf.space
401
  html = html.replace(getPTag(repoId), "");
402
 
403
  let user = null;
 
38
  app.use(express.static(path.join(__dirname, "dist")));
39
 
40
  const getPTag = (repoId) => {
41
+ return `<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-qwensite.hf.space/logo.svg" alt="qwensite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-qwensite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >QwenSite</a> - 🧬 <a href="https://enzostvs-qwensite.hf.space?remix=${repoId}" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p>`;
42
  };
43
 
44
  app.get("/api/login", (_req, res) => {
 
397
  });
398
  }
399
  let html = await response.text();
400
+ // remove the last p tag including this url https://enzostvs-qwensite.hf.space
401
  html = html.replace(getPTag(repoId), "");
402
 
403
  let user = null;
utils/consts.ts CHANGED
@@ -35,7 +35,7 @@ export const defaultHTML = `<!DOCTYPE html>
35
  <span>I'm ready to work,</span><br />
36
  Ask me anything.
37
  </h1>
38
- <img src="https://enzostvs-deepsite.hf.space/arrow.svg" class="arrow" />
39
  <script></script>
40
  </body>
41
  </html>
 
35
  <span>I'm ready to work,</span><br />
36
  Ask me anything.
37
  </h1>
38
+ <img src="https://enzostvs-qwensite.hf.space/arrow.svg" class="arrow" />
39
  <script></script>
40
  </body>
41
  </html>