-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from freeconga/valetudo-2022.09.0
Congatudo 2022.09.0
- Loading branch information
Showing
554 changed files
with
57,205 additions
and
47,679 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"rules": { | ||
"brace-style": ["error", "1tbs"], | ||
"no-trailing-spaces": ["error", { "ignoreComments": true }], | ||
"keyword-spacing": "error", | ||
"eol-last": ["error", "always"], | ||
"no-multi-spaces": ["error", { "ignoreEOLComments": true }], | ||
"semi": ["error", "always"], | ||
"quotes": ["error", "double"], | ||
"indent": [ | ||
"error", | ||
4, | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"no-empty": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "Close Threads", | ||
"on": { | ||
"schedule": [ | ||
{ | ||
"cron": "30 1 * * *" | ||
} | ||
], | ||
"workflow_dispatch": null | ||
}, | ||
"permissions": { | ||
"issues": "write", | ||
"pull-requests": "write" | ||
}, | ||
"concurrency": { | ||
"group": "lock" | ||
}, | ||
"jobs": { | ||
"close_unconfirmed_after_inactivity": { | ||
"runs-on": "ubuntu-latest", | ||
"steps": [ | ||
{ | ||
"uses": "actions/stale@v5", | ||
"with": { | ||
"stale-issue-label": "unconfirmed", | ||
"ignore-updates": true, | ||
"remove-stale-when-updated": false, | ||
"days-before-stale": -1, | ||
"days-before-close": 45, | ||
"close-issue-message": "Closing after being unconfirmed for 45 Days." | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Currently (2022-05-22) we need to ignore peer dependencies as those break the frontend when using react v18 | ||
legacy-peer-deps=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"rules": { | ||
"no-magic-numbers": [ | ||
"error", | ||
{ | ||
"ignoreArrayIndexes": true, | ||
"ignore": [ | ||
-1, | ||
0, | ||
1, | ||
|
||
200, | ||
400, | ||
404, | ||
500, | ||
|
||
16, | ||
60, | ||
10, | ||
1000, | ||
1024 | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# Stage 1 | ||
ARG BUILD_FROM=amd64/alpine:3.15 | ||
FROM node:16.18-alpine3.15 AS BUILD_IMAGE | ||
|
||
# Install dependencies | ||
RUN apk update && \ | ||
apk add --no-cache git && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
# Create working directory | ||
RUN mkdir -p /usr/src/app && chown -R node:node /usr/src/app | ||
|
||
# Configure user | ||
USER node:node | ||
|
||
# Working directory | ||
WORKDIR /usr/src/app | ||
|
||
# Force cache invalidation | ||
ADD https://api.github.com/repos/freeconga/Congatudo/git/refs/heads/master /usr/src/version.json | ||
|
||
# Download valetudo | ||
RUN git clone --depth 1 https://github.com/freeconga/Congatudo --single-branch . | ||
|
||
# Build environment | ||
ENV NODE_ENV=production | ||
ENV PKG_CACHE_PATH=./build_dependencies/pkg | ||
|
||
# Install dependencies | ||
RUN npm ci --production=false | ||
|
||
# Build openapi schema | ||
RUN npm run build_openapi_schema | ||
|
||
# Build frontend | ||
RUN npm run build --workspace=frontend | ||
|
||
# Build args | ||
ARG PKG_TARGET=node16-linuxstatic-x64 | ||
ARG PKG_OPTIONS=expose-gc,max-heap-size=64 | ||
|
||
# Build binary | ||
RUN npx pkg \ | ||
--targets "${PKG_TARGET}" \ | ||
--compress Brotli \ | ||
--no-bytecode \ | ||
--public-packages "*" \ | ||
--options "${PKG_OPTIONS}" \ | ||
--output ./build/valetudo \ | ||
backend | ||
|
||
# Stage 2 | ||
FROM ${BUILD_FROM} | ||
|
||
# Install dependencies | ||
RUN apk update && \ | ||
apk add --no-cache dumb-init && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
# Configure user | ||
RUN addgroup -S node && adduser -S node -G node | ||
RUN mkdir -p /etc/valetudo && chown -R node:node /etc/valetudo | ||
USER node:node | ||
|
||
# Working directory | ||
WORKDIR /usr/local/bin | ||
|
||
# Copy from build image | ||
COPY --chown=node:node --from=BUILD_IMAGE /usr/src/app/build/valetudo ./valetudo | ||
|
||
# Exposed ports | ||
EXPOSE 8080 | ||
EXPOSE 4010 4030 4050 | ||
|
||
# Run environment | ||
ENV LANG C.UTF-8 | ||
ENV VALETUDO_CONFIG_PATH=/etc/valetudo/config.json | ||
ENV NODE_ENV=production | ||
|
||
# Run binary | ||
CMD ["dumb-init", "valetudo"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 2 additions & 6 deletions
8
assets/icons/segment_active.svg → assets/icons/segment_selected.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.