Skip to content

Commit

Permalink
Merge pull request #26 from freeconga/valetudo-2022.09.0
Browse files Browse the repository at this point in the history
Congatudo 2022.09.0
  • Loading branch information
elraro authored Oct 14, 2022
2 parents d3c87ef + 61c8b68 commit 85bf6c0
Show file tree
Hide file tree
Showing 554 changed files with 57,205 additions and 47,679 deletions.
19 changes: 19 additions & 0 deletions .automated_overrides.eslintrc.json
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"
}
}
34 changes: 18 additions & 16 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,13 @@
"block-scoped-var": "error",
"no-new": "error",
"no-multi-str": "error",
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"no-new-wrappers": "error",
"no-sequences": "error",
"no-self-compare": "error",
"no-multi-assign": "error",
"no-whitespace-before-property": "error",
"no-magic-numbers": ["off", { "ignoreArrayIndexes": true }],
"no-unused-vars": ["error", { "args": "none" }],
"semi": ["error", "always"],
"quotes": ["error", "double"],
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"brace-style": ["error", "1tbs"],
"no-trailing-spaces": ["error", { "ignoreComments": true }],
"keyword-spacing": "error",
"eol-last": ["error", "always"],
"no-unused-vars": ["warn", { "args": "none" }],
"jsdoc/check-alignment": "error",
"jsdoc/check-param-names": "error",
"jsdoc/check-tag-names": "error",
Expand All @@ -72,7 +58,23 @@
"operator-linebreak": ["error", "after"],
"no-unneeded-ternary": ["error", { "defaultAssignment": false }],
"arrow-body-style": ["error", "always"],
"regexp/no-unused-capturing-group": "off"
"regexp/no-unused-capturing-group": "off",
"regexp/prefer-w": "off",
"regexp/prefer-d": "off",



"no-empty": "off",
"brace-style": "off",
"no-trailing-spaces": "off",
"keyword-spacing": "off",
"eol-last": "off",
"no-multi-spaces": "off",
"semi": "off",
"quotes": "off",
"indent": "off"


},
"overrides": [
{
Expand Down
3 changes: 0 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ contact_links:
- name: I'm having issues using the software
url: https://github.com/Hypfer/Valetudo/discussions/category_choices
about: Ask for help in the support section
- name: I have an idea for a feature/an improvement
url: https://github.com/Hypfer/Valetudo/discussions/category_choices
about: Present your idea in the Ideas section
- name: I've made a thing utilizing Valetudo
url: https://github.com/Hypfer/Valetudo/discussions/category_choices
about: Talk about your thing in the Show and tell section
36 changes: 36 additions & 0 deletions .github/workflows/close_threads.yml
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."
}
}
]
}
}
}
14 changes: 12 additions & 2 deletions .github/workflows/nightly_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@
'nightly_build':
{
'runs-on': 'ubuntu-latest',
'if': "github.repository_owner == 'Hypfer'",
'steps':
[
{ 'uses': 'actions/checkout@v2' },
{
'uses': 'actions/checkout@v3',
'with': {
'fetch-depth': 0
}
},
{
'name': 'Use Node.js 16.x',
'uses': 'actions/setup-node@v3',
Expand All @@ -39,9 +45,13 @@
'name': 'UPX-compress valetudo binaries',
'run': 'npm run upx',
},
{
'name': 'Generate changelog',
'run': 'npm run generate_nightly_changelog',
},
{
'name': 'Build manifest',
'run': 'npm run build_release_manifest',
'run': 'npm run build_release_manifest nightly',
},
{
'name': 'Push binaries to nightly repo',
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ build/
# IntelliJ Idea project files
.idea/

# VSCode project files
.vscode/

/backend/lib/res/valetudo.openapi.schema.json

Expand Down
2 changes: 2 additions & 0 deletions .npmrc
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
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

26 changes: 26 additions & 0 deletions .pedantic_overrides.eslintrc.json
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
]
}
]
}
}
81 changes: 81 additions & 0 deletions Dockerfile
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"]
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ There's also [an android companion app](https://valetudo.cloud/pages/companion_a
setting-up your newly-rooted vacuum.


For more information, check out the [Valetudo Newcomer Guide Late 2021 Edition](https://valetudo.cloud/pages/general/newcomer_guide_late_2021.html) as well
as the [getting started guide](https://valetudo.cloud/pages/general/getting-started.html) and also the docs in general at [https://valetudo.cloud](https://valetudo.cloud)
For more information, check out the [getting started guide](https://valetudo.cloud/pages/general/getting-started.html)
and also the docs in general at [https://valetudo.cloud](https://valetudo.cloud)

There, you will also find a list of [supported robots](https://valetudo.cloud/pages/general/supported-robots.html).

Expand All @@ -39,15 +39,16 @@ There, you will also find a list of [supported robots](https://valetudo.cloud/pa
![image](https://user-images.githubusercontent.com/974410/143459816-0a5fb9e5-d690-483e-99b0-84c76ef11eaf.png)
![image](https://user-images.githubusercontent.com/974410/143459878-184c7336-002c-4e04-a706-215499338fce.png)

![image](https://user-images.githubusercontent.com/974410/138561874-f5e5fee9-81dd-43fb-9de0-75263169a0e6.png)
![image](https://user-images.githubusercontent.com/974410/138561884-9633600b-3362-454b-b95d-90f8e5951971.png)

![image](https://user-images.githubusercontent.com/974410/152567792-73e4ba52-f39b-44fd-a0ae-18a5c4115e7f.png)
![image](https://user-images.githubusercontent.com/974410/152567884-b4c06af8-3bfe-4c12-976e-2e424f86df56.png)

### Tablet/Desktop

![image](https://user-images.githubusercontent.com/974410/138562037-05bc5140-d7af-488b-8734-72e66b820192.png)
![image](https://user-images.githubusercontent.com/974410/152569273-23c4ee7e-310b-40f7-8762-eed661547dff.png)

![image](https://user-images.githubusercontent.com/974410/152568144-4b237999-4373-44e3-9b29-b6498d7db81e.png)

![image](https://user-images.githubusercontent.com/974410/138561911-77aa8d10-3918-4eb7-96ff-8a6d0440dfce.png)
![image](https://user-images.githubusercontent.com/974410/152568471-c111328b-b3d5-4ea8-9a1f-21bb5ae987ca.png)

![image](https://user-images.githubusercontent.com/974410/138562111-3cbfe03c-7a19-4e57-9bfb-6b872239f432.png)

Expand Down
12 changes: 5 additions & 7 deletions assets/icons/segment.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
Loading

0 comments on commit 85bf6c0

Please sign in to comment.