Skip to content

Commit

Permalink
Merge pull request #149 from StarfilesFileSharing/alpha
Browse files Browse the repository at this point in the history
Alpha
  • Loading branch information
QuixThe2nd authored Nov 5, 2024
2 parents fa81042 + 59dcf6b commit 05785d2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
deno-version: v2.x

- name: Install Dependencies
run: deno install --allow-scripts=npm:[email protected],npm:[email protected],npm:[email protected],npm:[email protected],npm:[email protected]
run: deno install --allow-scripts=npm:[email protected],npm:[email protected],npm:[email protected],npm:[email protected]

- name: Compile for linux-x86_64
run: deno run build-linux-x86_64
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:18
WORKDIR /app
COPY . .
RUN deno install --allow-scripts=npm:[email protected],npm:[email protected],npm:[email protected],npm:[email protected],npm:[email protected]
RUN deno install --allow-scripts=npm:[email protected],npm:[email protected],npm:[email protected],npm:[email protected]
RUN build
EXPOSE 80
CMD ["deno", "task", "start"]
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@starfiles/hydrafiles",
"version": "0.7.35",
"version": "0.7.36",
"description": "The (P2P) web privacy layer.",
"main": "src/hydrafiles.ts",
"exports": {
Expand Down
1 change: 0 additions & 1 deletion deno.lock

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

4 changes: 2 additions & 2 deletions public/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ <h3>Files</h3>
}

async function fetchAndPopulatePeers() {
const peers = await window.hydrafiles.http.getPeers();
const peers = await window.hydrafiles.rpcClient.http.getPeers();
const peersEl = document.getElementById('peers');
peersEl.innerHTML = '';
peers.forEach(node => {
Expand All @@ -182,7 +182,7 @@ <h3>Files</h3>
peersEl.appendChild(li);
});

const rtcPeers = Object.entries(window.hydrafiles.rtc.peerConnections);
const rtcPeers = Object.entries(window.hydrafiles.rpcClient.rtc.peerConnections);
const tbody = document.getElementById("peerTable").querySelector("tbody");

tbody.innerHTML = "";
Expand Down
3 changes: 1 addition & 2 deletions src/rpc/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import { encode as base32Encode } from "https://deno.land/[email protected]/encoding/b
import type Hydrafiles from "../hydrafiles.ts";
// import { BLOCKSDIR } from "./block.ts";
import File from "../file.ts";
import Utils from "../utils.ts";
import Utils, { type Base64 } from "../utils.ts";
import { join } from "https://deno.land/[email protected]/path/mod.ts";
import type Base64 from "npm:base64";
import { HTTPPeer } from "./peers/http.ts";
import { SignallingMessage } from "./peers/rtc.ts";
import { serveFile } from "https://deno.land/[email protected]/http/file_server.ts";
Expand Down

0 comments on commit 05785d2

Please sign in to comment.