Porównaj commity

..

No commits in common. "6f7b58f2e24ca3f91c92f3a530755ef96fa7663d" and "3138e2a59645b71ed220b7e6c0cc7dafeca9adaf" have entirely different histories.

13 zmienionych plików z 427 dodań i 512 usunięć

Wyświetl plik

@ -16,7 +16,7 @@ audon.localhost {
}
}
livekit.localhost {
livekit.audon.localhost {
tls /etc/caddy/certs/cert.pem /etc/caddy/certs/key.pem
encode zstd gzip
reverse_proxy livekit:7880

Wyświetl plik

@ -6,7 +6,7 @@
// "image": "mcr.microsoft.com/devcontainers/universal:2-linux"
"dockerComposeFile": "docker-compose.dev.yaml",
"service": "devcontainer",
"workspaceFolder": "/audon-go",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
@ -33,8 +33,8 @@
"EditorConfig.EditorConfig"
]
}
},
}
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
"remoteUser": "root"
// "remoteUser": "root"
}

Wyświetl plik

@ -2,12 +2,10 @@ version: '3.1'
services:
devcontainer:
image: "mcr.microsoft.com/devcontainers/base:debian"
image: "mcr.microsoft.com/devcontainers/base:jammy"
volumes:
- ..:/audon-go:cached
- ../..:/workspaces:cached
command: sleep infinity
environment:
- "DOCKER_HOST=unix:///run/user/1000/docker.sock"
db:
image: mongo:6

1
.gitignore vendored
Wyświetl plik

@ -66,7 +66,6 @@ build/Release
# Dependency directories
node_modules/
jspm_packages/
.pnpm-store/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

Wyświetl plik

@ -29,7 +29,7 @@
{% end %}
</head>
<body>
<div id="app" data-version='0.3.2'></div>
<div id="app" data-version='0.3.1'></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>

Wyświetl plik

@ -1,6 +1,6 @@
{
"name": "audon-fe",
"version": "0.3.2",
"version": "0.3.1",
"private": true,
"scripts": {
"dev": "cp -v index.dev.html index.html && vite",

Plik diff jest za duży Load Diff

Wyświetl plik

@ -28,8 +28,7 @@ export default {
},
computed: {
uploadEnabled() {
// return this.roomToken?.original && this.roomToken?.indicator;
return false;
return this.roomToken?.original && this.roomToken?.indicator;
},
},
async mounted() {

Wyświetl plik

@ -17,21 +17,6 @@ enterRoom: "Enter"
leaveRoom: "Leave but keep this room open"
closeRoom: "Close this room"
close: "Close"
emojiReaction: "Open emoji reaction picker"
micStatus:
mute: "Mute microphone"
unmute: "Unmute microphone"
retry: "Retry enabling microphone"
request: "Send speaker request"
roomOperation:
operation: "Leave or close"
leave: "Leave this room"
close: "Close this room"
openRequests: "Open list of speaker requests"
edit: "Edit room information"
requestOperation:
decline: "Decline this speaker request"
accept: "Accept this speaker request"
connecting: "Connecting"
server: "Your Mastodon instance"
addressRequired: "Enter your instance address"
@ -55,9 +40,9 @@ form:
advertise: "Allow the bot ({bot}) to advertise your room"
relationships:
everyone: "Everyone"
following: "Followees only (Accounts you're following)"
follower: "Followers only (Accounts following you)"
knowing: "Followees and/or followers"
following: "Followed accounts only"
follower: "Followers-only"
knowing: "Followed accounts and/or followers"
mutual: "Your mutuals"
private: "CoHosts only"
shareRoomMessage: "Join my Audon room!\n{link}\n\nTitle: {title}"

Wyświetl plik

@ -17,18 +17,6 @@ enterRoom: "入室"
leaveRoom: "部屋を閉じずに退室"
closeRoom: "部屋を閉じる"
close: "閉じる"
emojiReaction: "絵文字ピッカーを開く"
micStatus:
mute: "マイクをミュート"
unmute: "マイクのミュートを解除"
retry: "マイク有効化を再試行"
request: "発言リクエストを送る"
roomOperation:
operation: "退室または閉室"
leave: "部屋から退室する"
close: "部屋を閉室する"
openRequests: "発言リクエストの一覧を開く"
edit: "部屋の情報を編集する"
connecting: "接続中"
server: "Mastodon サーバー"
addressRequired: "アドレスを入力してください"

Wyświetl plik

@ -47,14 +47,11 @@ export const useMastodonStore = defineStore("mastodon", {
this.authorized = true;
},
async updateAvatar(img, filename) {
return;
/*
if (this.client === null) return;
const avatarBlob = await (await fetch(img)).blob();
this.userinfo = await this.client.v1.accounts.updateCredentials({
avatar: new File([avatarBlob], `${Date.now()}_${filename}`),
});
*/
},
async revertAvatar() {
const token = await axios.get("/api/token");

Wyświetl plik

@ -257,18 +257,6 @@ export default {
}
return mdiMicrophone;
},
micStatusLabel() {
if (!(this.iamHost || this.iamCohost || this.iamSpeaker)) {
return this.$t("micStatus.request");
}
if (!this.micGranted) {
return this.$t("micStatus.retry");
}
if (this.iamMuted) {
return this.$t("micStatus.unmute");
}
return this.$t("micStatus.mute");
},
titleErrors() {
const errors = this.v$.editingRoomInfo.title.$errors;
const messages = map(errors, (e) => e.$message);
@ -809,7 +797,6 @@ export default {
:icon="mdiCheck"
:disabled="isRequestLoading"
@click.once="onModerate(id, 'speaker')"
:aria-label="$t('requestOperation.accept')"
></v-btn>
<v-btn
size="small"
@ -817,7 +804,6 @@ export default {
:icon="mdiClose"
:disabled="isRequestLoading"
@click="onDeclineRequest(id)"
:aria-label="$t('requestOperation.decline')"
></v-btn>
</template>
<v-list-item-subtitle>
@ -853,7 +839,6 @@ export default {
@click="showRequestedNotification = false"
:icon="mdiClose"
size="small"
:aria-label="$t('close')"
></v-btn>
</template>
</v-snackbar>
@ -878,7 +863,6 @@ export default {
@click="showRequestNotification = false"
:icon="mdiClose"
size="small"
:aria-label="$('close')"
></v-btn>
</template>
</v-snackbar>
@ -895,7 +879,6 @@ export default {
size="small"
variant="text"
color="white"
:aria-label="$t('roomOperation.edit')"
:icon="mdiPencil"
@click="showEditDialog = true"
></v-btn>
@ -972,7 +955,6 @@ export default {
<v-card-actions v-else class="justify-center" style="gap: 20px">
<v-btn
:icon="mdiEmoticon"
:aria-label="$t('emojiReaction')"
color="white"
variant="flat"
@click="onPickerPopup"
@ -981,7 +963,6 @@ export default {
</v-btn>
<v-btn
:icon="micStatusIcon"
:aria-label="micStatusLabel"
color="white"
variant="flat"
@click="onToggleMute"
@ -991,7 +972,6 @@ export default {
<v-btn
:icon="mdiLogout"
color="red"
:aria-label="$t('roomOperation.operation')"
:disabled="loading"
variant="flat"
v-bind="props"
@ -1000,7 +980,6 @@ export default {
<v-list>
<v-list-item
:title="$t('closeRoom')"
:aria-label="$t('roomOperation.close')"
:prepend-icon="mdiCloseBoxOutline"
@click="onRoomClose"
class="text-red"
@ -1008,7 +987,6 @@ export default {
<v-list-item
:disabled="isLastHost"
:title="$t('leaveRoom')"
:aria-label="$t('roomOperation.leave')"
:prepend-icon="mdiExitRun"
@click="onLeave"
>
@ -1020,7 +998,6 @@ export default {
:icon="mdiLogout"
color="red"
:disabled="loading"
:aria-label="$t('roomOperation.leave')"
@click="onLeave"
variant="flat"
></v-btn>
@ -1032,7 +1009,6 @@ export default {
>
<v-btn
:icon="mdiAccountVoice"
:aria-label="$t('roomOperation.openRequests')"
variant="flat"
color="white"
@click="

Wyświetl plik

@ -236,9 +236,8 @@ func getAppConfig(server string) (*mastodon.AppConfig, error) {
redirectURI = u.String()
conf := &mastodon.AppConfig{
ClientName: "Audon",
// Scopes: "read:accounts read:follows write:accounts",
Scopes: "read:accounts read:follows",
ClientName: "Audon",
Scopes: "read:accounts read:follows write:accounts",
Website: "https://codeberg.org/nmkj/audon",
RedirectURIs: redirectURI,
}