Compare commits
14 Commits
e7812a816b
...
77966076ec
Author | SHA1 | Date |
---|---|---|
Natty | 77966076ec | |
Natty | fdfd3163b1 | |
Natty | a34829c63d | |
Natty | 970644ffc7 | |
Natty | f4fa5925f7 | |
Natty | 97407097b7 | |
Natty | acdc3e8bc1 | |
Natty | 771795d81f | |
Natty | 216f4229fc | |
Natty | 146c072c92 | |
Natty | 68abd4f787 | |
Natty | 8ee5ee8bc0 | |
Natty | 03be3d02e3 | |
Natty | 38753bab28 |
25
Dockerfile
25
Dockerfile
|
@ -1,20 +1,9 @@
|
||||||
FROM docker.io/alpine:3.18 as build_fe
|
|
||||||
|
|
||||||
RUN apk add --no-cache --no-progress git alpine-sdk nodejs-current npm
|
|
||||||
|
|
||||||
WORKDIR /fe_calckey
|
|
||||||
COPY ./fe_calckey/frontend ./frontend
|
|
||||||
WORKDIR /fe_calckey/frontend
|
|
||||||
|
|
||||||
RUN corepack enable && corepack prepare pnpm@latest --activate && pnpm i --frozen-lockfile
|
|
||||||
|
|
||||||
RUN env NODE_ENV=production sh -c "pnpm run build && pnpm run gulp"
|
|
||||||
|
|
||||||
|
|
||||||
FROM docker.io/rust:1.71-bullseye as build
|
FROM docker.io/rust:1.71-bullseye as build
|
||||||
|
|
||||||
RUN update-ca-certificates
|
RUN update-ca-certificates
|
||||||
|
|
||||||
|
RUN apt install -y git nodejs npm
|
||||||
|
|
||||||
ENV USER=magnetar
|
ENV USER=magnetar
|
||||||
ENV UID=10001
|
ENV UID=10001
|
||||||
|
|
||||||
|
@ -32,6 +21,14 @@ COPY ./ .
|
||||||
|
|
||||||
RUN cargo build --release --locked --workspace --bins
|
RUN cargo build --release --locked --workspace --bins
|
||||||
|
|
||||||
|
WORKDIR /fe_calckey
|
||||||
|
COPY ./fe_calckey/frontend ./frontend
|
||||||
|
WORKDIR /fe_calckey/frontend
|
||||||
|
|
||||||
|
RUN corepack enable && corepack prepare pnpm@latest --activate && pnpm i --frozen-lockfile
|
||||||
|
|
||||||
|
RUN env NODE_ENV=production sh -c "pnpm run build && pnpm run gulp"
|
||||||
|
|
||||||
FROM docker.io/debian:bullseye-slim
|
FROM docker.io/debian:bullseye-slim
|
||||||
|
|
||||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||||
|
@ -59,4 +56,4 @@ USER magnetar:magnetar
|
||||||
EXPOSE 4938/tcp
|
EXPOSE 4938/tcp
|
||||||
EXPOSE 4939/tcp
|
EXPOSE 4939/tcp
|
||||||
|
|
||||||
ENTRYPOINT ["/magnetar/magnetar"]
|
ENTRYPOINT ["/magnetar/magnetar"]
|
||||||
|
|
|
@ -147,7 +147,12 @@
|
||||||
"
|
"
|
||||||
class="followed"
|
class="followed"
|
||||||
>
|
>
|
||||||
{{ i18n.ts.followRequestYou }}
|
{{ i18n.ts.followRequestYou }}:
|
||||||
|
<MkFollowApproveButton
|
||||||
|
:user="user"
|
||||||
|
@refresh="emit('refresh')"
|
||||||
|
class="koudoku"
|
||||||
|
/>
|
||||||
</span>
|
</span>
|
||||||
<div v-if="$i?.isModerator || $i?.isAdmin">
|
<div v-if="$i?.isModerator || $i?.isAdmin">
|
||||||
<span
|
<span
|
||||||
|
@ -559,6 +564,7 @@ onUnmounted(() => {
|
||||||
|
|
||||||
> .nameColumn {
|
> .nameColumn {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
||||||
> .name {
|
> .name {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
line-height: 32px;
|
line-height: 32px;
|
||||||
|
@ -824,11 +830,21 @@ onUnmounted(() => {
|
||||||
display: block;
|
display: block;
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
|
|
||||||
> .bottom {
|
> .bottom {
|
||||||
> .username {
|
> .username {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> .nameColumn {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: baseline;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 0.5em 0.1em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
> .avatar {
|
> .avatar {
|
||||||
|
|
|
@ -78,7 +78,7 @@ note: "Příspěvek"
|
||||||
notes: "Příspěvky"
|
notes: "Příspěvky"
|
||||||
following: "Sledovaní"
|
following: "Sledovaní"
|
||||||
followers: "Sledující"
|
followers: "Sledující"
|
||||||
followsYou: "Sledují vás"
|
followsYou: "Sledujě tě"
|
||||||
followRequestYou: "Žádá tě o sledování"
|
followRequestYou: "Žádá tě o sledování"
|
||||||
createList: "Vytvořit seznam"
|
createList: "Vytvořit seznam"
|
||||||
manageLists: "Spravovat seznam"
|
manageLists: "Spravovat seznam"
|
||||||
|
@ -1016,4 +1016,4 @@ renoteMute: Ztlumit přeposílání
|
||||||
renoteUnmute: Zrušit ztlumení přeposílání
|
renoteUnmute: Zrušit ztlumení přeposílání
|
||||||
flagSpeakAsCat: Mluvit jako kočka
|
flagSpeakAsCat: Mluvit jako kočka
|
||||||
flagSpeakAsCatDescription: Tvoje příspěvky budou v kočičím režimu nyanifikovány.
|
flagSpeakAsCatDescription: Tvoje příspěvky budou v kočičím režimu nyanifikovány.
|
||||||
controlPanel: "Ovládací panel"
|
controlPanel: "Ovládací panel"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "calckey-magnetar",
|
"name": "calckey-magnetar",
|
||||||
"version": "0.3.0-alpha",
|
"version": "0.3.0-alpha",
|
||||||
"codename": "aqua",
|
"codename": "aglais",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://codeberg.org/calckey/calckey.git"
|
"url": "https://codeberg.org/calckey/calckey.git"
|
||||||
|
|
Loading…
Reference in New Issue