Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14,301 changes: 6,066 additions & 8,235 deletions package-lock.json

Large diffs are not rendered by default.

26 changes: 11 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "urbit-dashboard",
"version": "0.1.0",
"version": "0.2.1",
"author": "dcSpark",
"license": "MIT",
"description": "Urbit Web App which allows you to easily perform administrative tasks on your Urbit ship.",
Expand All @@ -19,35 +19,31 @@
"install:clean": "rm -rf node_modules/ && rm -rf package-lock.json && npm install && npm start"
},
"dependencies": {
"@dcspark/uv-core": "^0.3.6",
"@emotion/react": "11.1.5",
"@emotion/styled": "11.1.5",
"@fortawesome/fontawesome-free": "5.15.2",
"@material-ui/core": "4.11.3",
"@material-ui/icons": "4.11.2",
"@material-ui/lab": "4.0.0-alpha.57",
"@tlon/sigil-js": "^1.4.4",
"@tlon/sigil-js": "^1.4.5",
"chart.js": "2.9.4",
"node-sass": "^6.0.1",
"follow-redirects": ">=1.14.7",
"immer": ">=9.0.6",
"node-forge": ">=1.0.0",
"node-sass": "^7.0.1",
"nouislider": "14.6.3",
"nth-check": ">=2.0.1",
"postcss": ">=8.2.13",
"prop-types": "15.7.2",
"react": "17.0.1",
"react-chartjs-2": "2.11.1",
"react-copy-to-clipboard": "5.0.3",
"react-datetime": "3.0.4",
"react-dom": "17.0.1",
"react-router-dom": "5.2.0",
"react-scripts": "4.0.2",
"@dcspark/uv-core": "^0.3.0",
"zustand": "^3.5.10",
"follow-redirects": ">=1.14.7",
"node-forge": ">=1.0.0",
"nth-check": ">=2.0.1",
"immer": ">=9.0.6",
"postcss": ">=8.2.13"




"react-scripts": "^5.0.1",
"zustand": "^3.7.2"
},
"eslintConfig": {
"extends": [
Expand Down
2 changes: 2 additions & 0 deletions src/layouts/Admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ const Admin = () => {

useEffect(() => {
console.log('using effect')
urbitVisor.on("sse", [], (data) => console.log(data, "sse received"));
checkConnection();
if (loaded) addConnectionListener(urbitVisor.on("connected", [], (message) => recheckConnection()));
if (isConnected) {
Expand All @@ -112,6 +113,7 @@ const Admin = () => {
if (isConnected && hasPerms) {
setShip();
loadData();
console.log("loaded data")
}
}, [isConnected, hasPerms])

Expand Down
3 changes: 1 addition & 2 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ export const useStore = create((set, get) => ({
channelsSubscription.unsubscribe();
harkSubscription.unsubscribe();
}
await urbitVisor.subscribe({ app: "graph-store", path: "/updates" });

await urbitVisor.subscribe({ app: "graph-store", path: "/updates" })
const met = await urbitVisor.subscribe({ app: "metadata-store", path: "/all" })
const metadataSubscription = urbitVisor.on("sse", ["metadata-update", "associations"], (data) => {
set({ metadata: data })
Expand Down
1 change: 0 additions & 1 deletion src/views/admin/ChatFeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const useStyles = makeStyles(componentStyles);

function ChatFeed() {
const { chatFeed } = useStore();

function extractText(content) {
return content.reduce((acc, el) => {
const type = Object.keys(el)[0];
Expand Down
Loading