asineth0 / ut-shops

Quick website for Unturned shops

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ut-store

Notes

dev.start();

const channel = dev.store.state.value.channels.find(
  (channel) => channel.id === location.toString().split("/").at(-1)
);

const users = [];

for (const user of channel.users) {
  users.push({
    id: user.id,
    publicKey: btoa(String.fromCharCode(...user.publicKey)),
  });
}

users.push({
  id: dev.store.state.value.user.id,
  publicKey: btoa(
    String.fromCharCode(...dev.store.state.value.config.publicKey)
  ),
});

console.log(
  JSON.stringify({
    token: btoa(String.fromCharCode(...dev.store.state.value.config.token)),
    privateKey: btoa(
      String.fromCharCode(...dev.store.state.value.config.privateKey)
    ),
    channel: {
      id: channel.id,
      users,
    },
  })
);

About

Quick website for Unturned shops

License:Other


Languages

Language:Vue 69.9%Language:TypeScript 23.7%Language:Dockerfile 2.4%Language:JavaScript 2.0%Language:Shell 1.3%Language:HTML 0.7%